Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread Richard Lynch
That is incorrect. There *IS* a setting for another magic_quotes_runtime, which will do addslashes to all data coming FROM the database. That's a particularly silly setting UNLESS your entire application consists of taking date out of one database and shoving it into another database -- which is

Re: [PHP] Re: looking for shopping cart

2006-04-08 Thread loveneesh.bansal
Hi, Why donot u people visit www.indialovesu.com and see the shop cart which is much -2 powerful than oscommerce. U can reach to the design company at www.bsdinfotech.com ([EMAIL PROTECTED]) Regards, Ajay - Original Message - From: "Lisa A" <[EMAIL PROTECTED]> To: Sent: Sunday, April

[PHP] Re: looking for shopping cart

2006-04-08 Thread Lisa A
I actually just installed OS commerce on my site, but I think it might be hard for my clients to upload their contents. They need it to be real easy. Almost like fill in the blanks. What do you think? Lisa ""Stephen Lake"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Give osC

Re: [PHP] Timestamp needed in error log

2006-04-08 Thread Richard Lynch
http://php.net/set_error_handler On Sat, April 8, 2006 10:01 am, John Hicks wrote: > I would like to configure my PHP 4.3 to include a timestamp in its > error > messages. > > It appears that PHP defaults to no timestamp. I can't a find a > directive > that allows me to configure this. > > Do I

Re: [PHP] php newbie having trouble going to list page

2006-04-08 Thread Richard Lynch
On Sat, April 8, 2006 10:12 am, David Doonan wrote: > I'm having trouble getting the correct results on a list page. > > The first query is pulling the name of active authors from the d/b > and linking to a list page that is supposed to return essay titles by > the requested author. The list page h

Re: [PHP] What is best way to do handle audio files?

2006-04-08 Thread Richard Lynch
If the files are constantly changing, scandir is probably as fast as it gets... If you rarely alter the files, do scandir once and store the results in, say, MySQL and you can search/sort MUCH faster. On Sat, April 8, 2006 11:01 am, Nicholas Couloute wrote: > On my website http://www.sidekick2m

Re: [PHP] Passing Variables from Script to Script

2006-04-08 Thread Richard Lynch
PHP has those variables in $argv $argc tells you how many args there were. $argv[0] is the actual script name, eg, myscript.php On Sat, April 8, 2006 2:58 pm, Alan Schneider wrote: > What is the best way to pass a variable value from one script to > another? > > In unix or dos all I would need

Re: [PHP] Mail problems with Outlook

2006-04-08 Thread Richard Lynch
Because you have created ta totally BOUGS MIME email. You've rn rough-shod over the "standards" for html enhanced (cough, cough) email. Use plain-text, or do a ton of research or use the MIME email classes from http://phpclasses.org On Sat, April 8, 2006 5:52 pm, Schalk wrote: > Greetings All,

Re: [PHP] Date problems

2006-04-08 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: Mace Eliason wrote: Hi, I am having troubles adding 7 days to the current date. I have been reading through php.net date() and this is what I have come up with but it doesn't work $today = date('m/d/Y'); $nextweek = date('m/d/Y',mktime(date("m"), date("d")+7, date("Y")

Re: [PHP] php newbie having trouble going to list page

2006-04-08 Thread David Tulloh
David Doonan wrote: > I'm having trouble getting the correct results on a list page. > > The first query is pulling the name of active authors from the d/b and > linking to a list page that is supposed to return essay titles by the > requested author. The list page however is displaying essay t

Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread Richard Lynch
On Sat, April 8, 2006 7:49 pm, jonathan wrote: > I have a server where magic_quotes_gpc is set to On. It's my > understanding that this should add slashes to something like "Joe's" > so that it's "Joe\'s" but when I look in the db, it is in there as > Joe's. This doesn't seem like it should be the

Re: [PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread David Tulloh
Alan Schneider wrote: > I tired sending via name-value pairs with the following but it did not work > > require (DIR_WS_INCLUDES . 'filenames.php?lv_user_id=$user_id'); > > "DIR_WS_INCLUDES" is a defined constant and filenames.php is NOT a web page; > just a php file that sets the file names to

Re: [PHP] Date problems

2006-04-08 Thread Rasmus Lerdorf
Mace Eliason wrote: Hi, I am having troubles adding 7 days to the current date. I have been reading through php.net date() and this is what I have come up with but it doesn't work $today = date('m/d/Y'); $nextweek = date('m/d/Y',mktime(date("m"), date("d")+7, date("Y"))); if I echo the abov

[PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread Alan Schneider
I tired sending via name-value pairs with the following but it did not work require (DIR_WS_INCLUDES . 'filenames.php?lv_user_id=$user_id'); "DIR_WS_INCLUDES" is a defined constant and filenames.php is NOT a web page; just a php file that sets the file names to be used in the application. Is th

[PHP] Date problems

2006-04-08 Thread Mace Eliason
Hi, I am having troubles adding 7 days to the current date. I have been reading through php.net date() and this is what I have come up with but it doesn't work $today = date('m/d/Y'); $nextweek = date('m/d/Y',mktime(date("m"), date("d")+7, date("Y"))); if I echo the above variables they are

Re: [PHP] php newbie having trouble going to list page

2006-04-08 Thread chris smith
On 4/9/06, David Doonan <[EMAIL PROTECTED]> wrote: > I'm having trouble getting the correct results on a list page. > > The first query is pulling the name of active authors from the d/b > and linking to a list page that is supposed to return essay titles by > the requested author. The list page ho

[PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread Al
Alan Schneider wrote: What is the best way to pass variable values from one php file to another thanks Alan $_GET is the simplest if: The size of the variables is small, there aren't too many and whether you care if users see it. -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread jonathan
I have a server where magic_quotes_gpc is set to On. It's my understanding that this should add slashes to something like "Joe's" so that it's "Joe\'s" but when I look in the db, it is in there as Joe's. This doesn't seem like it should be the anticipated behavior. Is there another setting

Re: [PHP] Creating a Photo Album

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 19:46, tedd wrote: > > Rob: > > Well, I agree with you. I like the cryptic nature of php; and it > being absent from all the pointer confusion; and I especially like > the way php handles strings. For me, C was always problematic in the > string area. > > Plus, php linked

[PHP] cron via cPanel (revisited)

2006-04-08 Thread tedd
Hi gang: Well my host responded with a very helpful reply to my request for help, he said: -- quote -- Ok corn jobs is working on server. But my host says there is something wrong with the script. -Have a great day -- un-quote -- Now, it should be clear to everyone what the problem was -- I

[PHP] Passing Variables from Script to Script

2006-04-08 Thread Alan Schneider
What is the best way to pass a variable value from one script to another? In unix or dos all I would need to do would be to add them just after the name of the script such as myscript.bat thanks Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Best Way to Pass Variables between PHP files

2006-04-08 Thread Alan Schneider
What is the best way to pass variable values from one php file to another thanks Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating a Photo Album

2006-04-08 Thread tedd
> Rob: Isn't php written in C? It is, but so are many other languages that don't keep much of the C philosophy :) Part of the philosophy behind PHP was to make it easy for developers writing traditional CGI (the hard way in C) to make the switch to PHP. The other part of the philosophy was t

Re: [PHP] Creating a Photo Album

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 18:38, tedd wrote: > At 3:14 PM -0400 4/8/06, Robert Cummings wrote: > >On Sat, 2006-04-08 at 14:00, Paul Goepfert wrote: > >> I'm not looking for someome to do it for me. I would like to learn > >> how to do this my self. I have written code in Java and C/C++ before. > >>

Re: [PHP] Creating a Photo Album

2006-04-08 Thread tedd
At 3:14 PM -0400 4/8/06, Robert Cummings wrote: On Sat, 2006-04-08 at 14:00, Paul Goepfert wrote: I'm not looking for someome to do it for me. I would like to learn how to do this my self. I have written code in Java and C/C++ before. From the function list in the PHP manual some of the fu

Re: [PHP] Timestamp needed in error log

2006-04-08 Thread darren kirby
quoth the John Hicks: > > You don't explain much about your setup here, but on mine, I just write > > my errors to the apache error log, which provides its own timestamp. > > > > Another option is to log to the system logs: > > error_log = syslog # in php.ini > > > > and use your loggers filter fa

[PHP] Binary Data / Strings

2006-04-08 Thread Richard Lynch
Background: I'm using cURL to snarf down a web page and examine an image in that page -- where I would like to be able to use http://php.net/imagecolorat on the image. There are some wrinkles, however, best explained by a slimmed-down sample program: http://example.com'); $html = curl_exec($cur

Re: [PHP] headers already sent.

2006-04-08 Thread Stephen Lake
There is no real way of knowing if output is going to be sent before a header or not, unless its a very simple page. Your best bet is to investigate the output buffering functions here: http://www.php.net/manual/en/ref.outcontrol.php HTH Steve ""P. Guethlein"" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] Ajax please....

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 15:54, Manuel Lemos wrote: > Hello, > > on 04/08/2006 04:13 PM Robert Cummings said the following: > > I'm probably just having a bowel movement or something, but I think > > going with a lib that supports either iframe or xmlhttprequest > > interchangeably is probably the wa

Re: [PHP] Ajax please....

2006-04-08 Thread Greg Beaver
Robert Cummings wrote: > On Sat, 2006-04-08 at 14:40, Manuel Lemos wrote: > >>Hello, >> >>on 04/08/2006 10:53 AM Ryan A said the following: >> >>>Carlin Bingham / Tedd: >>>--- >>>Yes, but then I would have to reload the whole page just to tell the person >>>that the account use

Re: [PHP] Ajax please....

2006-04-08 Thread Satyam
May I supply this very little example to show how easy it can be to use iFrame? This is the first document: It just has an iframe, an action button, which sets the src property of the iframe and a div to store the response. The document second.htm contains: /> That's it. I placed thi

Re: [PHP] Ajax please....

2006-04-08 Thread Manuel Lemos
Hello, on 04/08/2006 04:13 PM Robert Cummings said the following: > I'm probably just having a bowel movement or something, but I think > going with a lib that supports either iframe or xmlhttprequest > interchangeably is probably the way to go. While iframe may have more > features and less insta

Re: [PHP] Ajax please....

2006-04-08 Thread Manuel Lemos
Hello, on 04/08/2006 04:23 PM Ryan A said the following: > Hey, > > There is a misunderstanding here. The X does not necessarily means > generic XML. It may mean XHTML. Anyway, an AJAX request may server any > type of data. > > Another point is that AJAX does not mean necessarily using > XMLHttpR

Re: [PHP] Timestamp needed in error log

2006-04-08 Thread darren kirby
quoth the John Hicks: > I would like to configure my PHP 4.3 to include a timestamp in its error > messages. > > It appears that PHP defaults to no timestamp. I can't a find a directive > that allows me to configure this. > > Do I have to recompile? > > I've never looked at the source before. Any p

Re: [PHP] Ajax please....

2006-04-08 Thread Ryan A
On Sat, 2006-04-08 Robert Cummings wrote:> [-- SNIP PIMPING OF IFRAMES --]HEHHEHE funnyI started picturing a guy with loud colors, a big hat and live fish in his heels...LOLCheers,Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating a Photo Album

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 14:00, Paul Goepfert wrote: > I'm not looking for someome to do it for me. I would like to learn > how to do this my self. I have written code in Java and C/C++ before. > From the function list in the PHP manual some of the functions look > like the C/C++ functions. That's

Re: [PHP] Ajax please....

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 14:40, Manuel Lemos wrote: > Hello, > > on 04/08/2006 10:53 AM Ryan A said the following: > > Carlin Bingham / Tedd: > > --- > > Yes, but then I would have to reload the whole page just to tell the person > > that the account username was already taken...t

Re: [PHP] Ajax please....

2006-04-08 Thread Ryan A
Hey, There is a misunderstanding here. The X does not necessarily means generic XML. It may mean XHTML. Anyway, an AJAX request may server any type of data. Another point is that AJAX does not mean necessarily using XMLHttpRequest objects . As you may read in the Wikipedia definition, many AJAX

Re: [PHP] Ajax please....

2006-04-08 Thread Manuel Lemos
Hello, on 04/08/2006 10:53 AM Ryan A said the following: > Carlin Bingham / Tedd: > --- > Yes, but then I would have to reload the whole page just to tell the person > that the account username was already taken...thats how its "traditionally" > done...but I want to try doing i

Re: [PHP] Creating a Photo Album

2006-04-08 Thread Paul Goepfert
I'm not looking for someome to do it for me. I would like to learn how to do this my self. I have written code in Java and C/C++ before. From the function list in the PHP manual some of the functions look like the C/C++ functions. Thanks, Paul On 4/8/06, tedd <[EMAIL PROTECTED]> wrote: > Paul:

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread David Doonan
On Apr 8, 2006, at 12:55 PM, John Hicks wrote: $recordID = $_GET['recordID']; Note that your request URL has a value for 'ID' whereas your program is looking for a value for 'recordID'. Changed above to: $recordID = $_GET['ID']; And all was right with the world. Thanks John! david -- P

Re: [PHP] Ajax please....

2006-04-08 Thread Ryan A
Hey >Carlin Bingham / Tedd: >--- >Yes, but then I would have to reload the whole page just to tell the person >that the account username was already taken...thats how its "traditionally" >done...but I want to try doing it without reloading the whole page...hence >Asynchronous

Re: [PHP] include file path errors

2006-04-08 Thread tedd
At 6:15 PM +0900 4/8/06, kmh496 wrote: hi, my webroot is /a/b/current/ i am in /a/b/current/d/file.php file.php has a line require_once ($_SERVER[document_root]."/d/common.php"); it finds the file, but the variables inside common.php are not set and don't exist in file.php where is my mista

Re: [PHP] What is best way to do handle audio files?

2006-04-08 Thread tedd
At 12:01 PM -0400 4/8/06, Nicholas Couloute wrote: On my website http://www.sidekick2music.com ! I use scandir() [php 5.0] to fetch all the files which are all in subfolders of this one folder. like this: public_html/amrs/$cat/$author/*.amr $cat = different catergoried of music $author = Autho

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread John Hicks
David Doonan wrote: On Apr 8, 2006, at 11:24 AM, John Hicks wrote: So your solution is this: Include a PHP variable in your SQL query to specify which author you want to select. You probably want something like this: WHERE Author.Author_Name = Writings.Author_Name AND Author.ID = '$MySelecte

Re: [PHP] include path file errors

2006-04-08 Thread kmh496
2006-04-08 (토), 12:18 -0400, John Hicks 쓰시길: > kmh496 wrote: > > 2006-04-08 (토), 18:20 +0900, kmh496 쓰시길: > > > >>hi, > >>my webroot is > >> > >>/a/b/current/ > >> > >>i am in /a/b/current/d/file.php > >> > >>file.php has a line > >> > >>require_once ($_SERVER[document_root]."/d/common.php"); > >

Re: [PHP] microtime questions

2006-04-08 Thread tedd
At 1:48 PM -0400 4/7/06, Joe Wollard wrote: I just realized that I could check your version, and it appears that we've found the problem. You're running PHP 4.3.10, so I'd suggest using the non PHP5 work around on php.net's site. Cheers! - Joe -Joe: Thanks very much for you

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread David Doonan
On Apr 8, 2006, at 11:24 AM, John Hicks wrote: So your solution is this: Include a PHP variable in your SQL query to specify which author you want to select. You probably want something like this: WHERE Author.Author_Name = Writings.Author_Name AND Author.ID = '$MySelectedAuthorID' (but reme

Re: [PHP] microtime questions

2006-04-08 Thread tedd
Brad: Calm down, I'm simply asking for an explanation Please tell me where it say "Negative times are expected"?? I don't see it. If you will refresh the below link several times, as I asked, you will see it report negative times occasionally. ttp://www.xn--ovg.com/microtime.php That

Re: [PHP] include path file errors

2006-04-08 Thread John Hicks
kmh496 wrote: hi, my webroot is /a/b/current/ i am in /a/b/current/d/file.php file.php has a line require_once ($_SERVER[document_root]."/d/common.php"); common.php has a line which says require_once ($_SERVER[document_root]."/_common.php"); // main include file for whole site it send

Re: [PHP] include path file errors

2006-04-08 Thread John Hicks
kmh496 wrote: > 2006-04-08 (토), 18:20 +0900, kmh496 쓰시길: > >>hi, >>my webroot is >> >>/a/b/current/ >> >>i am in /a/b/current/d/file.php >> >>file.php has a line >> >>require_once ($_SERVER[document_root]."/d/common.php"); >> >>common.php has a line which says >> >>require_once ($_SERVER[document

[PHP] What is best way to do handle audio files?

2006-04-08 Thread Nicholas Couloute
On my website http://www.sidekick2music.com ! I use scandir() to fetch all the files which are all in subfolders of this one folder. like this: public_html/amrs/$cat/$author/*.amr $cat = different catergoried of music $author = Authors of the particular catergory This way isn't fast when you ha

[PHP] Re: [SPAM] Re: [PHP] a php image gallery

2006-04-08 Thread kmh496
2006-04-08 (토), 20:32 +1000, chris smith 쓰시길: > On 4/8/06, Ross <[EMAIL PROTECTED]> wrote: > > > > Does anyone know know of a good php image gallery? I want to generate the > > pages automatially from stored images. > > > > Please don't reply with 'search google under php gallery' or some other >

Re: [PHP] include path file errors

2006-04-08 Thread kmh496
2006-04-08 (토), 18:20 +0900, kmh496 쓰시길: > hi, > my webroot is > > /a/b/current/ > > i am in /a/b/current/d/file.php > > file.php has a line > > require_once ($_SERVER[document_root]."/d/common.php"); > > common.php has a line which says > > require_once ($_SERVER[document_root]."/_common.ph

[PHP] What is best way to do handle audio files?

2006-04-08 Thread Nicholas Couloute
On my website http://www.sidekick2music.com ! I use scandir() [php 5.0] to fetch all the files which are all in subfolders of this one folder. like this: public_html/amrs/$cat/$author/*.amr $cat = different catergoried of music $author = Authors of the particular catergory This way isn't fast

Re: [PHP] Creating a Photo Album

2006-04-08 Thread tedd
Paul: To continue top-posting, It's pretty simple, just store the images in a folder, place the url's to the images in MySQL, create a web page that can show an image and pulls the first one from the dB with a reference such that when someone clicks the picture, it increments and pulls the ne

Re: [PHP] Ajax please....

2006-04-08 Thread tedd
Ryan: Carlin Bingham / Tedd: --- Yes, but then I would have to reload the whole page just to tell the person that the account username was already taken...thats how its "traditionally" done...but I want to try doing it without reloading the whole page...hence Asynchronous Jav

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread John Hicks
David Doonan wrote: I'm having trouble getting the correct results on a display page. The first query is pulling the name of active authors from the d/b and sending a request to only return essay titles by the requested author. The list page however is displaying essay titles by all authors.

[PHP] php newbie having trouble going to list page

2006-04-08 Thread David Doonan
I'm having trouble getting the correct results on a list page. The first query is pulling the name of active authors from the d/b and linking to a list page that is supposed to return essay titles by the requested author. The list page however is displaying essay titles by all authors. No

[PHP] Timestamp needed in error log

2006-04-08 Thread John Hicks
I would like to configure my PHP 4.3 to include a timestamp in its error messages. It appears that PHP defaults to no timestamp. I can't a find a directive that allows me to configure this. Do I have to recompile? I've never looked at the source before. Any pointers on where I should look f

[PHP] php newbie having trouble going to detail page

2006-04-08 Thread David Doonan
I'm having trouble getting the correct results on a display page. The first query is pulling the name of active authors from the d/b and sending a request to only return essay titles by the requested author. The list page however is displaying essay titles by all authors. No doubt something

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread John Wells
> > echo "$this->name[5]\n"; > > echo "$this->ID[5]\n"; > > $a1 = $this->name; > > $a2 = $this->ID; > > echo "\n$a1[5] $a2[5]\n"; use curly brackets to help PHP understand what you're after: echo "{$this->name[5]}\n"; When you're in a string like this, PHP has a hard time knowing when you're wan

Re: [PHP] Ajax please....

2006-04-08 Thread Ryan A
Hey all, first of all; a big thank you to all of you for replying, rather than mix up my replies to all of you I will write my response to you under your name as I have gotten so many different leads/opinions/views. One last requirment I forgot to mention before was that I wanted to work with PHP

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: echo "\n". $this->name[5] . " " . $this->ID[5]. "\n"; This give the same output as: $a1 = $this->name; $a2 = $this->ID; echo "\n$a1[5] $a2[5]\n"; Looks like I may need to use the '.' constructor more often Who can explain this (please)? Michael Felt wrote: OK . a rewri

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: OK . a rewrite, bit shorter... 1. A class construct with two arrays: var $name; var $ID; function init($id) { $this->name = array(); $this->ID = array(); # firther in code assignment done from a mysql database: while ($max--)

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
chris smith wrote: On 4/7/06, Michael Felt <[EMAIL PROTECTED]> wrote: Slowly I am getting the output I want. Trying to use "dynamic" arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays u

Re: [PHP] Problems with Arrays and print and echo

2006-04-08 Thread chris smith
On 4/7/06, Michael Felt <[EMAIL PROTECTED]> wrote: > Slowly I am getting the output I want. > > Trying to use "dynamic" arrays, does creat the array I want, but getting > the info is sometimes surprising. > > I notice a difference between arrays used locally in a function, and > arrays used as a 'v

[PHP] Re: Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: Slowly I am getting the output I want. Trying to use "dynamic" arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a class function (all in PHP 4

Re: [PHP] Handling Large Select Boxes

2006-04-08 Thread Brad Bonkoski
Thanks for the responses to this... The AJAX thing would probably not work as this is a critical piece to the UI, so even though the form would load faster, the users would still really need to wait for the select options to come through before they could actually do any *work* on the page.

[PHP] Re: Problems with Arrays and print and echo

2006-04-08 Thread Michael Felt
Michael Felt wrote: Slowly I am getting the output I want. Trying to use "dynamic" arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a class function (all in PHP 4

Re: [PHP] microtime questions

2006-04-08 Thread Brad Bonkoski
tedd wrote: -B At 12:51 PM -0400 4/7/06, Brad Bonkoski wrote: How is the CPU not in question? Does this script run on air? I did not say that. I said that it was not MY CPU that was involved and it isn't. Who cares, it is irrelavent who's CPU it is runing on. It may not be YOUR CPU

Re: [PHP] Re: make global variables accessible to functions?

2006-04-08 Thread Rory Browne
I have to agree with passing them as opposed to accessing them from inside the function Clean $a = "whatever"; function foo($a){ echo $a; } Ugly $a = "whatever"; function foo(){ global $a; echo $a; } Unless the variables in question are for all intents and purposes constant ( real co

Re: [PHP] What does this mean:

2006-04-08 Thread Dave Goodchild
...is a concise, if less readable way, to echo the value of arse. It is only used to echo a value. To do anything else, for example, call a method, use the second approach you describe. In fact, you already seem to know the difference, so why the question? Are you trying to replace this notation

Re: [PHP] What does this mean:

2006-04-08 Thread Rory Browne
On 4/8/06, Merlin <[EMAIL PROTECTED]> wrote: > > Hi there, > > I am somehow confused about the this command: > What does the equetion sigh mean? > > I would like to replace the > > loadJsApp(true) ?> > > so I could do something like this: > $ajax->loadJsApp(true); > echo '

[PHP] What does this mean:

2006-04-08 Thread Merlin
Hi there, I am somehow confused about the this command: loadJsApp(true) ?> so I could do something like this: loadJsApp(true); echo 'test'; ?> But this does not work. Some how this equetion sign has something to do with it. Thank you for any hint, Merlin -- PHP General Mailing List (http

Re: [PHP] a php image gallery

2006-04-08 Thread chris smith
On 4/8/06, Ross <[EMAIL PROTECTED]> wrote: > > Does anyone know know of a good php image gallery? I want to generate the > pages automatially from stored images. > > Please don't reply with 'search google under php gallery' or some other > useless reply. I want someone to advise, who has used cod

[PHP] a php image gallery

2006-04-08 Thread Ross
Does anyone know know of a good php image gallery? I want to generate the pages automatially from stored images. Please don't reply with 'search google under php gallery' or some other useless reply. I want someone to advise, who has used code either free or paid for that is decent and is ea

Re: [PHP] headers already sent.

2006-04-08 Thread P. Guethlein
At 10:30 PM 04/07/2006, you wrote: Comment inline: Thanks, I just found that out after, well I don't want to say how long it took . Is that just the way things are in PHP or is there a command / configuration to make something like this more obvious? Hmmm. maybe the IDE I'm using? U

Re: [PHP] Is it a bug of CakePHP?

2006-04-08 Thread John Wells
> > Pham Huu Le Quoc Phuc a écrit : > > > I catch an error, could you tell me if you have some ideas? > > > > > > Error message: Undefined index: start_date in > > > c:\Inetpub\wwwroot\Cake\app\controllers\dsptrainings_controller.php on > line > > > 33 > > > PHP is telling you that what you are tr

Re: [PHP] Re: Parsing variables within string variables

2006-04-08 Thread David Clough
Dear Paul, this is exactly the solution I needed, and works as described! Many thanks for thinking through this with me. Yours, David. On 8 Apr 2006, at 00:05, Paul Novitski wrote: At 02:41 PM 4/7/2006, David Clough wrote: I have to parse the string 'Hello $foo' as it comes from

Re: [PHP] Ajax please....

2006-04-08 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: $src = "http://api.local.yahoo.com/MapsService/V1/mapImage?appid=YahooDemo";; $src.= "&location=".urlencode($_GET['loc']). "&output=php&image_width=300&image_height=300&zoom=7"; header("Content-type: application/x-json"); echo json_encode(unserialize(file_

Re: [PHP] PHP Book Recommendation

2006-04-08 Thread Jad madi
it depends on your programming level and taste of reading I really like "Advanced PHP programming" but some people he's a lousy teacher, SitePoint books are the most reader friendly books but maybe they aren't the most valuable books in the market. In the last two months the market got load of ne

Re: [PHP] Parse Error on SQL Insert [Solved]

2006-04-08 Thread Tom Chubb
Sorry guys - knew it would be obvious! I was using $_FILE['image']['name'][0], instead of $_FILES['image']['name'][0] However, thanks for all your help. Tom On 07/04/06, Joe Henry <[EMAIL PROTECTED]> wrote: > > On Friday 07 April 2006 1:56 pm, Chrome wrote: > > Backticks (`) encapsulate table o