[PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Mathijs
Hello, I Want to have a unique time stamp. And for this i want to use the normal timestamp but it is possible that the seconds are the same, so i want to add the micro/milli seconds to the end of it. So when i have something like this as unixtime 1134989511 It wil be 113498951100 or even

Re: [PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Richard Heyes
Mathijs wrote: Hello, I Want to have a unique time stamp. And for this i want to use the normal timestamp but it is possible that the seconds are the same, so i want to add the micro/milli seconds to the end of it. So when i have something like this as unixtime 1134989511 It wil be

Re: [PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Dragan Stanojevic - Nevidljivi
Mathijs wrote: I Want to have a unique time stamp. And for this i want to use the normal timestamp but it is possible that the seconds are the same, so i want to add the micro/milli seconds to the end of it. So when i have something like this as unixtime 1134989511 It wil be 113498951100 or

Re: [PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Zareef Ahmed
Hi, use microtime function. Zareef Ahmed - Original Message - From: Mathijs [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, December 19, 2005 5:58 AM Subject: [PHP] How to get a unixtime with micro/mille seconds Hello, I Want to have a unique time stamp.

[PHP] AJAX Framework

2005-12-19 Thread Erfan Shirazi
Hi all Just wanted to get some feedback on which AJAX Framework people uses? I use SAJAX, is there anybody which maybe has used SAJAX but are now using something else instead, maybe somebody knows some better frameworks? Best Regards, /Erfan -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] duplicate filenames but different .extention

2005-12-19 Thread Dragan Stanojevic - Nevidljivi
matt VanDeWalle wrote: hello again I am trying to figure out how i can read the list of files in a directory using the opendir() and readdir() functions. Normally this goes fine but within the loop, what i am wanting to do is echo the filename if it is a jpg file, but if its a .gif, just

Re: [PHP] AJAX Framework

2005-12-19 Thread Zareef Ahmed
Hi, You can try pear package HTML_AJAX http://pear.php.net/package/HTML_AJAX Zareef Ahmed - Original Message - From: Erfan Shirazi [EMAIL PROTECTED] To: php-general@lists.php.net; Niklas Palmqvist [EMAIL PROTECTED] Sent: Monday, December 19, 2005 6:04 AM Subject: [PHP] AJAX

Re: [PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Mathijs
Zareef Ahmed wrote: Hi, use microtime function. Zareef Ahmed - Original Message - From: Mathijs [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, December 19, 2005 5:58 AM Subject: [PHP] How to get a unixtime with micro/mille seconds Hello, I Want to have

Re: [PHP] AJAX Framework

2005-12-19 Thread Miles Thompson
Search the archives for [PHP] Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX PHP] posted on July 21, 2005. Miles At 07:17 AM 12/19/2005, Zareef Ahmed wrote: Hi, You can try pear package HTML_AJAX http://pear.php.net/package/HTML_AJAX Zareef Ahmed - Original

[PHP] Write a FIFO file

2005-12-19 Thread Ruben Rubio Rey
Hi, I have a problem. I have created a fifo file (under linux) and I m not able to append some line from a php script. There is not output error, php just is executing for ever ... How can I write a fifo file? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] accessing RAW response

2005-12-19 Thread tg-php
There's probably a better way to do it, but I'd start parsing your respond and search for ?xml version=1.0 encoding=iso-8859-1? and start your data collection after you see that. If you're using PHP's XML parser (xml_parser_create() and such), then you don't have to worry about the header.

RE: [PHP] Write a FIFO file

2005-12-19 Thread Jay Blanchard
[snip] I have a problem. I have created a fifo file (under linux) and I m not able to append some line from a php script. There is not output error, php just is executing for ever ... How can I write a fifo file? [/snip] Please have a look here; http://www.php.net/file as a starting point

[PHP] ? Split string into smaller chunks

2005-12-19 Thread Labunski
I need to split a long string into smaler chunks (an array), as a separator using every third \n (and not just every \n). I could use 'explode', but then it would produce too many chunks. Thank you in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP/MySQL noob rides again.. into trouble

2005-12-19 Thread Eric Butera
Could you direct me towards any good resources on general security with php/mysql? http://phpsec.org/library/ Make sure to read these: - data filtering - sql injection . . .and all the others in time. =)

RE: [PHP] ? Split string into smaller chunks

2005-12-19 Thread Jay Blanchard
[snip] I need to split a long string into smaler chunks (an array), as a separator using every third \n (and not just every \n). I could use 'explode', but then it would produce too many chunks. [/snip] http://us2.php.net/manual/en/function.chunk-split.php -- PHP General Mailing List

Re: [PHP] ? Split string into smaller chunks

2005-12-19 Thread Anas Mughal
Split them using explode and then combine the ones you need to combined. Hope this helps. -- Anas Mughal On 12/19/05, Labunski [EMAIL PROTECTED] wrote: I need to split a long string into smaler chunks (an array), as a separator using every third \n (and not just every \n). I could use

Re: [PHP] ? Split string into smaller chunks

2005-12-19 Thread David Grant
Labunski wrote: I need to split a long string into smaler chunks (an array), as a separator using every third \n (and not just every \n). I could use 'explode', but then it would produce too many chunks. php.net/preg_split Cheers, David -- David Grant http://www.grant.org.uk/ -- PHP

[PHP] nexcess.net

2005-12-19 Thread Miles Thompson
Anyone using nexecess.net, and have an opinion pro or con? Miles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] nexcess.net

2005-12-19 Thread Jay Blanchard
[snip] Anyone using nexecess.net, and have an opinion pro or con? [/snip] Con -- the page cannot be displayed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] nexcess.net

2005-12-19 Thread Erin Fortenberry
I think this is what he means; http://www.nexcess.net/ I can say, using their Interworx product, that they have GREAT support. I have never used their hosting. -Erin -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Monday, December 19, 2005 12:52 PM To:

Re: [PHP] nexcess.net

2005-12-19 Thread John Nichel
Jay Blanchard wrote: [snip] Anyone using nexecess.net, and have an opinion pro or con? [/snip] Con -- the page cannot be displayed Well, depends on the contents of the page. I've seen some sites where it would be considered a 'pro' if the page couldn't be displayed. ;) -- John C. Nichel

Re: [PHP] nexcess.net - Spelling!!

2005-12-19 Thread Miles Thompson
Apologies, I should have written, Is anyone using nexcess.net? Opinion, pro or con? I'm not usually swayed by advertising, but as they're supporting PHP|architect though they deserved a look. Miles At 01:48 PM 12/19/2005, Miles Thompson wrote: Anyone using nexecess.net, and have an opinion

[PHP] Storing encrypted data into mysql: blob vs bin2hex

2005-12-19 Thread Mark Steudel
I have the following encryption function. And what I wanted to know is, Do I need to convert this to hex before storing this in a mysql database? Or could I store it into a blob and be fine? // from zend code gallery function RC4($keyfile, $data) { //ecncrypt $data with the key in $keyfile with

[PHP] Connecting to PHP

2005-12-19 Thread will
I know there are lots of ways to allow php to connect to components written in other languages. COM, EJB JAVA, .NET Components etc. Is there any way for another language to use PHP as a component so that all of it's amazing functions could be shared? I don't suppose it exposes a COM interface or

RE: [PHP] Connecting to PHP

2005-12-19 Thread Jay Blanchard
[snip] I know there are lots of ways to allow php to connect to components written in other languages. COM, EJB JAVA, .NET Components etc. Is there any way for another language to use PHP as a component so that all of it's amazing functions could be shared? I don't suppose it exposes a COM

[PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez
I am attempting to configure Group Office which is a Project Management suite on FreeBSD 5.4 with apache+mod_ssl-1.3.34+2.8.25_1, MySQL 5.0.16, PHP5-MySQL 5.1.1, and PHP5.1.1 and I keep getting the following error messages in my error logs when I attempt to open a php page: [Mon Dec 19

Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread John Nichel
Jose Borquez wrote: I am attempting to configure Group Office which is a Project Management suite on FreeBSD 5.4 with apache+mod_ssl-1.3.34+2.8.25_1, MySQL 5.0.16, PHP5-MySQL 5.1.1, and PHP5.1.1 and I keep getting the following error messages in my error logs when I attempt to open a php page:

RE: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Erin Fortenberry
It looks to me like the function session_save_path() does not exist. You might look and see if Group Office supports PHP 5.1.x, you might have to go back to an earlier version. -Erin -Original Message- From: Jose Borquez [mailto:[EMAIL PROTECTED] Sent: Monday, December 19, 2005

RE: [PHP] Connecting to PHP

2005-12-19 Thread tg-php
No.. it sounds like he wants to make function calls to PHP from another app.. kind of the reverse of using PHP's COM calls. I'm not aware that PHP has any registration in an OS or any kind of inherent listening mechanisms like COM has (I'm phrasing that poorly but you get the idea). You can

RE: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Erin Fortenberry
You also might try; http://www.group-office.com/forum/ They have had several people asl about the same error. -Ein -Original Message- From: Erin Fortenberry Sent: Monday, December 19, 2005 2:23 PM To: Jose Borquez; PHP Questions Lists Subject: RE: [PHP] PHP errors in Apache

[PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez
John Nichel wrote: Jose Borquez wrote: I am attempting to configure Group Office which is a Project Management suite on FreeBSD 5.4 with apache+mod_ssl-1.3.34+2.8.25_1, MySQL 5.0.16, PHP5-MySQL 5.1.1, and PHP5.1.1 and I keep getting the following error messages in my error logs when I

Re: [PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Silvio Porcellana [tradeOver]
Jose Borquez wrote: I installed PHP from the ports and did not do any configuration. I set up the phpinfo page and the configuration line did not set disable session. Thanks in advance, Jose Maybe you have this: '--disable-all' (not sure, thou, this should enable sessions anyway,

[PHP] Re: [Bulk] Re: [PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez
Silvio Porcellana [tradeOver] wrote: Jose Borquez wrote: I installed PHP from the ports and did not do any configuration. I set up the phpinfo page and the configuration line did not set disable session. Thanks in advance, Jose Maybe you have this: '--disable-all' (not sure, thou,

Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread John Nichel
Jose Borquez wrote: snip The Makefile configuration did have --disable-all included. Here is the link to my phpinfo page; http://68.127.38.82/install/test.php You have no session support. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL

[PHP] Pblm with streaming ..

2005-12-19 Thread ganu
Hello, I hv attatched a 33 mb .mpeg file a small clip in my project, but when I click it download the whole file then open/play. I want like, in some site I have seen the buffering/streaming, that it will show some play for 1-2 min and again buffer something and again so user does'nt hv

[PHP] MySQL - PHP's configure failed with error

2005-12-19 Thread Scott Fletcher
I don't know what is the problem. I'm using the GNU GCC and GNU Biutils. --snip-- ./configure --with-mysqli=../../mysql/bin/mysql_config --with-apxs2=../../ap ache2/bin/apxs --with-unixODBC --with-openssl --with-curl --disable-libxml - -disable-dom --enable-track-vars --enable-ftp

[PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread Jose Borquez
John Nichel wrote: Jose Borquez wrote: snip The Makefile configuration did have --disable-all included. Here is the link to my phpinfo page; http://68.127.38.82/install/test.php You have no session support. I am not sure what to do now. Do I need to uninstall and reinstall it with

Re: [PHP] Re: [Bulk] Re: [PHP] PHP errors in Apache error logs

2005-12-19 Thread John Nichel
Jose Borquez wrote: John Nichel wrote: Jose Borquez wrote: snip The Makefile configuration did have --disable-all included. Here is the link to my phpinfo page; http://68.127.38.82/install/test.php You have no session support. I am not sure what to do now. Do I need to uninstall and

[PHP] Passing $_POST values to a php script

2005-12-19 Thread Sumit Chachra
hi, I am trying to develop a testing framework for a bunch of php scripts. These files expect various kinds of data from the $_POST array. They work fine when invoked from the browser. But I am wondering if I can programmatically pass these values so that I can stress test them in a

RE: [PHP] Passing $_POST values to a php script

2005-12-19 Thread Jay Blanchard
[snip] I am trying to develop a testing framework for a bunch of php scripts. These files expect various kinds of data from the $_POST array. They work fine when invoked from the browser. But I am wondering if I can programmatically pass these values so that I can stress test them in a

[PHP] Earlier versions hurt PHP 5

2005-12-19 Thread PHPDiscuss - PHP Newsgroups and mailing lists
As a developer, I would love to use PHP 5+ for applications but I am afraid to do so because 90% of web hosting companies do not offer it. The biggest reason that that they do not offer it is because there is little demand for it. The reason why there is little demand for it is that developers

Re: [PHP] Passing $_POST values to a php script

2005-12-19 Thread Silvio Porcellana [tradeOver]
Jay Blanchard wrote: [snip] I am trying to develop a testing framework for a bunch of php scripts. These files expect various kinds of data from the $_POST array. They work fine when invoked from the browser. But I am wondering if I can programmatically pass these values so that I can

RE: [PHP] Earlier versions hurt PHP 5

2005-12-19 Thread Jay Blanchard
[snip] As a developer, I would love to use PHP 5+ for applications but I am afraid to do so because 90% of web hosting companies do not offer it. The biggest reason that that they do not offer it is because there is little demand for it. The reason why there is little demand for it is that

Re: [PHP] Earlier versions hurt PHP 5

2005-12-19 Thread Warren Vail
Not sure where you are looking for web hosting companies, but my experience is that most hosting companies that offer Linux and Apache, love it, even back in the more stable PHP4 platform. It has a small footprint, especially when the same server hosts many domains with many web applications

Re: [PHP] Earlier versions hurt PHP 5

2005-12-19 Thread Greg Donald
On 12/19/05, PHPDiscuss - PHP Newsgroups and mailing lists [EMAIL PROTECTED] wrote: As a developer, I would love to use PHP 5+ for applications but I am afraid to do so because 90% of web hosting companies do not offer it. The biggest reason that that they do not offer it is because there is

[PHP] Invalid argument supplied for foreach()

2005-12-19 Thread Jose Borquez
I am getting the following errors when accessing a php page: /usr/local/www/groupoffice-com-2.14-FINAL-4/configuration/index.php(299) : Warni ng - Invalid argument supplied for foreach() [Mon Dec 19 15:10:52 2005] [error] PHP Warning: Invalid argument supplied for f oreach() in

[PHP] http curl to https is that a secure connection?

2005-12-19 Thread Mark Steudel
I was curious, if have a page at http and it initiates a curl session to a https, is the information sent secure or open because the the curl session is from a unecrypted page? Mark

Re: [PHP] Pblm with streaming ..

2005-12-19 Thread Michael Hulse
On Dec 19, 2005, at 12:10 PM, ganu wrote: ... any idea how to do? I am not getting any idea/starting how to do it ... Use Flash 8. It will convert to .FLV format. Easy as cake. Choose to make the file external. Then you can use Progressive download/play. With Flash 8 it is really easy to

[PHP] Re: Invalid argument supplied for foreach()

2005-12-19 Thread David Robley
Jose Borquez wrote: I am getting the following errors when accessing a php page: /usr/local/www/groupoffice-com-2.14-FINAL-4/configuration/index.php(299) : Warni ng - Invalid argument supplied for foreach() [Mon Dec 19 15:10:52 2005] [error] PHP Warning: Invalid argument supplied for f

RE: [PHP] Re: Invalid argument supplied for foreach()

2005-12-19 Thread Mark Steudel
Something that I use to make sure I don't give the user a nicer error If ( is_array( $array ) ) { foreach ( $array as $key = $value ) { echo } } Else { exit('Expecting array') } -Original Message- From: David Robley [mailto:[EMAIL

[PHP] Access Headers Submitted by Browser

2005-12-19 Thread Michael B Allen
I want to read headers submitted by the client. Are these available through some global array somewhere? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Access Headers Submitted by Browser

2005-12-19 Thread Curt Zirzow
On Mon, Dec 19, 2005 at 11:28:07PM -0500, Michael B Allen wrote: I want to read headers submitted by the client. Are these available through some global array somewhere? You will notice all the HTTP_* values in: var_dump($_SERVER); Curt. -- cat .signature: No such file or directory --

Re: [PHP] http curl to https is that a secure connection?

2005-12-19 Thread Curt Zirzow
On Mon, Dec 19, 2005 at 04:01:34PM -0800, Mark Steudel wrote: I was curious, if have a page at http and it initiates a curl session to a https, is the information sent secure or open because the the curl session is from a unecrypted page? The data sent back and forth to the curl session will

Re: [PHP] MySQL - PHP's configure failed with error

2005-12-19 Thread Curt Zirzow
On Mon, Dec 19, 2005 at 02:56:37PM -0500, Scott Fletcher wrote: I don't know what is the problem. I'm using the GNU GCC and GNU Biutils. --snip-- ./configure --with-mysqli=../../mysql/bin/mysql_config --with-apxs2=../../ap ache2/bin/apxs --with-unixODBC --with-openssl --with-curl

[PHP] pspell dictionary issue

2005-12-19 Thread Adi
I am having a problem switching dictionaries from 'american', 'british' and 'canadian' English in pspell. Pspell seems to test everything against the american dictionary for some reason. I tested aspell on command line and worked fine if I supplied the dictionary I wanted to use with the –d

Re: [PHP] Random Images with no duplicates?

2005-12-19 Thread Mike
I'd just like to thank everyone who helped me our with this. I think it's great that so many people would be so helpful and not expect anything in return. This list is quite a storehouse of info and I'm learning just from reading the posts since I joined last week! Again, thanks all. -Mike

[PHP] ID--how to keep them in order

2005-12-19 Thread Anasta
I have a script which outputs a movie title, rating and the ID number (below). The ID number is also used in the admin section as a select for update and delete. The problem i have is that as i delete certain entries then the number sequence on the display page has missing numbers--is there a

Re: [PHP] Invalid argument supplied for foreach()

2005-12-19 Thread Curt Zirzow
On Mon, Dec 19, 2005 at 03:48:53PM -0800, Jose Borquez wrote: I am getting the following errors when accessing a php page: /usr/local/www/groupoffice-com-2.14-FINAL-4/configuration/index.php(299) : Warni ng - Invalid argument supplied for foreach() [Mon Dec 19 15:10:52 2005] [error] PHP

Re: [PHP] ID--how to keep them in order

2005-12-19 Thread Curt Zirzow
On Tue, Dec 20, 2005 at 02:12:43PM +0800, Anasta wrote: I have a script which outputs a movie title, rating and the ID number (below). The ID number is also used in the admin section as a select for update and delete. The problem i have is that as i delete certain entries then the number