Re: [PHP] Creating a File in Memory

2007-09-07 Thread Michael Preslar
Can't help with your main problem, however I find it easier to write the likes of : $kml_string = << wrote: > Hello All, > > I am trying to zip data in a PHP program using the following code. The > resulting file (ndfdViaPipe.kmz) is zip'ed but the data in the archive > lacks a file name. So whe

Re: [PHP] Re: isset($a->b) even if $a->b = null

2007-08-17 Thread Michael Preslar
Found something. For class variables.. http://us.php.net/manual/en/function.property-exists.php class a { var $b; } if (property_exists('a','b')) { print "yes\n"; } On 8/17/07, Olav Mørkrid <[EMAIL PROTECTED]> wrote: > the test i need should give the following results: > > - FALSE when $a

Re: [PHP] isset($a->b) even if $a->b = null

2007-08-17 Thread Michael Preslar
On 8/17/07, Olav Mørkrid <[EMAIL PROTECTED]> wrote: > how do i test if a property of a stdclass object is set, even if its > value is null, similar to how array_key_exists() works for arrays. > > the following method fails: > > $a->b = null; > if(isset($a->b)) > echo "yes"; > > and property

Re: [PHP] QuickTime question

2007-08-15 Thread Michael Preslar
I'm not sure if this would be of help or not, but have you tried setting 'Content-disposition: inline' in the header? On 8/15/07, tedd <[EMAIL PROTECTED]> wrote: > At 4:32 PM +0100 8/15/07, Stut wrote: > >tedd wrote: > >>Given: > >> > >>http://www.webbytedd.com/bb/ice/ > >> > >>How can I play the

Re: [PHP] cant get if logic correct..

2007-08-15 Thread Michael Preslar
This will be of help. http://us2.php.net/manual/en/function.is-numeric.php On 8/15/07, Gregory Machin <[EMAIL PROTECTED]> wrote: > Hi > i have a piece of code that gets info from a comma delimited file, > then gets each value that is to be insterted into the database > > The variabls must on

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Michael Preslar
Here's what I use to watch my apache logs.. Looks for php errors, notices, and warnings, seg faults, etc.. Grabs the stats for the prior hour and spits them to stdout.. Pipe that to mutt or sendmail and youve got an hourly cron.. Check the command line options for other good stuff.. Only catch: Thi

Re: [PHP] Rejecting File Upload

2007-08-04 Thread Michael Preslar
Check http://www.php.net/file_upload .. In specific, the MAX_FILE_SIZE form field .. And then check http://us3.php.net/manual/en/ini.core.php#ini.upload-max-filesize On 8/4/07, php mail <[EMAIL PROTECTED]> wrote: > Hi All, > > How do I prior check file's size in server side before the upload proce

Re: [PHP] Problem with getting time in EST

2007-08-04 Thread Michael Preslar
if time() is always 1 hour behind what you want, why not time() + 3600 // 60 seconds * 60 minutes On 8/4/07, Crab Hunt <[EMAIL PROTECTED]> wrote: > Hi, > I need to get the current time in EST timezone while my current timezone is > CEST. I use the function : > > date_default_timezone_set('EST') >

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Michael Preslar
> I know it has to do with date='`date +%Y%m%d`', because if I remove it > works. Are you trying to use perl's back tic operator in php here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I'm prepared to feel like an idiot... But I just simply need the answer :)

2007-08-01 Thread Michael Preslar
> @mysql_connect('localhost', 'user', 'password') or die("Cannot > connect to DB!" . mysql_error()); .. > cannot connect to DB!Can't connect to local MySQL server through > socket '/var/mysql/mysql.sock' (2)qs:/volumes/raider/webserver/ > documents/tests/ticklers japruim$ MySQL is running right? (

Re: [PHP] Job Opportunity: PHP Developer

2007-07-31 Thread Michael Preslar
Dont know if this would be of any use to anyone but.. meh.. I interviewed with a company called "The Selling Source", based out of Las Vegas, for a PHP position.. Was told "They are always hiring PHP developers".. The recruiter I had been working with made it sound like TSS had a huge turn over ra