[PHP] Pear DB

2008-07-09 Thread John Comerford
Hi Folks, I have just successfully lobbied for the company I work for to use PHP/MySQL for our next website. My Question is regarding DB abstraction . I know there is a Pear DB module, is this the best to use ? I have a vague memory of reading somewhere that there is a newer lib or somethin

Re: [PHP] Logic sought

2008-07-09 Thread Per Jessen
tedd wrote: > If two, or more, users hit the site at the same time then a RACE > condition may have one user getting something they didn't ask for or > not getting anything at all. > > The complicated way I figure I could solve this would be to: > > 1. Generate a random string name for the file

Re: [PHP] PHP code will not work

2008-07-09 Thread Ted Wood
PHP at the command line doesn't run within a web server environment. ~Ted On 9-Jul-08, at 11:07 PM, Sanjay Mantoor wrote: Hi, I found $_SERVER['HTTP_USER_AGENT'] works when you are using with browser by server like Apache. If you are executing your code like script in command prompt it may

Re: [PHP] PHP code will not work

2008-07-09 Thread Sanjay Mantoor
Hi, I found $_SERVER['HTTP_USER_AGENT'] works when you are using with browser by server like Apache. If you are executing your code like script in command prompt it may not work. I got below :- PHP Notice: Undefined index: HTTP_USER_AGENT If you use print_r($_SERVER) , you can see all the listi

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 6:52 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > try triggering an E_FATAL instead of E_NOTICE and you'll see > there is no need to use Exceptions in this case (albeit that > it's an acceptable alternative). > minor but, it would have to be E_USER_ERROR, because you can on

Re: [PHP] can any one help me on this

2008-07-09 Thread Robert Cummings
On Thu, 2008-07-10 at 11:13 +0800, willyam pax wrote: > Warning:session_start():Canot send session cache limiter - headers already It means you have output going to the browser before you begin your session with session_start(). This usually means you have trailing whitespace in an included file w

RE: [PHP] can any one help me on this

2008-07-09 Thread Bob
It's probably some white space above your session_start function. Make sure that there is no white space before your http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] can any one help me on this

2008-07-09 Thread willyam pax
Warning:session_start():Canot send session cache limiter - headers already sent help me i dont understand this warning... but the program still works... thanks in advance... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Logic sought

2008-07-09 Thread Jim Lucas
tedd wrote: Hi gang: Here's the logic problem. First the site: http://php1.net/b/zip-files/ Now, the site works well enough. The user selects what they want, clicks Submit, the order is assembled in zip file and presented to the user for downloading. However, as it stands now, before the

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 8:52 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Daniel Brown schreef: >> >> On Wed, Jul 9, 2008 at 3:43 PM, tedd <[EMAIL PROTECTED]> wrote: >>> >>> However, on server [2] (Daniel Brown's most excellent service, btw), >>> everything works great -- as is usual (every time I s

Re: [PHP] zippidity do duh!

2008-07-09 Thread Jochem Maas
Daniel Brown schreef: On Wed, Jul 9, 2008 at 3:43 PM, tedd <[EMAIL PROTECTED]> wrote: However, on server [2] (Daniel Brown's most excellent service, btw), everything works great -- as is usual (every time I say something like this he gives me another month of free service). :-) Dan box isn't d

Re: [PHP] Logic sought

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 6:11 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > generate a unique hash as the name based on the contents of the zip, then > if 2 people > happen to want exactly the same selection you won't have to build/zip it > twice ... > just check if the zip happens to exist before tr

Re: [PHP] Logic sought

2008-07-09 Thread Jochem Maas
generate a unique hash as the name based on the contents of the zip, then if 2 people happen to want exactly the same selection you won't have to build/zip it twice ... just check if the zip happens to exist before trying to build it. have the script do garbage collection on old zip files ... i

Re: [PHP] Logic sought

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 7:45 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > Here's the logic problem. > > First the site: > > http://php1.net/b/zip-files/ > > Now, the site works well enough. The user selects what they want, clicks > Submit, the order is assembled in zip file and presented to th

Re: [PHP] Logic sought

2008-07-09 Thread Kyle Browning
Write a script that cron runs that checks dates of files and removes 1 month old ones? On Wed, Jul 9, 2008 at 4:45 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > Here's the logic problem. > > First the site: > > http://php1.net/b/zip-files/ > > Now, the site works well enough. The user select

[PHP] Logic sought

2008-07-09 Thread tedd
Hi gang: Here's the logic problem. First the site: http://php1.net/b/zip-files/ Now, the site works well enough. The user selects what they want, clicks Submit, the order is assembled in zip file and presented to the user for downloading. However, as it stands now, before the script assemb

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 4:56 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Wed, Jul 9, 2008 at 6:53 PM, tedd <[EMAIL PROTECTED]> wrote: > > At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote: > >> > >> On Wed, Jul 9, 2008 at 3:19 PM, tedd > >> <[EMAIL PROTECTED]> wrote: > >> >

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 6:53 PM, tedd <[EMAIL PROTECTED]> wrote: > At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote: >> >> On Wed, Jul 9, 2008 at 3:19 PM, tedd >> <[EMAIL PROTECTED]> wrote: >> >> At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: >> >> >> >> if(class_exists('ZipArchiv

Re: [PHP] zippidity do duh!

2008-07-09 Thread tedd
At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote: On Wed, Jul 9, 2008 at 3:19 PM, tedd <[EMAIL PROTECTED]> wrote: At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: if(class_exists('ZipArchive', false)) $zip = new ZipArchive(); else trigger_error('class ZipArchive does not e

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 3:19 PM, tedd <[EMAIL PROTECTED]> wrote: > At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: > >> >> >> if(class_exists('ZipArchive', false)) >> $zip = new ZipArchive(); >> else >> trigger_error('class ZipArchive does not exist!', E_USER_NOTICE); >> >> -nathan >> > > It works,

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 3:10 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Wed, Jul 9, 2008 at 4:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Wed, Jul 9, 2008 at 1:43 PM, tedd <[EMAIL PROTECTED]> wrote: > > > >> Hi gang: > >> > >> I'm trying to do some zip stuff, but on server [1] my s

[PHP] Re: What font/size do you use for programming?

2008-07-09 Thread Jonesy
On Tue, 8 Jul 2008 19:23:49 -0400, tedd wrote: > > I'm running a Mac (so I know mine is a bit different size wise) but > I'm currently using Veranda at 14 point for coding. > > Just out of curiosity, what font and size do you ppls use for your > programming? I've always found that my bash and ph

Re: [PHP] zippidity do duh!

2008-07-09 Thread tedd
At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: if(class_exists('ZipArchive', false)) $zip = new ZipArchive(); else trigger_error('class ZipArchive does not exist!', E_USER_NOTICE); -nathan It works, (thanks) but no error is thrown if it's not there. Cheers, tedd -- --- http://sperlin

Re: [PHP] Action on 'Require' Fatal Error

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 4:49 PM, Joe Harman <[EMAIL PROTECTED]> wrote: > Hello, > is there a way to call a function or do a header("Location: page.php") when > a fatal error is detected from using a the require statement > > Thanks > Joe Harman > You can set up a custom error handler. This will in

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 4:32 PM -0400 7/9/08, Robert Cummings wrote: On Wed, 2008-07-09 at 16:28 -0400, Daniel Brown wrote: On Wed, Jul 9, 2008 at 4:19 PM, tedd <[EMAIL PROTECTED]> wrote: > > Well.. if this is one of those "My monitor is bigger than yours!" > discussions, then when I programmed with rocks, I had

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 4:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Jul 9, 2008 at 1:43 PM, tedd <[EMAIL PROTECTED]> wrote: > >> Hi gang: >> >> I'm trying to do some zip stuff, but on server [1] my script hangs on: >> >> $zip = new ZipArchive(); >> >> No errors, no anything, it just h

[PHP] Action on 'Require' Fatal Error

2008-07-09 Thread Joe Harman
Hello, is there a way to call a function or do a header("Location: page.php") when a fatal error is detected from using a the require statement Thanks Joe Harman

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Børge Holen
On Wednesday 09 July 2008 19:32:10 tedd wrote: > At 6:19 PM +0100 7/9/08, Richard Heyes wrote: > >>I use a triple display as well. > >> > >>My desktop is 3840 x 1024 -- and I use every inch of it. > > > >And here I am with one paltry monitor. :-( > > As you get older, your monitors get larger. > >

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Robert Cummings
On Wed, 2008-07-09 at 16:28 -0400, Daniel Brown wrote: > On Wed, Jul 9, 2008 at 4:19 PM, tedd <[EMAIL PROTECTED]> wrote: > > > > Well.. if this is one of those "My monitor is bigger than yours!" > > discussions, then when I programmed with rocks, I had all of the outdoors as > > my monitor -- beat

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 4:19 PM, tedd <[EMAIL PROTECTED]> wrote: > > Well.. if this is one of those "My monitor is bigger than yours!" > discussions, then when I programmed with rocks, I had all of the outdoors as > my monitor -- beat that! /me forfeits. -- Dedicated Servers - Intel 2.4GHz w

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 4:01 PM -0400 7/9/08, Daniel Brown wrote: On Wed, Jul 9, 2008 at 3:40 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: I may only have 1 monitor... But I have 12 "Spaces" (google "apple spaces" for more info) Well, if you want to get *technical* on it, then I have 12 screens: 4 virtual des

Re: [PHP] zippidity do duh!

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 3:43 PM, tedd <[EMAIL PROTECTED]> wrote: > > However, on server [2] (Daniel Brown's most excellent service, btw), > everything works great -- as is usual (every time I say something like this > he gives me another month of free service). :-) Yeah, and we're somewhere in

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 3:40 PM -0400 7/9/08, Jason Pruim wrote: On Jul 9, 2008, at 1:32 PM, tedd wrote: At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your moni

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 3:40 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > I may only have 1 monitor... But I have 12 "Spaces" (google "apple spaces" > for more info) Well, if you want to get *technical* on it, then I have 12 screens: 4 virtual desktops (KDE pager was around before Mac's Space

Re: [PHP] zippidity do duh!

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 1:43 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm trying to do some zip stuff, but on server [1] my script hangs on: > > $zip = new ZipArchive(); > > No errors, no anything, it just hangs -- I assuming that ZipArchive is not > available. > > --- > > However, on ser

Re: [PHP] zippidity do duh!

2008-07-09 Thread David Giragosian
On 7/9/08, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm trying to do some zip stuff, but on server [1] my script hangs on: > > $zip = new ZipArchive(); > > No errors, no anything, it just hangs -- I assuming that ZipArchive is not > available. > > --- > > However, on server [2] (Daniel Brown

[PHP] zippidity do duh!

2008-07-09 Thread tedd
Hi gang: I'm trying to do some zip stuff, but on server [1] my script hangs on: $zip = new ZipArchive(); No errors, no anything, it just hangs -- I assuming that ZipArchive is not available. --- However, on server [2] (Daniel Brown's most excellent service, btw), everything works great --

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Jason Pruim
On Jul 9, 2008, at 1:32 PM, tedd wrote: At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your monitors get larger. However, this is not neces

Re: [PHP] C Bindings?

2008-07-09 Thread Nathan Nobbe
On Wed, Jul 9, 2008 at 12:50 PM, Henri Cook <[EMAIL PROTECTED]> wrote: > Hi there, > > I want to make a set of PHP bindings for the libvirt(.org) C API. Can > anyone point me to how tos, information or software that would help me along > the way?\ > maybe scope out this book, http://www.amazon.co

Re: [PHP] Re: What font/size do you use for programming?

2008-07-09 Thread Shawn McKenzie
tedd wrote: At 11:54 PM -0500 7/8/08, Shawn McKenzie wrote: Font: Agent Orange Size: 64pt 64pt! And I thought I my eyesight was poor at 14pt. Cheers, tedd Just kidding... Seriously, I just use what ever is default for the app I'm using. I used to use zend, now I use Aptana or kate for s

[PHP] C Bindings?

2008-07-09 Thread Henri Cook
Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way? Thanks, Henri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Jim McIntyre
I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? I prefer Monaco to Verdana - easier to distinguish 0 and O, etc. The font that came with Eud

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 1:27 PM -0400 7/9/08, Robert Cummings wrote: On Wed, 2008-07-09 at 18:19 +0100, Richard Heyes wrote: > I use a triple display as well. > > My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( Those greedy bastids make me sick!!! I'll be b

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your monitors get larger. However, this is not necessarily a good thing. Cheers, tedd -- ---

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Robert Cummings
On Wed, 2008-07-09 at 18:19 +0100, Richard Heyes wrote: > > I use a triple display as well. > > > > My desktop is 3840 x 1024 -- and I use every inch of it. > > And here I am with one paltry monitor. :-( Those greedy bastids make me sick!!! I'll be back later, I hafta go spend my kids' college

[PHP] Re: What font/size do you use for programming?

2008-07-09 Thread tedd
At 11:54 PM -0500 7/8/08, Shawn McKenzie wrote: Font: Agent Orange Size: 64pt 64pt! And I thought I my eyesight was poor at 14pt. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 1:19 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > And here I am with one paltry monitor. :-( I now view you as less of a man, Heyes. ;-P -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS,

[PHP] C Bindings?

2008-07-09 Thread Henri Cook
Hi there, I want to make a set of PHP bindings for the libvirt(.org) C API. Can anyone point me to how tos, information or software that would help me along the way? Thanks, Henri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Richard Heyes
I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Check if var content was exceeded (float).

2008-07-09 Thread Daniel Brown
No, it wasn't but whew! That was a close one! -- Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread tedd
At 5:13 PM +0100 7/9/08, Richard Heyes wrote: > triple-headed display That's just greedy. -- Richard Heyes I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PH

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Mario Guenterberg
On Tue, Jul 08, 2008 at 07:23:49PM -0400, tedd wrote: > Hi gang: > > I'm running a Mac (so I know mine is a bit different size wise) but I'm > currently using Veranda at 14 point for coding. > > Just out of curiosity, what font and size do you ppls use for your > programming? > Monospace 9pt in

[PHP] Check if var content was exceeded (float).

2008-07-09 Thread k bah
-- Powered by Outblaze -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Richard Heyes
> triple-headed display That's just greedy. -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help with regular expression

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 5:21 AM, Maxim Antonov <[EMAIL PROTECTED]> wrote: > Hi, all! > > I try to use folowing regular expression: > $out = > preg_replace('#\{%%%.*?\{%bigfoto%\}.*?%%%\}#is','==REPLACEMENT==',$str); > [snip!] > > I need result as: > > NAME: size="80"/> > Foto: > {%%} > > ==R

Re: [PHP] checking if URL's exist

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 6:18 AM, <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a Directory table with hundreds of URL's to sites > and want to check periodically if all the URL's still exist. > Does anyone know of a utility to check this ? > Or a pointer to a piece of code ... > > TIA, Cor > -

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Dan Joseph
On Tue, Jul 8, 2008 at 7:23 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm running a Mac (so I know mine is a bit different size wise) but I'm > currently using Veranda at 14 point for coding. > > Just out of curiosity, what font and size do you ppls use for your > programming? > > Cheers,

[PHP] CURL and ASP

2008-07-09 Thread Daniel Brown
On Wed, Jul 9, 2008 at 9:35 AM, ioannes <[EMAIL PROTECTED]> wrote: > Has anyone here experience of CURLing .asp pages which use session cookies > as I am having difficulty doing so on two different sites, both asp. Forwarded to PHP-General, John. If you're not already subscribed there, please

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Daniel Brown
On Tue, Jul 8, 2008 at 7:23 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm running a Mac (so I know mine is a bit different size wise) but I'm > currently using Veranda at 14 point for coding. > > Just out of curiosity, what font and size do you ppls use for your > programming? It had

Re: [PHP] Running mount from PHP

2008-07-09 Thread Maxim Antonov
Try to do folowing write shell script #!/bin/sh mount /dev/hdb /home/mountpoint then write C code int main(){ system ("mount.sh"); return 0; } then compile C code gcc main.c -o wrapper then chmod : # chmod a+s wrapper and do from php: system ('wrapper'); Per Jessen пишет: Mário Ga

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Philip Thompson
On Jul 8, 2008, at 6:23 PM, tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd 15" MacBook Pro, 1440

Re: [PHP] Running mount from PHP

2008-07-09 Thread Per Jessen
Mário Gamito wrote: > Hi, > > I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page. > > So, I´ve added this to /etc/sudoers: > > - > Cmnd_AliasCMD_MOUNT = /bin/mount > Cmnd_AliasCMD_CIFS ) = /sbin/mount

[PHP] Running mount from PHP

2008-07-09 Thread Mário Gamito
Hi, I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page. So, I´ve added this to /etc/sudoers: - Cmnd_AliasCMD_MOUNT = /bin/mount Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs nobody ALL = NOPASSWD:

Re: [PHP] PHP code will not work

2008-07-09 Thread Mike V
I had this problem and just figured it out. I was copying and pasting the code snippet from the tutorials page to my test editor and in the process picked up an invisible ctrl char. Doh!! Joseph Subida wrote: > > > The error I get when I try > > echo $_SERVER['HTTP_USER_AGENT']; > ?> > >

[PHP] test

2008-07-09 Thread Thiago Melo de Paula
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] to get time

2008-07-09 Thread Shelley
Or date(), such as date('Y-m-d H:i:s'); On Wed, Jul 9, 2008 at 6:29 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > willyam pax wrote: > > > hello > > > > im still new to php i just want to know how can u get the only the > > time of ur local server > > Take a look at date() and time(). > > > /Per Je

Re: [PHP] to get time

2008-07-09 Thread Per Jessen
willyam pax wrote: > hello > > im still new to php i just want to know how can u get the only the > time of ur local server Take a look at date() and time(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checking if URL's exist

2008-07-09 Thread Maxim Antonov
You need $s= fsockopen('host.com',80); fwrite($s,"GET ".$URL." HTTP/1.1 \r\n"); fwrite($s,"Host: host.com \r\n\r\n"); and you must read first string - if url exists string begining with 200 or 304 if url not exists string begin - is 404 Børge Holen пишет: On Wednesday 09 July 2008 12:18:

Re: [PHP] checking if URL's exist

2008-07-09 Thread Børge Holen
On Wednesday 09 July 2008 12:18:27 [EMAIL PROTECTED] wrote: > Hi All, > > I have a Directory table with hundreds of URL's to sites > and want to check periodically if all the URL's still exist. > Does anyone know of a utility to check this ? > Or a pointer to a piece of code ... > > TIA, Cor ping

[PHP] checking if URL's exist

2008-07-09 Thread cr.vegelin
Hi All, I have a Directory table with hundreds of URL's to sites and want to check periodically if all the URL's still exist. Does anyone know of a utility to check this ? Or a pointer to a piece of code ... TIA, Cor

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Jason Pruim
On Jul 9, 2008, at 5:25 AM, Robin Vickery wrote: 2008/7/9 Aschwin Wesselius <[EMAIL PROTECTED]>: tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Robin Vickery
2008/7/9 Aschwin Wesselius <[EMAIL PROTECTED]>: > tedd wrote: >> >> Hi gang: >> >> I'm running a Mac (so I know mine is a bit different size wise) but I'm >> currently using Veranda at 14 point for coding. >> >> Just out of curiosity, what font and size do you ppls use for your >> programming? >> >

[PHP] Re: mount

2008-07-09 Thread Maxim Antonov
Hello, Mário You may use function system! system('mount -t vfat -o rw /dev/hdb1 /home/www/upload',$err); if($err){ echo "We have error with number {$err}"; } Mário Gamito : Hi, I need to perform a mount and a umount from PHP. I've searched the manual, but didn't find anything useful. A

[PHP] to get time

2008-07-09 Thread willyam pax
hello im still new to php i just want to know how can u get the only the time of ur local server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] test

2008-07-09 Thread willyam pax
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mount

2008-07-09 Thread Mário Gamito
Hi, I need to perform a mount and a umount from PHP. I've searched the manual, but didn't find anything useful. Any ideas ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating zip files

2008-07-09 Thread Pavel
В сообщении от Wednesday 09 July 2008 01:22:32 Eric Butera написал(а): > [1] http://us2.php.net/manual/en/ref.zip.php Thank you for this link! -- === С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:[EMAIL PROTECTED] === А ещё говорят так: Родился сам - помоги

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Aschwin Wesselius
tedd wrote: Hi gang: I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding. Just out of curiosity, what font and size do you ppls use for your programming? Cheers, tedd 6pt Terminal font on Windows, using UltraEdit on a 22

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Per Jessen
Sancar Saran wrote: > On Wednesday 09 July 2008 02:23:49 tedd wrote: >> Hi gang: >> >> I'm running a Mac (so I know mine is a bit different size wise) but >> I'm currently using Veranda at 14 point for coding. >> >> Just out of curiosity, what font and size do you ppls use for your >> programming?