OT a little - search php scripts
In the website makeover I'm doing, I 'm looking for search alternatives - right now I use Google for my site search. I have an objective of making the home page (at least) as lightweight as possible and I thought it would nice to run a php site search script (I have shell access to my host.) Found a few here: http://www.thefreecountry.com/php/site-search-engine-scripts.shtml
Does anybody have any others they can recommend?
John
What's missing from Google - nothing in functionality. I don't want to use an external search provider in the interest of providing the fastest possible web site experience. I installed Sphider on my host this afternoon and it works pretty well. Getting Sphider set up took a little fiddling, but it wasn't too bad. Now I need to remember to index the site when I do changes.
John
Similar Messages
-
Send PDF form to e-mail as attachment with a PHP script on the server
Hi,
For several days I've been searching though the internet looking for a solution, a quite simple one in my opinion, but I got a little desperate not getting any result I want.
Okay. The Situation.
I have a PDF form to order sandwiches and drinks.
The PDF has serveral area's and columns where customers fill in the amount of the products they would like to order.
At a position of a field, the kitchen can almost blindly see what products a customer ordered.
Therefore, when someone fills in the form, I want to send the filled PDF by e-mail to the kitchen's e-mail adress. And important: the PDF in the kitchen's mailbox should be completely identical to the form the customer filled in.
So, I have an Order button in my form. I set the action as 'Submit a form'.
In the settings under 'Enter a URL for this link' I used just some PHP mailer script I also use on my website contact form.
IF I check 'HTML' under 'Export Format' the PHP mailer works fine. I receive an HTML e-mail listed the ordered products.
BUT
I do want the original filled PDF in my mailbox instead of an HTML e-mail.
So, for 'Export Format' I checked 'PDF The Complete Document'.
But then my PHP mailer script doesn't work anymore.
It gives errors like 'no valid e-mail adres' , etcetera etcetera.
Who has a solution?
Who has a working standard PHP script for me what just sends the kitchen an empty mail with the original PDF as attachment?!
There is no need to use any database or other more complex functionality. Just mail the filled PDF.You can submit whole PDF format as long as you enable usage rights on the PDF.
Normally Adobe Reader users can only submit the data, XFDF, FDF, XDP, XML.
To enable usage rights on the PDF you will need to use Adobe Acrobat Std/Pro.
As for the PHP Script; it depends on your PHP web server capabilities.
The script will be slightly different, if the server uses PHP Mail or PHP PEAR.
Just attach the submission to an email and send.
If the client is submitting the form from a standalone pdf reader app, you can also respond with a success or failure FDF \status message; otherwise, you can redirect to a success / failure URL.
For more information and online examples:
http://www.pdfemail.net/examples/ -
Connect to oracle database with php script
Hello!
How can I connect to an Oracle database with a PHP script? I read about it at www.php.net:
"Oracle 8 functions; These functions allow you to access Oracle8 and Oracle7 databases. It uses the Oracle8 Call-Interface (OCI8). You will need the Oracle8 client libraries to use this extension."
Where can I get these libraries from?
Who knows more about the issue?
Thanks a lot for your help!
Martin
nullHello
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mheibel([email protected]):
Hello!
How can I connect to an Oracle database with a PHP script? I read about it at www.php.net:
"Oracle 8 functions; These functions allow you to access Oracle8 and Oracle7 databases. It uses the Oracle8 Call-Interface (OCI8). You will need the Oracle8 client libraries to use this extension."
Where can I get these libraries from?
Who knows more about the issue?
Thanks a lot for your help!
Martin<HR></BLOCKQUOTE>
Install and put working a sqlnet working client (install the Oracle Client option of the Oracle Database CD ROM). Than compile php with the --oci option. Than try the samples in php.net (oci function in the help).
These are the steps... Put everything working is a little more complicated...
FS
null -
The pointer sets itself in the little search window
1) When I'm on a new page on the internet and I want to go down on the page, I can't because the pointer will automatically put itself in the beginning in the little search window that many sites have which means when I click the down button, instead of going down, I see all the words I put previously (weeks, months ago) in the search window. I need to click somewhere on the page, nothing in particular, to release the pointer. This is very annoying since it happens every time I click on a new page.
How can I disable this ?
2) This is unrelated I guess but since I'm on this forum:
On some sites that I visit, the up or down button of my keyboard doesn't work
and the up and down arrow on the right of the page doesn't work either or is very unresponsive (slow. hesitant).
On other sites everything works fine.
It also works fine in Text Edit so I rule out a keyboard problem.1. you'll need an add-on (like [pithHelmet|http://culater.net/software/PithHelmet/PithHelmet.php]) to disable this in safari. it is possible to disable this directly in firefox/camino.
alternatively, you can create a "focus page" keyboard shortcut through a bookmarklet. this won't be automatic, but will mean you won't have to reach for the mouse.
2. we need more info here (like a specific url), but you're bound to run into slowly responding sites if you're really using a 400mhz computer. -
Need to run php script before the Flash component kicks in
I have a slide show component in Flash which uses an xml file to load images. The xml file, however, is created dynamically when the user selects which slide show they want to see. How do I run the php script BEFORE the slide show component has a chance to look for it? Usually it begins as soon as the .swf is run.
thanks,
chopthank you for responding.
I'm still new at as3 so forgive me for needing details.
I searched adobe for help and came up with the following to import the component. However, it seemed too easy to be true and so it was. I received errors when I ran it. The component is a commercial one called SlideshowBox and is in my library with that exact name.
//add a component to the stage
import fl.controls.SlideshowBox;
var aSlideshowBox:Button = new Button();
addChild(aSlideshowBox);
errors:
Scene 1, Layer 'Actions', Frame 1, Line 3 1172: Definition fl.controls:SlideshowBox could not be found.
Scene 1, Layer 'Actions', Frame 1, Line 3 1172: Definition fl.controls:SlideshowBox could not be found.
Scene 1, Layer 'Actions', Frame 1, Line 4 1180: Call to a possibly undefined method Button.
thank you, k -
Help with file uploader, php script, Windows Authentication
I am trying to setup a really basic web-based file uploader that I will expand upon later. I have the flex application working well enough (very basic). However, I have a php script in a secure folder using windows authentication. When I try to send the file to the script, it doesn't seem to like my credentials, and refuses to do anything. I do not get an error message; just nothing happens.
My questions are:
Does anybody know where I should've looked before posting this thread?
Do I even have PHP set up correctly? (At first I just made a txt file and put a .php extension on it, then I tried to setup PHP on the server, but it was a little confusing for me)
Is Windows Authentication the problem?
I do plan on implementing SQL Server in the future (to keep track of Files and user-defined attributes for files), but I do not want to store the files in SQLserver, just their pathnames.
Is there a simple way to use ColdFusion (for free) to acheive this end?
I am somewhat experienced at coding applications, but am totally new to server-side scripts.
This is my php script:
<?php
$tempFile = $_FILES['Filedata']['tmp_name'];
$fileName = $_FILES['Filedata']['name'];
$fileSize = $_FILES['Filedata']['size'];
move_uploaded_file($tempFile, "./" . $fileName);
?>
This is my flex application:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
private var fileRef:FileReference
private var uploadFilePath:String
private function selectFile():void
fileRef = new FileReference();
fileRef.addEventListener(Event.SELECT, fileRef_select);
fileRef.browse();
private function fileRef_select(evt:Event):void
fileRef.upload(new URLRequest("http://SERVERLOCATION/PDFUploader.php"));
]]>
</fx:Script>
<s:Button top="30" left="5" label="Browse" click="selectFile()"/>
</s:Application>
Thanks to any who take the time to respond.Hey, so far all I have found is this tutorial.. I'm about to try it out
http://www.smartwebby.com/Flash/external_data.asp -
Live view test server won't execute php scripts
Hello everyone!
I've had a web developer design a site for me based on php.
Rather than bother them for simple image changes and content
updates, I'm trying to learn to do those things myself. I'm very
new to Dreamweaver and I'm having difficulties getting php script
to execute through my test server. I have the latest versions of
Dreamweaver, MySQL, php, and Apache installed on my machine. I've
downloaded the source files off of my hosting server. The problem
is when I try to "Live View" the "index.php" off of the root file
on the test server, Dreamweaver gives me an error that says:
"The testing server did not execute any of the scripts in
your document. Possible explanations include:
1.> The test server is not running
2.> The test server ignores files with .php. in the
extension
3.> The documents did not contain any scripts."
I know my system is working properly because I created a page
"timetest.php" with the following code:
<p>This page was created at <b><?php echo
date("h:i:s a", time()); ?></b> on the computer running
PHP.</p>
...and it works fine in "Live View".
Any ideas what the problem might be? I've been reading books
and searching online and I haven't been able to figure it out.
Here's what the code on "index.php" looks like:What happens when you view your page on your test server in a
browser?
Are the php scripts executed?
Also, the macromedia.dreamweaver.appdev forum is a more
appropriate
place for this question, so you might get a better response.
Randy
> "The testing server did not execute any of the scripts
in your document. -
B1i SN: B1 to http outbound -- php script
Hello experts,
i am trying to implement the above sceanrio. But no matter what i try theres nothing in the post array if i do a var_dump in the php script.
In the message log in B1i the messages says "success".
Anybody an idea what do or what to check!?
Thanks.
Regards
SebastianCouple of things jump out at me here:
1) I would switch to GET requests. POST requests tend to be... peculiar... sometimes. So in your PHP, change it to $_GET and in your MXML, just remove the method="POST" from the HTTPService.
2) Using proxies versus allowing access. This is a little trickier. I am not sure of your skill level, so I'll just give you my impressions of working with PHP. In general, I use proxies instead of using crossdomain.xml files to allow access. Remember that your development environment's sandbox will allow you to hit any PHP page anywhere to get data. Once deployed, though, you're either going to need a proxy page if you're ihitting a third-party domain or you're going to need a crossdomain.xml file on the target domain that allows access from your SWF.
3) Make sure you are deploying the SWF file, the wrapper, and the PHP file all on the same server that is running PHP, and that you are using a network request (ie, "http://...") to access the application.
4) If you're just running the SWF file as compiled from Flex Builder and requesting it as a file resource, then your relative request to the PHP file might not be pointed at the right location. I would adjust this to use a full URL so you are sure you are pointing to the right place.
hth,
matt horn
flex docs -
Sending string to php script using HttpConnection, OutputStream, POST
I am currently building an imode application using DoJa 2.5 standards and the problem I'm having is that when I send a string to a php script using a HttpConnection object and an OuputStream object via Http POST method, It does not seem to be sent at all. You'll probably understand a little better if you read the following code:
* main.java
* DATE : 2005/12/19 14:47
import com.nttdocomo.ui.IApplication;
import com.nttdocomo.ui.Display;
import com.nttdocomo.util.Phone;
import com.nttdocomo.io.HttpConnection;
import java.io.*;
import javax.microedition.io.*;
import com.nttdocomo.net.URLEncoder;
* main
* @TetraCON
public class main extends IApplication
// Declareer een object van de klasse Gebruiker
public Gebruiker gebruiker;
// Declareer een object van de mainpanel klasse
private MainPanel mainPanel;
public void start()
//Maak object van Gebruiker aan met het sim_nr van de simkaart
gebruiker = new Gebruiker(Phone.getProperty("terminal-id"));
/* Testing... *************/
System.out.println(gebruiker.getSim_nr());
// Declareer een nog niet ingestelde HttpConnection
HttpConnection con = null;
OutputStream out = null;
InputStream is = null;
try
// Stel de parameters van de HttpConnection in en krijg er een object van
//con = (HttpConnection)Connector.open( IApplication.getCurrentApp().getSourceURL() + "validate-terminal.php", Connector.READ_WRITE, true);
/* Testing.... ****************/
con = (HttpConnection)Connector.open( IApplication.getCurrentApp().getSourceURL() + "validate-terminal-test.php", Connector.READ_WRITE, true);
con.setRequestMethod(HttpConnection.POST);
con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
// Declareer een OutputStream en link deze aan de HttpConnection
out = con.openOutputStream();
// Zet het te versturen sim_nr in de buffer van de OutputStream
out.write((URLEncoder.encode("sim_nr=" + gebruiker.getSim_nr())).getBytes());
// Sluit de OutputStream
out.close();
// Maak verbinding met de server en verstuur het sim_nr
con.connect();
// Declareer een InputStream en link deze aan de HttpConnection
is = con.openInputStream();
// Declareer een byte array van 20 bytes om de data in op te vangen
byte[] b = new byte[200];
// Roep de read methode van de InputStream aan om de data in de byte array te zetten
is.read(b);
// Sluit de InputStream
is.close();
// Sluit de verbinding
con.close();
// Geef de gebruikersnaam uit de byte array aan het attribuut van gebruiker of geef geen toegang
/* Testing..... **********************/
System.out.println(new String(b));
catch(Exception e)
System.out.println(e.toString());
try
if(out != null) out.close();
if(is != null) is.close();
if(con != null) con.close();
catch(Exception e2)
System.out.println("Exception: " + e2.toString());
// initialiseer het mainpanel
mainPanel = new MainPanel();
// Geef het mainPanel weer
Display.setCurrent(mainPanel);
}The data I'm trying to submit does not show up in the $_POST variable in PHP as it should.
Is there anybody out there who can tell me what I'm doing wrong?Hi Antoni, you can delete the 'mx:request' section and pass
the 'registrationModel' object into the send parameters.
Code should be:
<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
public function submitForm():void {
formSender.cancel();
formSender.send(registrationModel);
//formSender.showBusyCursor = true;
Alert.show("Your request has been send successfully.", "Send
Report", Alert.OK , this);
//resetForm();
private function getResultOk(r:Number,event:Event):void{
if(!r){
Alert.show('Error sending data!!');
return;
Alert.show( String(this.formSender.lastResult) );
]]>
</mx:Script>
<mx:HTTPService id="formSender"
url="
http://www.yourdomain.com/mailer.php"
method="POST" showBusyCursor="true" useProxy="false"
result="getResultOk(1,event)"
fault="getResultOk(0,event)" >
</mx:HTTPService>
<mx:Model id="registrationModel">
<firstname>{firstname.text}</firstname>
<lastname>{lastname.text}</lastname>
<email>{email.text}</email>
<position>{position.text}</position>
</mx:Model>
<mx:Form width="100%" height="100%">
<mx:TextInput id="firstname" text="pepe"/>
<mx:TextInput id="lastname" text="lopez"/>
<mx:TextInput id="email" text="[email protected]"/>
<mx:TextInput id="position" text="director"/>
<mx:Button label="send" click="submitForm()"/>
</mx:Form>
</mx:Application>
And php...
<?
echo 'OK: Vars received:'.count($_POST)."\n";
foreach($_POST as $k=>$v){
echo $k.'='.$v."\n";
exit;
?> -
PHP script for form to upload 2 files to FTP
Hi,
I have scoured the internet for quite a while now looking for
a free php script that will enable me to:
1. Put a form on a page that has two uplaod boxes for a
client to upload two file svia theeir browser
2.The files will be one image (jpg) and one pdf
3. The files will always (each day) be called headshot.jpg
and resume.pdf
4. The script must allow the files on the server to be
overwritten by the new files of the same name each day
I have found MANY scripts, som eof which i can get to work,
but they were too sofisticated (checked for many things taht i was
not concerned for, didnt allow files to be overwritten, changed
directories of where the files were uplaoded to, changed the file
names automatically) and many that i wasnt able to get to work.
I just need something simple like the above. Unfortunately I
am no scripter, so when i tried to decifer the ready made scripts
and rearrange them to suit my needs, i messed things up.
Thanks immensely in advance of anyone who canb offer m eany
help or point me in a better direction. I wasnt sure where to post
this query/help plea.
CheskaGo to
http://www.php.net and read about
file uploads there. You will find
several scripts that will work just fine for you.
Or try this -
<?php
//places files into same dir as form resides
if(isset($_POST['Submit'])) {
$target=$_SERVER['DOCUMENT_ROOT']."/uploads";
foreach ($_FILES["files"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["files"]["tmp_name"][$key];
$name = $_FILES["files"]["name"][$key];
if(move_uploaded_file($tmp_name, "$target/$name")}
print "Upload completed";
else
print "Upload failed";
?>
<body>
<form action="" method="post"
enctype="multipart/form-data">
<p>Pictures:
<input type="file" name="files[]" />
<input type="file" name="files[]" />
<input type="submit" name="Submit" value="Send" />
</p>
</form>
This assumes that the incoming files will be properly named,
and that the
upload destination is a folder called "/uploads".
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"ccesca" <[email protected]> wrote in
message
news:[email protected]...
> Hi,
>
> I have scoured the internet for quite a while now
looking for a free php
> script that will enable me to:
>
> 1. Put a form on a page that has two uplaod boxes for a
client to upload
> two
> file svia theeir browser
> 2.The files will be one image (jpg) and one pdf
> 3. The files will always (each day) be called
headshot.jpg and resume.pdf
> 4. The script must allow the files on the server to be
overwritten by the
> new
> files of the same name each day
>
> I have found MANY scripts, som eof which i can get to
work, but they were
> too
> sofisticated (checked for many things taht i was not
concerned for, didnt
> allow
> files to be overwritten, changed directories of where
the files were
> uplaoded
> to, changed the file names automatically) and many that
i wasnt able to
> get to
> work.
>
> I just need something simple like the above.
Unfortunately I am no
> scripter,
> so when i tried to decifer the ready made scripts and
rearrange them to
> suit my
> needs, i messed things up.
>
> Thanks immensely in advance of anyone who canb offer m
eany help or point
> me
> in a better direction. I wasnt sure where to post this
query/help plea.
>
> Cheska
>
>
> -
Webserver on DMZ cannot send email via php script using SMTP (cisco firewall pix 515e)
Hello,
I have two web servers that are sitting in a DMZ behind a Cisco Firewall PIX 515e. The webservers appear to be configured correctly as our website and FTP website are up. On two of our main website, we have two contact forms that use a simple html for to call a php script that uses smtp as its mailing protocol. Since, I am not the network administrator, I don't quite understand how to read the current configurations on the firewall, but I suspect that port 25 is blocked, which prevents the script from actually working or sending out emails. What I've done to narrow the problem done is the following: I used a wamp server to test our scripts with our smtp servers settings, was able to successfully send an email out to both my gmail and work place accounts. Currently, we have backupexec loaded on both of these servers, and when I try to send out an alert I never receive it. I think because port 25 is closed on both of those servers. I will be posting our configuration. if anyone can take a look and perhaps explain to me how I can change our webservers to communicate and successfully deliver mail via that script, I would gladly appreciate it. our IP range is 172.x.x.x, but it looks like our webservers are using 192.x.x.x with NAT in place. Please someone help.
Thanks,
Jeff Mateo
PIX Version 6.3(4)
interface ethernet0 100full
interface ethernet1 100full
interface ethernet2 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
nameif ethernet2 DMZ security50
enable password GFO9OSBnaXE.n8af encrypted
passwd GFO9OSBnaXE.n8af encrypted
hostname morrow-pix-ct
domain-name morrowco.com
clock timezone EST -5
clock summer-time EDT recurring
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
no fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
name 12.42.47.27 LI-PIX
name 172.20.0.0 CT-NET
name 172.23.0.0 LI-NET
name 172.22.0.0 TX-NET
name 172.25.0.0 NY-NET
name 192.168.10.0 CT-DMZ-NET
name 1.1.1.1 DHEC_339849.ATI__LEC_HCS722567SN
name 1.1.1.2 DHEC_339946.ATI__LEC_HCS722632SN
name 199.191.128.105 web-dns-1
name 12.127.16.69 web-dns-2
name 12.3.125.178 NY-PIX
name 64.208.123.130 TX-PIX
name 24.38.31.80 CT-PIX
object-group network morrow-net
network-object 12.42.47.24 255.255.255.248
network-object NY-PIX 255.255.255.255
network-object 64.208.123.128 255.255.255.224
network-object 24.38.31.64 255.255.255.224
network-object 24.38.35.192 255.255.255.248
object-group service morrow-mgmt tcp
port-object eq 3389
port-object eq telnet
port-object eq ssh
object-group network web-dns
network-object web-dns-1 255.255.255.255
network-object web-dns-2 255.255.255.255
access-list out1 permit icmp any any echo-reply
access-list out1 permit icmp object-group morrow-net any
access-list out1 permit tcp any host 12.193.192.132 eq ssh
access-list out1 permit tcp any host CT-PIX eq ssh
access-list out1 permit tcp any host 24.38.31.72 eq smtp
access-list out1 permit tcp any host 24.38.31.72 eq https
access-list out1 permit tcp any host 24.38.31.72 eq www
access-list out1 permit tcp any host 24.38.31.70 eq www
access-list out1 permit tcp any host 24.38.31.93 eq www
access-list out1 permit tcp any host 24.38.31.93 eq https
access-list out1 permit tcp any host 24.38.31.93 eq smtp
access-list out1 permit tcp any host 24.38.31.93 eq ftp
access-list out1 permit tcp any host 24.38.31.93 eq domain
access-list out1 permit tcp any host 24.38.31.94 eq www
access-list out1 permit tcp any host 24.38.31.94 eq https
access-list out1 permit tcp any host 24.38.31.71 eq www
access-list out1 permit tcp any host 24.38.31.71 eq 8080
access-list out1 permit tcp any host 24.38.31.71 eq 8081
access-list out1 permit tcp any host 24.38.31.71 eq 8090
access-list out1 permit tcp any host 24.38.31.69 eq ssh
access-list out1 permit tcp any host 24.38.31.94 eq ftp
access-list out1 permit tcp any host 24.38.31.92 eq 8080
access-list out1 permit tcp any host 24.38.31.92 eq www
access-list out1 permit tcp any host 24.38.31.92 eq 8081
access-list out1 permit tcp any host 24.38.31.92 eq 8090
access-list out1 permit tcp any host 24.38.31.93 eq 3389
access-list out1 permit tcp any host 24.38.31.92 eq https
access-list out1 permit tcp any host 24.38.31.70 eq https
access-list out1 permit tcp any host 24.38.31.74 eq www
access-list out1 permit tcp any host 24.38.31.74 eq https
access-list out1 permit tcp any host 24.38.31.74 eq smtp
access-list out1 permit tcp any host 24.38.31.75 eq https
access-list out1 permit tcp any host 24.38.31.75 eq www
access-list out1 permit tcp any host 24.38.31.75 eq smtp
access-list out1 permit tcp any host 24.38.31.70 eq smtp
access-list out1 permit tcp any host 24.38.31.94 eq smtp
access-list dmz1 permit icmp any any echo-reply
access-list dmz1 deny ip any 10.0.0.0 255.0.0.0
access-list dmz1 deny ip any 172.16.0.0 255.240.0.0
access-list dmz1 deny ip any 192.168.0.0 255.255.0.0
access-list dmz1 permit ip any any
access-list dmz1 deny ip any any
access-list nat0 permit ip CT-NET 255.255.0.0 192.168.220.0 255.255.255.0
access-list nat0 permit ip host 172.20.8.2 host 172.23.0.2
access-list nat0 permit ip CT-NET 255.255.0.0 LI-NET 255.255.0.0
access-list nat0 permit ip CT-NET 255.255.0.0 NY-NET 255.255.0.0
access-list nat0 permit ip CT-NET 255.255.0.0 TX-NET 255.255.0.0
access-list vpn-split-tun permit ip CT-NET 255.255.0.0 192.168.220.0 255.255.255
.0
access-list vpn-split-tun permit ip CT-DMZ-NET 255.255.255.0 192.168.220.0 255.2
55.255.0
access-list vpn-dyn-match permit ip any 192.168.220.0 255.255.255.0
access-list vpn-ct-li-gre permit gre host 172.20.8.2 host 172.23.0.2
access-list vpn-ct-ny permit ip CT-NET 255.255.0.0 NY-NET 255.255.0.0
access-list vpn-ct-ny permit ip CT-DMZ-NET 255.255.255.0 NY-NET 255.255.0.0
access-list vpn-ct-tx permit ip CT-NET 255.255.0.0 TX-NET 255.255.0.0
access-list vpn-ct-tx permit ip CT-DMZ-NET 255.255.255.0 TX-NET 255.255.0.0
access-list static-dmz-to-ct-2 permit ip host 192.168.10.141 CT-NET 255.255.248.
0
access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 192.168.220.0 255.255.25
5.0
access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 LI-NET 255.255.0.0
access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 NY-NET 255.255.0.0
access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 TX-NET 255.255.0.0
access-list static-dmz-to-ct-1 permit ip host 192.168.10.140 CT-NET 255.255.248.
0
access-list static-dmz-to-li-1 permit ip CT-DMZ-NET 255.255.255.0 CT-NET 255.255
.248.0
access-list vpn-ct-li permit ip CT-NET 255.255.0.0 LI-NET 255.255.0.0
access-list vpn-ct-li permit ip CT-DMZ-NET 255.255.255.0 LI-NET 255.255.0.0
access-list vpn-ct-li permit ip host 10.10.2.2 host 10.10.1.1
access-list in1 permit tcp host 172.20.1.21 any eq smtp
access-list in1 permit tcp host 172.20.1.20 any eq smtp
access-list in1 deny tcp any any eq smtp
access-list in1 permit ip any any
access-list in1 permit tcp any any eq smtp
access-list cap4 permit ip host 172.20.1.82 host 192.168.220.201
access-list cap2 permit ip host 172.20.1.82 192.168.220.0 255.255.255.0
access-list in2 deny ip host 172.20.1.82 any
access-list in2 deny ip host 172.20.1.83 any
access-list in2 permit ip any any
pager lines 43
logging on
logging timestamp
logging buffered notifications
logging trap notifications
logging device-id hostname
logging host inside 172.20.1.22
mtu outside 1500
mtu inside 1500
mtu DMZ 1500
ip address outside CT-PIX 255.255.255.224
ip address inside 172.20.8.1 255.255.255.0
ip address DMZ 192.168.10.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool ctpool 192.168.220.100-192.168.220.200
ip local pool ct-thomson-pool-201 192.168.220.201 mask 255.255.255.255
pdm history enable
arp timeout 14400
global (outside) 1 24.38.31.81
nat (inside) 0 access-list nat0
nat (inside) 1 CT-NET 255.255.0.0 2000 10
nat (DMZ) 0 access-list nat0-dmz
static (inside,DMZ) CT-NET CT-NET netmask 255.255.0.0 0 0
static (inside,outside) 24.38.31.69 172.20.8.2 netmask 255.255.255.255 0 0
static (DMZ,outside) 24.38.31.94 192.168.10.141 netmask 255.255.255.255 0 0
static (inside,outside) 24.38.31.71 172.20.1.11 dns netmask 255.255.255.255 0 0
static (DMZ,outside) 24.38.31.93 192.168.10.140 netmask 255.255.255.255 0 0
static (DMZ,inside) 24.38.31.93 access-list static-dmz-to-ct-1 0 0
static (DMZ,inside) 24.38.31.94 access-list static-dmz-to-ct-2 0 0
static (inside,outside) 24.38.31.92 172.20.1.56 netmask 255.255.255.255 0 0
static (DMZ,outside) 24.38.31.91 192.168.10.138 netmask 255.255.255.255 0 0
static (DMZ,outside) 24.38.31.90 192.168.10.139 netmask 255.255.255.255 0 0
static (inside,outside) 24.38.31.72 172.20.1.20 netmask 255.255.255.255 0 0
static (inside,outside) 24.38.31.73 172.20.1.21 netmask 255.255.255.255 0 0
static (inside,outside) 24.38.31.70 172.20.1.91 netmask 255.255.255.255 0 0
static (DMZ,outside) 24.38.31.88 192.168.10.136 netmask 255.255.255.255 0 0
static (DMZ,outside) 24.38.31.89 192.168.10.137 netmask 255.255.255.255 0 0
static (inside,outside) 24.38.31.74 172.20.1.18 netmask 255.255.255.255 0 0
static (inside,outside) 24.38.31.75 172.20.1.92 netmask 255.255.255.255 0 0
access-group out1 in interface outside
access-group dmz1 in interface DMZ
route outside 0.0.0.0 0.0.0.0 24.38.31.65 1
route inside 10.10.2.2 255.255.255.255 172.20.8.2 1
route inside CT-NET 255.255.248.0 172.20.8.2 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
aaa-server ct-rad protocol radius
aaa-server ct-rad max-failed-attempts 2
aaa-server ct-rad deadtime 10
aaa-server ct-rad (inside) host 172.20.1.22 morrow123 timeout 7
aaa authentication ssh console LOCAL
aaa authentication http console LOCAL
aaa authentication serial console LOCAL
aaa authentication telnet console LOCAL
http server enable
http 173.220.252.56 255.255.255.248 outside
http 65.51.181.80 255.255.255.248 outside
http 208.65.108.176 255.255.255.240 outside
http CT-NET 255.255.0.0 inside
no snmp-server location
no snmp-server contact
snmp-server community m0rroW(0
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
sysopt connection permit-pptp
crypto ipsec transform-set 3des-sha esp-3des esp-sha-hmac
crypto ipsec transform-set 3des-md5 esp-3des esp-md5-hmac
crypto dynamic-map dyn_map 20 match address vpn-dyn-match
crypto dynamic-map dyn_map 20 set transform-set 3des-sha
crypto map ct-crypto 10 ipsec-isakmp
crypto map ct-crypto 10 match address vpn-ct-li-gre
crypto map ct-crypto 10 set peer LI-PIX
crypto map ct-crypto 10 set transform-set 3des-sha
crypto map ct-crypto 15 ipsec-isakmp
crypto map ct-crypto 15 match address vpn-ct-li
crypto map ct-crypto 15 set peer LI-PIX
crypto map ct-crypto 15 set transform-set 3des-sha
crypto map ct-crypto 20 ipsec-isakmp
crypto map ct-crypto 20 match address vpn-ct-ny
crypto map ct-crypto 20 set peer NY-PIX
crypto map ct-crypto 20 set transform-set 3des-sha
crypto map ct-crypto 30 ipsec-isakmp
crypto map ct-crypto 30 match address vpn-ct-tx
crypto map ct-crypto 30 set peer TX-PIX
crypto map ct-crypto 30 set transform-set 3des-sha
crypto map ct-crypto 65535 ipsec-isakmp dynamic dyn_map
crypto map ct-crypto client authentication ct-rad
crypto map ct-crypto interface outside
isakmp enable outside
isakmp key ******** address LI-PIX netmask 255.255.255.255 no-xauth no-config-mo
de
isakmp key ******** address 216.138.83.138 netmask 255.255.255.255 no-xauth no-c
onfig-mode
isakmp key ******** address NY-PIX netmask 255.255.255.255 no-xauth no-config-mo
de
isakmp key ******** address TX-PIX netmask 255.255.255.255 no-xauth no-config-mo
de
isakmp identity address
isakmp nat-traversal 20
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption 3des
isakmp policy 10 hash sha
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption 3des
isakmp policy 20 hash md5
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
isakmp policy 30 authentication pre-share
isakmp policy 30 encryption 3des
isakmp policy 30 hash md5
isakmp policy 30 group 1
isakmp policy 30 lifetime 86400
vpngroup remotectusers address-pool ctpool
vpngroup remotectusers dns-server 172.20.1.5
vpngroup remotectusers wins-server 172.20.1.5
vpngroup remotectusers default-domain morrowny.comAmit,
I applaud your creativity in seeking to solve your problem, however, this sounds like a real mess in the making. There are two things I don't like about your approach. One, cron -> calling Java -> calling PHP -> accessing database, it's just too many layers, in my opinion, where things can go wrong. Two it seems to me that you are exposing data one your website (with the PHP) that you may not want expose and this is an important consideration when you are dealing with emails and privacy and so on.
I think the path of least resistance would be to get a new user account added to the MySQL database that you can access remotely with your Java program. This account can be locked down for read only access and be locked down to the specific IP or IP range that your Java program will be connecting from.
Again I applaud your creativity but truly this seems like a hack because of the complexity and security concerns you are introducing and I think is a path to the land of trouble. Hopefully you will be able to get a remote account set up. -
When I try to save an emailed-to-me document to an existing file on my hard drive by using the little "search" window the recipient file is inactive and does not open to recieve the document I want to save (nothing happens when I click on it and it's a subdued color).
If I click through my files manually by starting on the desktop and working my way to the location of the recipient file I can save.
This takes a lot of time and is DRIVING ME CRAZY!
Please tell me I've just missed something obvious that can be fixed in a jiffy!?OMG!! It also happens when I try to open a file from inside a program like Adobe Reader. If I use the little corner search window all the files are inoperable.
-
Convert php script to oracle procedure
To all please help me... I wanna convert php script to oracle procedure..and the script is (exp)..
<?php
include("../config/koneksi.php");
$customer=$_POST['customer'];
$tanggal1=$_POST['theDate1'];
$tanggal2=$_POST['theDate2'];
$no_bulan=substr($tanggal1,0,2);
$bulan_sajah= (substr($no_bulan,0,1)=='0')? substr($no_bulan,1,1) : $no_bulan;
$tahun_sajah=substr($tanggal1,3,4);
$blnkmrn=(int)$bulan_sajah;
$thnkmrn=(int)$tahun_sajah;
if ($blnkmrn==1) {
$bulan_lalu=12;
$tahun_lalu=$thnkmrn-1;}
else {
$bulan_lalu=$blnkmrn-1;
$tahun_lalu=$thnkmrn;
$bulanlalu=strval($bulan_lalu);
$tahunlalu=strval($tahun_lalu);
$sql = "select nip_nas from edo_customer_master_dives where standard_name='$customer'";
$stm = ociparse($conn,$sql);
ociexecute($stm);
ocifetch($stm);
$data=ociresult($stm,1);
$sql12 = "select PRODUCT_LINE_ID,sum(REVENUE)
from PA_FACT_REV_BILLED_CC
where nip_nas='$data' and year_id='$tahun_sajah' and month_id='$bulan_sajah' group by PRODUCT_LINE_ID";
$stm12 = ociparse($conn,$sql12);
ociexecute($stm12);
$total_revenue=0;
$i="0";
while (ocifetch($stm12)){
$rev_items=ociresult($stm12,1);
$revenue=ociresult($stm12,2);
$sql2 = "select * from PA_FACT_REV_BILLED_CC
where nip_nas='$data' and PRODUCT_LINE_ID='$rev_items'";
$stm2 = ociparse($conn,$sql2);
ociexecute($stm2);
ocifetch($stm2);
$tahun=ociresult($stm2,1);
$bulan=ociresult($stm2,2);
$nipnas=ociresult($stm2,3);
$prod_line=ociresult($stm2,4);
$rev_item=ociresult($stm2,5);
//$revenue=ociresult($stm2,6);
$query1 = "select standard_name from edo_customer_master_dives where nip_nas='$nipnas'";
$st1 = ociparse($conn,$query1);
ociexecute($st1);
ocifetch($st1);
$nama_cust=ociresult($st1,1);
$query2 = "select prod_line_lname from parameter.p_prod_line@dwhnas where prod_line_id='$prod_line'";
$st2 = ociparse($conn,$query2);
ociexecute($st2);
ocifetch($st2);
$nama_prod_line=ociresult($st2,1);
$query3 = "select REV_TYPE_LNAME from parameter.p_rev_type@dwhnas where REV_TYPE_ID='$rev_item'";
$st3 = ociparse($conn,$query3);
ociexecute($st3);
ocifetch($st3);
$nama_rev_item=ociresult($st3,1);
$query4="select sum(total_usage) from PA_FACT_TRAFFIC_CC where PRODUCT_LINE_ID='$prod_line' and nip_nas='$nipnas' and year_id='$tahun_sajah' and month_id='$bulan_sajah' group by PRODUCT_LINE_ID";
$st4 = ociparse($conn,$query4);
ociexecute($st4);
ocifetch($st4);
$total_usage=ociresult($st4,1);
$total=$revenue + $total_usage;
echo $tahun." ".$bulan." ".$nama_cust." ".$nama_prod_line." ".$nama_rev_item." ".$revenue." ".$total_usage." ".$total."<br>";
$total_revenue=$total_revenue+$total;
$i++;
echo $total_revenue;
//cost of product
$query5="select * from PA_FACT_TRAFFIC_CC where nip_nas='$nipnas' and year_id='$tahunlalu' and month_id='$bulanlalu'";
$st5 = ociparse($conn,$query5);
ociexecute($st5);
$total1=0;
$total2=0;
$total3=0;
$total4=0;
$total5=0;
while (ocifetch($st5)){
$nipnas=ociresult($st5,3);
$lineid=ociresult($st5,4);
$itemid=ociresult($st5,5);
$call=ociresult($st5,6);
$unit=ociresult($st5,7);
$query6 = "select prod_line_lname from parameter.p_prod_line@dwhnas where prod_line_id='$lineid'";
$st6 = ociparse($conn,$query6);
ociexecute($st6);
ocifetch($st6);
$nama_prod_line=ociresult($st6,1);
$query7 = "select REV_item_LNAME from parameter.p_rev_item@dwhnas where REV_item_ID='$itemid'";
$st7 = ociparse($conn,$query7);
ociexecute($st7);
ocifetch($st7);
$nama_rev_item=ociresult($st7,1);
$query8 = "select * from cost_of_product where prod_line_lname='$nama_prod_line' and REV_item_LNAME='$nama_rev_item' and end_date is null";
$st8 = ociparse($conn,$query8);
ociexecute($st8);
ocifetch($st8);
$lineid_cost=ociresult($st8,1);
$itemid_cost=ociresult($st8,2);
$satuan=ociresult($st8,5);
$nilai=ociresult($st8,7);
if (strtoupper($satuan)=='MENIT') $total1=$total1+(($unit/60)*$nilai);
if (strtoupper($satuan)=='KBPS') $total2=$total2+($unit*$nilai);
if (strtoupper($satuan)=='SMS') $total3=$total3+($call*$nilai);
if (strtoupper($satuan)=='SSL') $total4=$total4+($call*$nilai);
if (strtoupper($satuan)=='SST') $total5=$total5+($call*$nilai);
$total_cost_pots=$total1+$total2+$total3+$total4+$total5;
echo $total_cost_pots;
?>
this script just for exp.Please convert step by step. for example
(1) remove inverted quotation mark ( ` )
(2) modify constraints syntax (PRIMARY KEY,UNIQUE KEY, KEY etc.) to [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/clauses002.htm#g1053592]Oracle constraints.
(3) modify some datatype to [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#i45441]Oracle datatype
(4) think how to convert auto_increment ([url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_6015.htm#i2067093]Sequence, [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#i2235611]Beffore Trigger etc. on Oracle)
http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_packages.htm#sthref864
http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm -
Connecting my Email form to the PHP script to send to my email question
How do I connect my form that a customer fill out to my php script? I have my php script named contactformprocess.php.
anybody help?
-
Can you create a form not using a php script?
I need to create a contact us form on my website using DW and have researched how and understand the easiest way is using a php script. Unfortuntately, my webhost server does not support this and will charge me an arm and a leg in order to to do it. Is there another way to have a functioning contact form not using a php script?
Yes and no.
You could use a mailto link for your form action instead of a PHP script.
There are several problems with this method though. First, when you do that, you are at the mercy of the viewer's computer set-up. Mailto links use whatever email client is installed on the machine in order to send the message. Public computers (libraries, colleges, etc) almost never have an email client installed, so when a viewer on one of those machines clicks the link, nothing happens. Secondly, your email address is open for spam harvesters, so you may end up with enlargement and nigerian scam emails flooding your inbox.
Since your provider doesn't give you a way to do it the right way on your server, you may want to look into email form services online and see if they are less expensive than your current alternative.
Maybe you are looking for
-
Mixed Mac & PC PCs no longer showing up in "shared"cant add windows printer
Hi all, I have noticed that none of the PCs on my network at work are showing up in finder under the 'shared' section, hasnt really been a big deal, i have shortcuts to all the network folders/printers i need to access (main printer is shared from a
-
Itunes deleted all my playlists and made a new one and won't allow others!
I plugged in my ipod nano, and it automatically deleted all my songs and moved them all into a new playlist called...(my name) Ipod selection. I have tried, rebooting my ipod, i have tried deleting all of my playlists...cause they still show that the
-
When I back up my iPhone to iTunes, does it save my Notes??
I need my Notes to transfer to a new iPhone! Thanks
-
Can I use FaceTime with an aftermarket USB webcam?
I'm currently looking at getting a Mac mini and using an aftermarket DVI monitor that doesn't have a webcam. I'd still like to be able to use FaceTime with my Mac so I'm looking at an external USB webcam. I'm just wondering if this will work or if I
-
I've been moving my picture collection into Aperture 3.1.1. In the process I find duplicates (coming from different sources) and have needed to delete quite a few in the process. That part is all good. My question today is: Is it possible to have a m