Re: [PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-31 Thread Devendra Jadhav
At the beginning of the code add following lines error_reporting(E_ALL); ini_set('display_error',1); On Sat, Aug 29, 2009 at 8:28 AM, Keith Davis wrote: > But how are you getting the data from the db? > > Does $rowqry represent a call using the mysql_fetch_array() function? > > > Sent from my ma

Re: [PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer
Keith Davis wrote: But how are you getting the data from the db? Does $rowqry represent a call using the mysql_fetch_array() function? mysql_fetch_assoc() -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread Keith Davis
But how are you getting the data from the db? Does $rowqry represent a call using the mysql_fetch_array() function? Sent from my magic iPhone, Keith Davis 214-906-5183 On Aug 28, 2009, at 7:39 PM, "John Meyer" wrote: Devendra Jadhav wrote: No need to do anything special. It should displa

[PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread Jim Lucas
John Meyer wrote: Devendra Jadhav wrote: No need to do anything special. It should display date as string. Can you provide little more information or code snippet? $tweettable .= preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '$1',$row["TWEET_TEXT"]) . "" . "Sent at: "

[PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-28 Thread John Meyer
Devendra Jadhav wrote: No need to do anything special. It should display date as string. Can you provide little more information or code snippet? $tweettable .= preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '$1',$row["TWEET_TEXT"]) . "" . "Sent at: " . $rowqry["TWEET_

[PHP-WIN] Re: [PHP] Problem

2006-03-16 Thread chris smith
On 3/16/06, Bikram Suri <[EMAIL PROTECTED]> wrote: > Hi, > > I do phpinfo(); and I see the include path set to c:\php5\Pear. I have wamp > installed on my machine but before wamp I had done a standalone installation > of PHP 5 in c:\PHP5 diretory. I have since uninstalled it and deleted the > c:\PH

[PHP-WIN] Re: [PHP] Problem with sessions

2002-11-12 Thread Ernest E Vogelsinger
At 00:19 13.11.2002, Charlie Fowler said: [snip] >.c:/php/sessions/tmp .c:/php/sessions/tmp > >open(.c:/php/sessions/tmp\sess_fa42372dcdbde0e457309f134d71827f, O_RDWR) >failed: Invalid argument (22) in C:\Program Files\Apache >Group\Apache2\htdocs\SAMS\Chap

[PHP-WIN] Re: [PHP] Problem on file_exists()

2002-07-16 Thread Ross Fleming
Message- > From: Chris Hewitt [mailto:[EMAIL PROTECTED]] > Sent: 16 July 2002 11:32 > To: Jack > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: [PHP] Problem on file_exists() > > > Jack wrote: > > >Dear all > >I had a folder which the path is :

[PHP-WIN] Re: [PHP] Problem on file_exists()

2002-07-16 Thread Chris Hewitt
Jack wrote: >Dear all >I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing >room\report) it stores a lot of PDF reports in there. >I'm trying to use the file_exists() function to detect if a specific file >exist in this folder, but i got a problem is : >It seems that php can go thr

[PHP-WIN] RE: [PHP] Problem on file_exists()

2002-07-15 Thread David Redmond
Jack, try using forward slashes instead of backslashes;eg $fp = fopen("//nedcoraa/pdf_reports/dealing/filename.ext", "r+"); Cheers -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 July 2002 5:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Proble

[PHP-WIN] RE: [PHP] Problem : track_vars stopped working.

2002-05-22 Thread Patrick Lynch
Hi Johan, The globals that PHP sets up have changed since since PHP 4.2.x See: http://www.php.net/release_4_2_0.php You can turn on register_globals in the php.ini file but it is recommended to use the more secure $_GET['test'] type variables. Best Regards, Patrick Lynch. Optip Ltd, Internet &

[PHP-WIN] Re: [PHP] Problem : track_vars stopped working.

2002-05-22 Thread Philip Olson
The php directive track_vars is deprecated and is always on. You appear to be referring to the register_globals directive though, which is a hot topic these days in the world of PHP. If register_globals = on, then $text will exist in your example (register_globals will create it). Otherwis

[PHP-WIN] RE: [PHP] Problem with the HTTP_REFERER

2001-04-27 Thread Ben Cairns
Yes but you can call the Header() function in the middle of the page if you need to. You just need to put this line as the VERY FIRST line of the script: This uses the PHP Output Buffering functions. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 34601

[PHP-WIN] RE: [PHP] Problem using readfile

2001-03-09 Thread Fernando Madruga
What are the contents of $type? When opening the file directly, the browser will probably use the specified $type information, as opposed to the explorer using the file extension when the user saves it to disk, so the problem may be that $type is not correct... ;) HTH, Fernando Madruga -Or

[PHP-WIN] Re: [PHP] Problem using readfile

2001-03-07 Thread Matias Pelenur
Well, I tried using different code (from a newer message by Mukul Sabharwal): header("Content-length: $size"); header("Content-type: $type"); $fp = fopen($actualfile, 'rb') or print('Could not open file!'); $read = fread($fp, $size) or print('Could not read file'); print($read); and this seems