Search found 23 matches
- Wed Mar 07, 2007 12:28 am
- Forum: PHP - Code
- Topic: Automated batch processing with PHP
- Replies: 2
- Views: 277
- Tue Mar 06, 2007 8:45 am
- Forum: PHP - Code
- Topic: Automated batch processing with PHP
- Replies: 2
- Views: 277
Automated batch processing with PHP
Is it possible with PHP to write a script that calls a PHP function (i.e. for batch processing) each day at a specific time, automatically. Let's says for example I want to create a PHP script that runs automatically on my http-server, each morning at 2am, to perform archiving and generate automatic...
- Thu Feb 08, 2007 12:23 am
- Forum: PHP - Code
- Topic: Email Prompt while waiting for mail() to return
- Replies: 2
- Views: 664
- Wed Feb 07, 2007 7:11 am
- Forum: PHP - Code
- Topic: Email Prompt while waiting for mail() to return
- Replies: 2
- Views: 664
Email Prompt while waiting for mail() to return
My email script is working perfectly, and I want to take it a step further. How do I get my script to display a nice little animated gif with a message saying: "Please wait while we attempt to send your email." while waiting for the mail() function to return, which will then of course repo...
- Fri Feb 02, 2007 2:06 am
- Forum: PHP - Code
- Topic: Display an upload error attemting uploading a 2 large file?
- Replies: 8
- Views: 776
The script works perfectly when the image is within the proper file size constraint. However, the moment the file is larger than my MAX_FILE_SIZE setting, the $_FILES array does not get filled. So I can't manage to catch the error to display a user-friendly message to my not so very technically tale...
- Thu Feb 01, 2007 1:17 am
- Forum: PHP - Code
- Topic: Display an upload error attemting uploading a 2 large file?
- Replies: 8
- Views: 776
- Wed Jan 31, 2007 7:03 am
- Forum: PHP - Code
- Topic: Display an upload error attemting uploading a 2 large file?
- Replies: 8
- Views: 776
Display an upload error attemting uploading a 2 large file?
I have a php script that uploads an image to my mySQL DB. My MAX_FILE_SIZE setting has been set to 1000000. Now, how do I get my php page to display a nice message to my visitor when he has exceeded the allowable file size. I know its not possible with JavaScript, due to security reasons, and I'm al...
- Tue Jan 30, 2007 4:00 am
- Forum: PHP - Code
- Topic: Posting a $_POST[multidimensional_array]
- Replies: 1
- Views: 414
Posting a $_POST[multidimensional_array]
In my database, I have two tables: Categories and SubCategories (which references it's parent category via an ID foreign key field) I want PHP to return all the Categories and SubCategories from the database, and somehow put them inside my html document for Java to process. A category <select> box a...
- Tue Jan 30, 2007 2:22 am
- Forum: PHP - Code
- Topic: HTML form --> JavaScript validation --> PHP processing
- Replies: 13
- Views: 1092
Thanks for the help guys. The solution was then to drop the validation javascript into the onsubmit, have it return true. I also used a hidden variable which javascript set to true which php would check to see if it can proceed with adding the advertisment. I used <?php echo($_SERVER['PHP_SELF']); ?...
- Mon Jan 29, 2007 9:55 am
- Forum: PHP - Code
- Topic: HTML form --> JavaScript validation --> PHP processing
- Replies: 13
- Views: 1092
- Mon Jan 29, 2007 9:41 am
- Forum: PHP - Code
- Topic: HTML form --> JavaScript validation --> PHP processing
- Replies: 13
- Views: 1092
Making sense feyd. Thanks for the prompt response. Just had a brilliant idea however. I just need to get my brains around it. How about this Program the Submit buttons onclick event to behave as follows: - perform JavaScript validation - and if it returns true - do the PHP bit, but the idea is quite...
- Mon Jan 29, 2007 9:15 am
- Forum: PHP - Code
- Topic: HTML form --> JavaScript validation --> PHP processing
- Replies: 13
- Views: 1092
HTML form --> JavaScript validation --> PHP processing
Just a simple question. I have an html form, which calls a JavaScript function validateData() via action=javascript:validateData() tag. Then validateData() basically - validates the data, which I'm okay with. After javascript validation is complete, I would like javascript to sort of redirect to the...
- Mon Jan 29, 2007 7:50 am
- Forum: PHP - Code
- Topic: Problem with newline/linefeed in string variable!!!
- Replies: 6
- Views: 539
Got it! Thanks guys!
worked perfectly. Now that my variable is being stripped of all newlines and thingies, my page is no more confused!
Much appreciated!
Code: Select all
$string = str_replace(Array("\n", "\r"), '', $string);Much appreciated!
- Mon Jan 29, 2007 6:54 am
- Forum: PHP - Code
- Topic: Problem with newline/linefeed in string variable!!!
- Replies: 6
- Views: 539
- Mon Jan 29, 2007 5:33 am
- Forum: PHP - Code
- Topic: Problem with newline/linefeed in string variable!!!
- Replies: 6
- Views: 539
Problem with newline/linefeed in string variable!!!
Hi all! First of all, I'm no PHP Guru. I need help removing a newline/linefeed artifact or special (invisible) character from a string, but it does not show up in for example Mozilla's source viewer as an escaped \n or \r. The source viewer displays the following: area = new HyperTextArea('welcome',...