Re: [PHP] Exporting large data from mysql to html using php

2011-10-24 Thread Shiplu Mokaddim
2-3 minutes is long enough. I think your SELECT query and MySQL schema has 
something that can be improved.

Sent from a handheld device.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] str_replace around a character??

2011-07-13 Thread Shiplu Mokaddim
 If you are looking for a one liner reg ex, it may take some time. This may 
lead wasting your development time. Better you do the following,

1. replace the string with tokens in address.
2. Split using comma.
3. Apply common email regex.
4. Replace tokens with actual strings.
5. Rebuild/join the string with , 

With this approach you can validate individual emails too.


Sent from a handheld device


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What type of PHP5 shall I install to learn PHP5 together with Apache, Please specify the Apache type too Since There are Two Apache types also

2011-07-08 Thread Shiplu Mokaddim
See https://help.ubuntu.com/community/ApacheMySQLPHP

Also you can try the command bellow

sudo apt-get install lamp-server^

Note, ^ is a part of the package name.


Sent from a handheld device
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function

2011-06-23 Thread Shiplu Mokaddim


Sent from a handheld device

On 24-Jun-2011, at 5:53 AM, ad...@buskirkgraphics.com wrote:

 I am running a scheduled task for the first time since switching from linux
 to Windows IIS 
 
 I am getting an error when the task runs.
 
 Fatal error: Call to undefined function mysql_connect()
 
 
 I ran php.exe -m to see that the MySQL Module is loaded.
 
 I have no issues unless I am running a php file in the Scheduled task.
 
 
 
 Any help would be appreciated
 

Richard,
Create a sample scheduled task with a sample.php file. In that file call 
phpinfo() and save that content. After finishing the task find the 
configuration file (php.ini) location in your saved content. Just make sure 
mysql is  activated there.
Good luck
 
 
 
 
 Richard L. Buskirk