[PHP] Upload not finding directory to write to.

2006-10-27 Thread Dave M G
PHP List, I had a file upload script which was working fine. Then, because of other needs, I changed my local Apache settings so that my local web site directory structure behaved the same as they do on my web hosting service. What I mean by that is that before, I would access my local web s

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Rasmus Lerdorf
Jochem Maas wrote: > Eric wrote: >> Stut wrote: >>> Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume thi

Re: [PHP]

2006-10-27 Thread Robert Cummings
On Fri, 2006-10-27 at 13:51 +0200, Jochem Maas wrote: > > range(1, 31) > >>> Memory waster ;) > >> any idea as to what the damage is as compared to the classic for loop? > > > > Given that a variable probably costs X and that any variable cane be > > stored as Y in an array, and an array woul

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Jochem Maas
Eric wrote: > Stut wrote: >> Eric wrote: >>> When I create a socket/stream that connects to a news sever and try >>> to recv data from the socket when there is nothing there (Like if the >>> server sends one line and I call recv twice) the socket freezes. I >>> assume this is because using socket_c

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Eric
Stut wrote: Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using socket_create or fsockopen creates a

[PHP] Re: How do I get ini_set('output_handler', '') to work?!

2006-10-27 Thread Tom Atkinson
You can't test it like that. When you use system('php') you invoke a new instance of php that has the default values. You are apparently already familiar with ini_set() so why not use ini_get() to test if your code works? Daevid Vincent wrote: What am I doing wrong... In my php.ini I have thi

[PHP] Re: Is there such a thing?

2006-10-27 Thread Tom Atkinson
http://gtk.php.net/ Integz wrote: http://www.evilbitz.com/2006/10/27/local-php-standalone-binaries-2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is there such a thing?

2006-10-27 Thread Integz
http://www.evilbitz.com/2006/10/27/local-php-standalone-binaries-2/

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Stut
Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using socket_create or fsockopen creates a blocking TC

Re: [PHP] counting records in db

2006-10-27 Thread Børge Holen
On Friday 27 October 2006 19:34, Richard Lynch wrote: > Your idea to use 'COUNT(Username)' is just about the ONLY part of that > script that you are doing correctly... > > :-) > > Start reading here: > http://phpsec.org/ > > And the header("Location: ...") requires a full URL. No it doesn't. but h

RE: [PHP] [funny] The state of Java Development

2006-10-27 Thread Miles Thompson
At 06:04 PM 10/27/2006, you wrote: UGH This stupid list server stripped out the inline image. WTF!? Here, I put it on my site http://daevid.com/junk/Java_Dev.jpg DÆVID They have the same staff trainer as Chapters / Indigo has in Canada. Chapters also threw out 1/4 of the books and repl

Re: [PHP] Re: DATETIME or UNIX TIMESTAMPS?

2006-10-27 Thread Børge Holen
I've completely switched. The support for datetime and also timestamp in mysql is amazing... Writing usable applications witch depend on date functions and also applications witch just shows the time is much easier, instead of reading throught all the freakin' manuals to do small operations and

[PHP] Non-blocking sockets

2006-10-27 Thread Eric
When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using socket_create or fsockopen creates a blocking TCP/Stream sock

RE: [PHP] [funny] The state of Java Development

2006-10-27 Thread Daevid Vincent
UGH This stupid list server stripped out the inline image. WTF!? Here, I put it on my site http://daevid.com/junk/Java_Dev.jpg DÆVID From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 1:58 PM To: php-ge

[PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-27 Thread Daevid Vincent
What am I doing wrong... In my php.ini I have this for my web pages (and I want it): output_handler = ob_gzhandler But this causes my command line script to not show output until the very end. I thought I could disable it at the top of a script, but it's not working!?! #!/usr/bin/php -q [

Re: [PHP] [funny] The state of Java Development

2006-10-27 Thread Ashley M. Kirchner
Daevid Vincent wrote: "The state of Java Development" A friend snapped this picture at the Barnes & Noble in Woodinville, WA... Nice and ... blank. -- W | It's not a bug - it's an undocumented feature. + Ashley M. Kirc

[PHP] [funny] The state of Java Development

2006-10-27 Thread Daevid Vincent
"The state of Java Development"A friend snapped this picture at the Barnes & Noble in Woodinville, WA...

[PHP] Re: natsort()

2006-10-27 Thread Sandy
Thanks Dave > foreach($dl as $filename){ > print $filename; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] heredoc usage [WAS:

2006-10-27 Thread Paul Novitski
At 10:23 AM -0700 10/26/06, Paul Novitski wrote: For a robust general CMS, though, I want a completely unambiguous demarcation of replacable content. At 10/27/2006 09:01 AM, tedd wrote: If you want "a completely unambiguous demarcation" then use xml with a defined schema. I don't think you c

[PHP] Memcached Question

2006-10-27 Thread Sancar Saran
Hi, Recently I discoverd Memcache daemon for sessions, I'm very pleased its performance. I want to use memcache other than $_SESSION For example, I have an array, it has language definitions. Normally on each page load I have to include that file. So I want to put that array into Memcached a

Re: [PHP] counting records in db

2006-10-27 Thread afan
> Your idea to use 'COUNT(Username)' is just about the ONLY part of that > script that you are doing correctly... > > :-) :D > And the header("Location: ...") requires a full URL. Why? > And you should have better error-checking, probably. > [Though maybe you have a custom error handler not ap

Re: [PHP] PHP 5 Hosting

2006-10-27 Thread Richard Lynch
On Fri, October 27, 2006 7:18 am, Dotan Cohen wrote: > On 25/10/06, Ed Lazor <[EMAIL PROTECTED]> wrote: >> When I signed up with Dreamhost, I discovered that you have to fill >> out a form and fax it to them, along with a rubbing of your credit >> card. Personally, I found that part rather annoyi

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Richard Lynch
.phps is taken for PHP Source, so using it for PHP Serialized would be Bad. Perhaps phpd for PHP Data would suit you. You could make it anything you want, as far as I know. Actually, you could make it be .php and use ForceType in .htaccess to do what you describe, but that's probably not a Good

Re: [PHP] How does the Zend engine behave?

2006-10-27 Thread Richard Lynch
On Thu, October 26, 2006 8:28 pm, [EMAIL PROTECTED] wrote: > Richard Lynch wrote: >> On Wed, October 25, 2006 11:58 am, [EMAIL PROTECTED] wrote: >>> Are included files ever unloaded? For instance if I had 3 include >>> files >>> and no loops, once execution had passed from the first include file >>

Re: [PHP] http://sourceforge.net/projects/dfo/

2006-10-27 Thread Gert Cuykens
Ok, What specific documentation do you want i start with ? i was hoping it would just work on every firefox and php 5< mysql 5< server with one small change to the php.ini to disable magic quotes see http://php.net/manual/en/security.magicquotes.disabling.php Using it should be quit simple if not

Re: [PHP] counting records in db

2006-10-27 Thread Richard Lynch
Your idea to use 'COUNT(Username)' is just about the ONLY part of that script that you are doing correctly... :-) Start reading here: http://phpsec.org/ And the header("Location: ...") requires a full URL. And you should have better error-checking, probably. [Though maybe you have a custom erro

Re: [PHP] natsort()

2006-10-27 Thread Richard Lynch
On Thu, October 26, 2006 4:05 pm, Sandy wrote: > > $d = '/somedir/subdir'; > $od = opendir($d); > if ($od) { > $dl = scandir($d); > natsort($dl); > } > > > The sorted array is available through print_r(). > How can I obtain a natsorted array that can be listed using : > > while ($i <= $ar

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Richard Lynch
On Thu, October 26, 2006 6:19 pm, Patrick Aljord wrote: > $_SESSION['user_id']=$user_id; > $_SESSION['user_login']=$user_login; > $_SESSION['user_pass']=$user_pass; > $_SESSION['user_level']=$user_level; > $_SESSION['session_bool']="true"; > $sessionid = session_id(); echo

Re: [PHP] How does the Zend engine behave?

2006-10-27 Thread Richard Lynch
On Fri, October 27, 2006 12:11 am, Sean Pringle wrote: >> The Caching systems such as Zend Cache (not the Optimizer), MMCache, >> APC, etc are expressly designed to store the tokenized version of >> the >> PHP script to be executed. >> >> Note that their REAL performance savings is actually in load

Re: [PHP] Running a Java Program

2006-10-27 Thread Richard Lynch
On Thu, October 26, 2006 6:48 pm, Prathaban Mookiah wrote: > I have a situation where, when the user logs into the system (Apache > 2/PHP > 5.1/Win XP) the php script should activate a Java program to run in > the > background. This program will keep running in the background while > everytime > th

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Richard Lynch
On Fri, October 27, 2006 6:22 am, Rosen wrote: > I have scheduled php script, which runs with "c:\php\php.exe php > test.php", > i.e. without browser. I give working dir the directory of the script. > When I start it from the browser all is ok. > But when I start manualy sctipt with "c:\php\php.exe

[PHP] http://sourceforge.net/projects/dfo/

2006-10-27 Thread Gert Cuykens
I wrote my own phpmyadmin from scratch, so far i got this http://sourceforge.net/projects/dfo/ and i was wondering what i needed to change so other people would like it too ? I only have tested it on firefox so for now IE probably doesnt like dfo at all, sorry i will fix it later for IE 7. And i

Re: [PHP] heredoc usage [WAS:

2006-10-27 Thread tedd
At 1:09 PM -0400 10/26/06, Robert Cummings wrote: On Thu, 2006-10-26 at 11:24 -0400, tedd wrote: At 1:04 AM -0700 10/26/06, Paul Novitski wrote: >At 10/25/2006 11:24 PM, Robert Cummings wrote: >>I use a tag based template system, there's no PHP in my content so my >>content files for the mos

Re: [PHP] heredoc usage [WAS:

2006-10-27 Thread tedd
At 10:23 AM -0700 10/26/06, Paul Novitski wrote: At 10/26/2006 08:24 AM, tedd wrote: I think a would work just as well -- seems so old-world to me. :-) By default, div is a block element and span is inline, so span seemed like the natural fit for a sentence fragment. I don't think there'

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Dave Goodchild
Also, why are you assigning the result of session_id() into a variable that is then passed into $_SESSION. Seems overcomplex and redundant - why not just call session_id() when you need it? Just a thought.

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Patrick Aljord
On 10/27/06, Chris Shiflett <[EMAIL PROTECTED]> wrote: Patrick Aljord wrote: > I'm moving my page from php4 to php5 and I get this error: > Warning: Unknown: The session id contains illegal characters, > valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on > line 0 Can you check to see what

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Chris Shiflett
Patrick Aljord wrote: > I'm moving my page from php4 to php5 and I get this error: > Warning: Unknown: The session id contains illegal characters, > valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on > line 0 Can you check to see what session identifier the browser is sending when you get t

[PHP] Re: Problem compiling PHP 4.4.2 with mcrypt

2006-10-27 Thread Myron Turner
Found this on Google: http://marc2.theaimsgroup.com/?l=php-install&m=108030891925096&w=2 Then Goto: http://mcrypt.hellug.gr/mcrypt/index.html where it says: The 2.6.x versions of mcrypt do not include Libmcrypt The 2.6.x versions of mcrypt need Libmhash 0.8.15 or newer It has a download facilit

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Jochem Maas
Rosen wrote: > Hi, > I have scheduled php script, which runs with "c:\php\php.exe php test.php", > i.e. without browser. I give working dir the directory of the script. > When I start it from the browser all is ok. > But when I start manualy sctipt with "c:\php\php.exe text.php >ll.txt" the > scr

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Miles Thompson
At 08:22 AM 10/27/2006, Rosen wrote: Hi, I have scheduled php script, which runs with "c:\php\php.exe php test.php", i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with "c:\php\php.exe text.php >ll

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dotan Cohen
On 27/10/06, Dave Goodchild <[EMAIL PROTECTED]> wrote: No, it's running otherwise he wouldn't even see the function error message. I run php scripts on Fedora all the time - all -q does is suppress HTTP headers. The Oracle extension may not be installed? It's most likely installed as he doesn't

Re: [PHP] PHP 5 Hosting

2006-10-27 Thread Dotan Cohen
On 25/10/06, Ed Lazor <[EMAIL PROTECTED]> wrote: Hi, I wanted to give some feedback on PHP 5 hosting in case it helps someone. I signed up with DreamHost last Thursday. I also signed up with OCS Solutions to compare the two services. I also maintain a server with CalPop. When I signed up wit

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dave Goodchild
No, it's running otherwise he wouldn't even see the function error message. I run php scripts on Fedora all the time - all -q does is suppress HTTP headers. The Oracle extension may not be installed?

Re: [PHP] Problem with manual running PHP script

2006-10-27 Thread Dotan Cohen
On 27/10/06, Rosen <[EMAIL PROTECTED]> wrote: Hi, I have scheduled php script, which runs with "c:\php\php.exe php test.php", i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with "c:\php\php.exe text

Re: [PHP]

2006-10-27 Thread Jochem Maas
Robert Cummings wrote: > On Thu, 2006-10-26 at 22:44 +0200, Jochem Maas wrote: >> Robert Cummings wrote: >>> On Thu, 2006-10-26 at 15:31 +0200, Jochem Maas wrote: bunch of space wasters ;-) >>> $selDay?' selected="selected"':''),'>',$d,''; ?> >>> Specifically: >>> range(1,

[PHP] Problem with manual running PHP script

2006-10-27 Thread Rosen
Hi, I have scheduled php script, which runs with "c:\php\php.exe php test.php", i.e. without browser. I give working dir the directory of the script. When I start it from the browser all is ok. But when I start manualy sctipt with "c:\php\php.exe text.php >ll.txt" the script gives me an error( in

Re: [PHP] Running a Java Program

2006-10-27 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-27 06:28:15 +0600: > Ray, > > Nope - I cannot have the program running all the time because the port that > it this program will connect to will be accessed by other programs too. So it > needs to run only when the user is online and logged into the system. > > Any

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Alister Bulman
On 27/10/06, Stut <[EMAIL PROTECTED]> wrote: Hamish Lawson wrote: > I have a web application (not written in PHP) that can return data in > various formats, including JSON and PHP's serialization format. At the > moment my URL scheme looks like this: > staff/engineering?format=json > but I'd

Re: [PHP]

2006-10-27 Thread Robert Cummings
On Thu, 2006-10-26 at 22:44 +0200, Jochem Maas wrote: > Robert Cummings wrote: > > On Thu, 2006-10-26 at 15:31 +0200, Jochem Maas wrote: > >> bunch of space wasters ;-) > >> > >> >> $selDay?' > >> selected="selected"':''),'>',$d,''; ?> > > > > Specifically: > > > >> range(1, 31) > > > > Memory

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Stut
Hamish Lawson wrote: I have a web application (not written in PHP) that can return data in various formats, including JSON and PHP's serialization format. At the moment my URL scheme looks like this: staff/engineering?format=json but I'd like to switch to using a file extension to denote

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Hamish Lawson
Hello Roman there's no standard filename extension for PHP-serialized data, I'd just use txt or something... .psdf or whatever. .ser is used for serialized Java objects and I've found .jser also being used (though less frequently) for that. On the analogy of the latter I'll plump for .

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Hamish Lawson
Hello Chris You could "convert" it to a php file: RewriteCond %{REQUEST_URI} *.json RewriteRule ^(.*).json$ json.php?$1 [T=application/x-httpd-php,L] Thanks for continuing to work on this, but I'm afraid my inadequate explanation has sent you in the wrong direction. Let's see if I can do bett

Re: [PHP] counting records in db

2006-10-27 Thread Satyam
- Original Message - From: "Paul Novitski" <[EMAIL PROTECTED]> While we're talking about optimization, I'd want to check to make sure COUNT(*) didn't ask MySQL to generate a throw-away recordset consisting of all fields. I wonder if it would be more machine-efficient to use COUNT(`la

Re: [PHP] Shopping Cart

2006-10-27 Thread Chris
CK wrote: Hi, A client has requested a cart with the following features, any leads on such a package, preferably open-source? Have you done any research at all? We're not going to do your work for you.. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (