Re: [PHP] page works on public web site, but not on my computer

2009-08-26 Thread Lester Caine
mike bode wrote: I have posted the question in another thread a bit down, but only buried within the thread, so please excuse me when I ask again. I want to use some PHP code from a web site (http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm), and I am following their instruction

Re: [PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-26 Thread Szczepan Hołyszewski
Martin Scotta wrote: Fatal error: Call to a member function getAttribute() on a non-object in testme.php on line *121* Yes, this is _how_ the unmodified script errors out. It is not shown in the output I attached in my previous message because display_errors is Off in my php.ini, and the

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Ashley Sheridan
On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code: ? error_reporting(E_ALL); ini_set('display_errors', true); function getDirectory($path = '.', $ignore = '') { $dirTree = array (); $dirTreeTemp = array ();

[PHP] PHP5+APACHE 2.2 + Windows 2003 production server

2009-08-26 Thread Andrioli Darvin
Hi all PHP manual state We do not recommend using a threaded MPM in production with Apache 2. Use the prefork MPM instead, or use Apache 1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM ( http://www.php.net/manual/en/install.windows.apache2.php ) From

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code: ? error_reporting(E_ALL); ini_set('display_errors', true); function getDirectory($path = '.', $ignore = '') {    

RE: [PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-26 Thread Ford, Mike
-Original Message- From: Szczepan Hołyszewski [mailto:webmas...@strefarytmu.pl] Sent: 26 August 2009 08:48 Martin Scotta wrote: Fatal error: Call to a member function getAttribute() on a non- object in testme.php on line *121* Yes, this is _how_ the unmodified script errors

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Ashley Sheridan
On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: 2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code: ? error_reporting(E_ALL); ini_set('display_errors', true);

Re: [PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-26 Thread Szczepan Hołyszewski
I really can't see why you'd want to use references in the posted loop anyway -- it's not likely to gain you any performance, and, as I understand it, may actually run more slowly than the non-reference version. The why is irrelevant. It is perfectly legal PHP, and while it might be illegal

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: 2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code: ?

Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
have a tab inserted in the middle of the path ??? What it mean,I can't find any diffrent between last one with other rows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Ashley Sheridan
On Wed, 2009-08-26 at 18:21 +0800, hack988 hack988 wrote: have a tab inserted in the middle of the path ??? What it mean,I can't find any diffrent between last one with other rows. It might be because of the way that the mailing list software converts the content? I tend to always make CSV

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 hack988 hack988 hack...@dev.htwap.com: have a tab inserted in the middle of the path ??? What it mean,I can't find any diffrent between last one with other rows. To clarify - this is what I was getting: /tab here9216_100_REV_V1.0_bound.dwgtab here05/08/2009 /Tender Docs/tab hereBAA

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Wed, 2009-08-26 at 18:21 +0800, hack988 hack988 wrote: have a tab inserted in the middle of the path ??? What it mean,I can't find any diffrent between last one with other rows. It might be because of the way that the mailing list

Re: [PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-26 Thread Paul Gardiner
Paul Gardiner wrote: I want to write a simple indexing script to display a directory full of photos as a gallery of thumbnails. (There are various solutions out there for this, but they're all a bit more complicated than I need). I've added a file in /etc/apache2/conf.d that looks like this:

RE: [PHP] How to output a NULL field?

2009-08-26 Thread David Stoltz
Paul, This all started because when I try this: ?php echo $rs-Fields(22);? It work fine, as long as there is a non-null value there, otherwise it produces an error. Also, I'm working with a Microsoft SQL 2000 database, not MySQLnot sure if that matters But echo $rs-Fields(22) works

Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
use is_null() check it 2009/8/26 David Stoltz dsto...@shh.org: Paul, This all started because when I try this: ?php echo $rs-Fields(22);? It work fine, as long as there is a non-null value there, otherwise it produces an error. Also, I'm working with a Microsoft SQL 2000 database, not

RE: [PHP] How to output a NULL field?

2009-08-26 Thread David Stoltz
I tried that -it's in the first part of my message -Original Message- From: hack988 hack988 [mailto:hack...@dev.htwap.com] Sent: Wednesday, August 26, 2009 7:39 AM To: David Stoltz Cc: Paul M Foster; php-general@lists.php.net Subject: Re: [PHP] How to output a NULL field? use is_null()

Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
Could you post your database's class to here? I'm use mssql with php for several years and read NULL Fields is never appear your case. 2009/8/26 David Stoltz dsto...@shh.org: I tried that -it's in the first part of my message -Original Message- From: hack988 hack988

Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
your means Health and Safety Questionnaireis directory? so you want it display like this full dir path tab filenametabdate -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to output a NULL field?

2009-08-26 Thread TG
Sorry, didn't follow this whole thread but have you tried print_r() or var_dump() to see what it looks like when it's type variant? I'd be curious to see what you'd find in it. Also, I forget about SQL Server, but MySQL has a function ifnull() which can make sure you never return a null

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 hack988 hack988 hack...@dev.htwap.com: your means Health and Safety Questionnaireis directory? so you want it display like this full dir path tab filenametabdate Yes. I did try using if(is_dir($file)) { insert tab } but couldn't get it to work. Also tried counting the length of the

RE: [PHP] Re: page works on public web site, but not on my computer

2009-08-26 Thread Bob McConnell
I recommend you start by replacing Vista. There are so many problems with it that Microsoft is rushing to ship a replacement as soon as possible. It remains to be seen whether Windows 7 is a real fix or merely more of the same problems. I am not aware of any serious developers writing code

[PHP] Re: PHP5+APACHE 2.2 + Windows 2003 production server

2009-08-26 Thread Shawn McKenzie
Andrioli Darvin wrote: Hi all PHP manual state We do not recommend using a threaded MPM in production with Apache 2. Use the prefork MPM instead, or use Apache 1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM (

RE: [PHP] Re: page works on public web site, but not on my computer

2009-08-26 Thread Ashley Sheridan
On Wed, 2009-08-26 at 08:27 -0400, Bob McConnell wrote: I recommend you start by replacing Vista. There are so many problems with it that Microsoft is rushing to ship a replacement as soon as possible. It remains to be seen whether Windows 7 is a real fix or merely more of the same problems.

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Stuart
2009/8/26 David Stoltz dsto...@shh.org: Paul, This all started because when I try this: ?php echo $rs-Fields(22);? It work fine, as long as there is a non-null value there, otherwise it produces an error. Also, I'm working with a Microsoft SQL 2000 database, not MySQLnot sure if

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread tedd
At 11:34 PM +0100 8/25/09, Stuart wrote: 2009/8/25 tedd tedd.sperl...@gmail.com: I can't believe that you are wasting time on this. This guy is beyond clueless. To be fair tedd English is clearly not his main language and I can see how you could misunderstand the original question as he

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Stuart
2009/8/26 Ralph Deffke ralph_def...@yahoo.de: sorry I mixed 'set' with 'given' and if my mistake did prevent all the smarter guys to give u an answer I'm sorry too. I hope not to be too limited to give u an answer well, think about how PHP 5 works. $a e.g. is a REFENCE to some memory where

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Stuart
2009/8/26 tedd tedd.sperl...@gmail.com: At 11:34 PM +0100 8/25/09, Stuart wrote: 2009/8/25 tedd tedd.sperl...@gmail.com:   I can't believe that you are wasting time on this. This guy is beyond  clueless. To be fair tedd English is clearly not his main language and I can see how you could

[PHP] downloading winword mp3 files the fancy way through a browser

2009-08-26 Thread Grega Leskovšek
I tried to download the file from another server the fancy way in PHP, but it just display blank screen. Can You please look at my code: ?php $filepath = http://aa.yolasite.com/resources/happytears.doc;; // $filepath = http://users.skavt.net/~gleskovs/else/happytears.doc;; if

RE: [PHP] How to output a NULL field?

2009-08-26 Thread David Stoltz
This: $var = $rs-Fields(22); var_dump($var); Produces this: object(variant)#3 (0) { } -Original Message- From: Stuart [mailto:stut...@gmail.com] Sent: Wednesday, August 26, 2009 8:47 AM To: David Stoltz Cc: Paul M Foster; php-general@lists.php.net Subject: Re: [PHP] How to output a NULL

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Eddie Drapkin
On Wed, Aug 26, 2009 at 9:45 AM, hack988 hack988hack...@dev.htwap.com wrote: I'm write a php file for you = define('Line_End', (PHP_OS == 'WINNT')?\r\n:\n); clearstatcache(); $mylist=array(); listdir(F:\\Programming\\Web\\php,$mylist); function

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread tedd
At 2:12 PM +0100 8/26/09, Stuart wrote: 2009/8/26 tedd tedd.sperl...@gmail.com: And, we all need a holiday... Apparently a holiday is out of the question, so I've decided to change jobs instead. A new environment, that's all I need. Loving your view of this list as a hierarchy of idiots

Re: [PHP] downloading winword mp3 files the fancy way through a browser

2009-08-26 Thread Ryan Cavicchioni
On Wed, Aug 26, 2009 at 03:38:27PM +0200, Grega Leskov??ek wrote: I tried to download the file from another server the fancy way in PHP, but it just display blank screen. Can You please look at my code: $filepath = http://aa.yolasite.com/resources/happytears.doc;; Try using a local

Re: [PHP] php cms?

2009-08-26 Thread Miller, Terion
On 8/25/09 11:42 PM, hack988 hack988 hack...@dev.htwap.com wrote: i like durpal or e107 2009/8/26 Lars Nielsen l...@mit-web.dk: tir, 25 08 2009 kl. 17:05 -0400, skrev Bastien Koert: On Tue, Aug 25, 2009 at 4:35 PM, Lars Nielsenl...@mit-web.dk wrote: Hey list, I am going to use a cms

Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
My code for mssql please enable the php's mssql extentions. it used like so many mysql class that you can find by google -- ?php if(!defined('IN_WEB')) { exit('Access Denied'); }

RE: [PHP] SESSIONS lost sometimes - SOLVED

2009-08-26 Thread Angelo Zanetti
-Original Message- From: Angelo Zanetti [mailto:ang...@zlogic.co.za] Sent: 24 August 2009 04:30 PM To: 'Nitebirdz'; php-general@lists.php.net Subject: RE: [PHP] SESSIONS lost sometimes -Original Message- From: Nitebirdz [mailto:nitebi...@sacredchaos.com] Sent: 20 August 2009

RE: [PHP] How to output a NULL field?

2009-08-26 Thread David Stoltz
Sorry - I don't know what you mean by DB class? I'm using Microsoft SQL 2000with this code: ?php //create an instance of the ADO connection object $conn = new COM (ADODB.Connection) or die(Cannot start ADO); //define connection string, specify database driver $connStr =

Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
some code copy from my old codes for truncatedir function,it for backend compatibility. see this PHP_EOL (string) Available since PHP 4.3.10 and PHP 5.0.2 http://cn.php.net/manual/en/reserved.constants.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
my god you use ado connect sorry I'm use php_mysql extentions for all mssql function. I'm never use ado connect before. 2009/8/26 David Stoltz dsto...@shh.org: Sorry - I don't know what you mean by DB class? I'm using Microsoft SQL 2000with this code: ?php //create an instance of the  

Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
I'm write a php file for you = define('Line_End', (PHP_OS == 'WINNT')?\r\n:\n); clearstatcache(); $mylist=array(); listdir(F:\\Programming\\Web\\php,$mylist); function listdir($dir,$list){ if ($handle = opendir( $dir )){ while ( false !== ( $item =

[PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
Hi. During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get all the data if split up. So, for example, here's how the data

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Ashley Sheridan
On Wed, 2009-08-26 at 22:00 +0800, hack988 hack988 wrote: my god you use ado connect sorry I'm use php_mysql extentions for all mssql function. I'm never use ado connect before. 2009/8/26 David Stoltz dsto...@shh.org: Sorry - I don't know what you mean by DB class? I'm using Microsoft

RE: [PHP] How to output a NULL field?

2009-08-26 Thread David Stoltz
Wow - thanks for the code, but it's over my head at this point. I'm a PHP newbieI typically use ASP Classic, but I realize I need to learn PHP for ongoing development. Problem is, we don't have MySQL here, so I have to fumble my way through with MS SQL. Thanks! -Original Message-

[PHP] Getting backtrace through GDB?

2009-08-26 Thread Jason Young
Hi all, I'm trying to follow the instructions for getting a GDB backtrace from the PECL site ( http://bugs.php.net/bugs-generating-backtrace.php ). For some reason, I'm not getting any symbol output when I try to generate the backtrace, it simply gives me the memory address and '??'. I'm

RE: [PHP] How to output a NULL field?

2009-08-26 Thread Ashley Sheridan
On Wed, 2009-08-26 at 10:50 -0400, David Stoltz wrote: Wow - thanks for the code, but it's over my head at this point. I'm a PHP newbieI typically use ASP Classic, but I realize I need to learn PHP for ongoing development. Problem is, we don't have MySQL here, so I have to fumble my

Re: [PHP] downloading winword mp3 files the fancy way through a browser

2009-08-26 Thread Jim Lucas
Grega Leskovšek wrote: I tried to download the file from another server the fancy way in PHP, but it just display blank screen. Can You please look at my code: ?php $filepath = http://aa.yolasite.com/resources/happytears.doc;; // $filepath =

Re: [PHP] downloading winword mp3 files the fancy way through a browser

2009-08-26 Thread Ryan Cavicchioni
On Wed, Aug 26, 2009 at 03:38:27PM +0200, Grega Leskov??ek wrote: I tried to download the file from another server the fancy way in PHP, but it just display blank screen. Can You please look at my code: If it helps, here is some code that I dug up from an old project: ?php $filepath =

Re: [PHP] downloading winword mp3 files the fancy way through a browser

2009-08-26 Thread hack988 hack988
All IE has a bug for download file so.:) see this http://support.microsoft.com/default.aspx?scid=kb;en-us;308090 some unkown mime type also display in IE no popup a download window 2009/8/26 Ryan Cavicchioni r...@confabulator.net: On Wed, Aug 26, 2009 at 03:38:27PM +0200, Grega Leskov??ek wrote:

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Steve
Ashley Sheridan wrote: On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: 2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code: ? error_reporting(E_ALL);

Re: [PHP] Sockets (reading)

2009-08-26 Thread Jim Lucas
Philip Thompson wrote: Hi. During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get all the data if split up. So, for

Re: [PHP] Re: Directory Listing

2009-08-26 Thread hack988 hack988
use realpath is better that i think 2009/8/26 Steve ad...@ultramegatech.com: Ashley Sheridan wrote: On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: 2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Andrew Ballard
On Wed, Aug 26, 2009 at 10:52 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: You should try and see if you can get it installed there, as it will work on Windows servers. I've found it generally to be faster than MS SQL, and the choice of different database engines for each table gives

[PHP] String Formulas

2009-08-26 Thread Floyd Resler
How can I take a mathematical formula that is in a string and have the result, product, sum, etc. returned? I did a search on the Web and couldn't find any suitable solutions. Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Andrew Ballard
On Wed, Aug 26, 2009 at 9:51 AM, David Stoltzdsto...@shh.org wrote: Sorry - I don't know what you mean by DB class? I'm using Microsoft SQL 2000with this code: ?php //create an instance of the  ADO connection object $conn = new COM (ADODB.Connection)  or die(Cannot start ADO);

Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
Com function is just for Windows,I don't kown why some body like use it.:( 2009/8/27 Andrew Ballard aball...@gmail.com: On Wed, Aug 26, 2009 at 9:51 AM, David Stoltzdsto...@shh.org wrote: Sorry - I don't know what you mean by DB class? I'm using Microsoft SQL 2000with this code: ?php

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Andrew Ballard
On Wed, Aug 26, 2009 at 12:13 PM, Andrew Ballardaball...@gmail.com wrote: On Wed, Aug 26, 2009 at 9:51 AM, David Stoltzdsto...@shh.org wrote: Sorry - I don't know what you mean by DB class? I'm using Microsoft SQL 2000with this code: ?php //create an instance of the  ADO connection

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Andrew Ballard
On Wed, Aug 26, 2009 at 12:06 PM, hack988 hack988hack...@dev.htwap.com wrote: Mysql,mssql has its own feature,you can't say Mysql is better than Mssql or Mssql it better than Mysql,Is'nt is? My the Way ,Mssql support Top n,m form mssql 2005 :) Perhaps, but the OP said he's using SQL Server

Re: [PHP] How to output a NULL field?

2009-08-26 Thread hack988 hack988
I'm sorry for my poor English,what is OP? I don't kown what is OP mean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Ashley Sheridan
On Thu, 2009-08-27 at 00:25 +0800, hack988 hack988 wrote: I'm sorry for my poor English,what is OP? I don't kown what is OP mean. It's basically the original person who asked the question. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Paul M Foster
On Wed, Aug 26, 2009 at 10:08:35AM -0400, tedd wrote: 2009/8/26 tedd tedd.sperl...@gmail.com: snip I had a client say to me once If you're so smart, then why aren't you rich? I answered quickly What makes you think I'm not? But privately his comment cut me to the quick. There was no

RE: [PHP] How to output a NULL field?

2009-08-26 Thread David Stoltz
I'm using COM because I don't know what else to use ;-) Like I said, I'm new to PHP. Here is another way I communicate with the database, let me know if this is a better way (it requires a stored procedure): //Assign the server connection to a variable $connect = mssql_connect(SERVER,1433',

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Paul M Foster
On Thu, Aug 27, 2009 at 12:25:35AM +0800, hack988 hack988 wrote: I'm sorry for my poor English,what is OP? I don't kown what is OP mean. OP = Original Poster. That's usually the person who first started (posted) a thread on a list. Paul -- Paul M. Foster -- PHP General Mailing List

[PHP] How to output a NULL field?

2009-08-26 Thread David Stoltz
Looking on Amazon and other book sites, I can't even find a book for PHP and MS SQL... It's all PHP and MySQL... Should I avoid developing PHP application with MS SQL databases? -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Wednesday, August 26, 2009

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Ashley Sheridan
On Wed, 2009-08-26 at 12:48 -0400, David Stoltz wrote: Looking on Amazon and other book sites, I can't even find a book for PHP and MS SQL... It's all PHP and MySQL... Should I avoid developing PHP application with MS SQL databases? -Original Message- From: Paul M Foster

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread sono-io
On Aug 26, 2009, at 9:28 AM, Paul M Foster wrote: and having a great marriage to a woman I can spend hours talking about nothing to. I'm jealous. Does she have a sister who's not spoken for? =;) Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get all the data if split up. So, for example,

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Tom Worster
On 8/25/09 5:01 AM, Stuart stut...@gmail.com wrote: 2009/8/25 Ralph Deffke ralph_def...@yahoo.de: causes an error Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in C:\wamp\www\TinyCreator\testCrapp6.php on line 42 This is a syntax error, not a runtime error. You've

[PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Tom Worster
On 8/26/09 10:08 AM, tedd tedd.sperl...@gmail.com wrote: I had a client say to me once If you're so smart, then why aren't you rich? how about: i'm smart enough that i know not to waste my allotted time on this planet amassing riches. i know plenty of rich people, many of whom earned their

[PHP] Some body test php6-dev version for mbs?

2009-08-26 Thread hack988 hack988
I'm try php6-dev recently.I found it had so many diffrent with older versions.I'll discuss with everybody in later:) now i have a problem in php6-dev codes follow:(warning:this code include some no-english characters and it hex string is B2E2 In GBK char-set)

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Richard Heyes
Hi, time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org 50% reseller

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Robert Cummings
Richard Heyes wrote: Hi, time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. Might look nice in your driveway... But without the time to drive it... :| ;) -- http://www.interjinn.com Application and

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Richard Heyes
Hi, time is really what i want more of. Personally I'd settle for a Ferrari. Or two. It would be hard, but I think I could just about manage. Might look nice in your driveway... But without the time to drive it... :| ;) I actually don't have a driving license either... :-/ -- Richard

[PHP]Some body test php6-dev version for mbs?

2009-08-26 Thread hack988 hack988
I'm try php6-dev recently.I found it had so many diffrent with older versions.I'll discuss with everybody in later:) now i have a problem in php6-dev codes follow:(warning:this code include some no-english characters and it hex string is B2E2 In GBK char-set)

Re: [PHP] Exclusive File Access

2009-08-26 Thread Bastien Koert
On Wed, Aug 26, 2009 at 12:35 PM, Warren Vailwar...@vailtech.net wrote: I have two processes running on the same server, one is creating a file, loading it with data, and this process runs real slow. The second process processes a directory, finds the new file and begins reading the file

Re: [PHP] Re: How to output a NULL field?

2009-08-26 Thread Bastien Koert
On Wed, Aug 26, 2009 at 12:06 PM, Andrew Ballardaball...@gmail.com wrote: On Tue, Aug 25, 2009 at 3:22 PM, Shawn McKenzienos...@mckenzies.net wrote: First off, if the value is NULL in the database then in PHP it will be the string NULL and not a null value as far as I remember. I've not seen

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Paul M Foster
On Wed, Aug 26, 2009 at 12:48:12PM -0400, David Stoltz wrote: Looking on Amazon and other book sites, I can't even find a book for PHP and MS SQL... It's all PHP and MySQL... Should I avoid developing PHP application with MS SQL databases? My *opinion* is that you should avoid Microsoft

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Paul M Foster
On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote: On Aug 26, 2009, at 9:28 AM, Paul M Foster wrote: and having a great marriage to a woman I can spend hours talking about nothing to. I'm jealous. Does she have a sister who's not spoken for? =;) She and her

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread hack988 hack988
this post is away from the point :),but everyone's reply is interesting 2009/8/27 Paul M Foster pa...@quillandmouse.com: On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote: On Aug 26, 2009, at 9:28 AM, Paul M Foster wrote: and having a great marriage to a woman I can

Re: [PHP] Sockets (reading)

2009-08-26 Thread Shawn McKenzie
Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get all the data if split up.

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Paul M Foster
On Thu, Aug 27, 2009 at 02:27:32AM +0800, hack988 hack988 wrote: this post is away from the point :),but everyone's reply is interesting 2009/8/27 Paul M Foster pa...@quillandmouse.com: On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote: On Aug 26, 2009, at 9:28 AM,

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Shawn McKenzie Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is actually in a loop, so I can get all

[PHP] parse_ini_file problem

2009-08-26 Thread Richard H Lee
Hi all, I think I'm having a problem with parse_ini_file in php. I am using wamp on two machines. I'm installing a Digishop e-commerce package. The blah.ini.php file starts with ?php die ? [SOMETITLE] some_setting=Ok, I Have Completed This Step another_setting=Next .. ..

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Philip Thompson On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read ($socket, 2048, PHP_BINARY_READ); ? This is

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 2:47 PM, Bob McConnell wrote: From: Philip Thompson On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: ?php $data = @socket_read

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Stuart
2009/8/26 tedd tedd.sperl...@gmail.com: At 2:12 PM +0100 8/26/09, Stuart wrote: 2009/8/26 tedd tedd.sperl...@gmail.com:   And, we all need a holiday... Apparently a holiday is out of the question, so I've decided to change jobs instead. A new environment, that's all I need. Loving your

Re: [PHP] parse_ini_file problem

2009-08-26 Thread Jim Lucas
Richard H Lee wrote: Hi all, I think I'm having a problem with parse_ini_file in php. I am using wamp on two machines. I'm installing a Digishop e-commerce package. The blah.ini.php file starts with ?php die ? [SOMETITLE] some_setting=Ok, I Have Completed This

Re: [PHP] What if this code is right ? It worked perfectly for years!!

2009-08-26 Thread Ben Dunlap
?  $fName = $_REQUEST['fName'] ;  $emailid = $_REQUEST['emailid'] ;    $number = $_REQUEST['number'] ;  $message = $_REQUEST['message'] ;  mail( ch...@gmail.com, $number, $message, From: $emailid );  header( Location: http://www.thankyou.com/thankYouContact.php; ); ? This is a bit of a

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Phpster
On Aug 26, 2009, at 12:31 PM, David Stoltz dsto...@shh.org wrote: I'm using COM because I don't know what else to use ;-) Like I said, I'm new to PHP. Here is another way I communicate with the database, let me know if this is a better way (it requires a stored procedure): //Assign

Re: [PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Jason Pruim
On Aug 26, 2009, at 1:23 PM, Tom Worster wrote: On 8/26/09 10:08 AM, tedd tedd.sperl...@gmail.com wrote: I had a client say to me once If you're so smart, then why aren't you rich? how about: i'm smart enough that i know not to waste my allotted time on this planet amassing riches. i