Re: [PHP] question about GD and colors

2003-01-27 Thread Philipp
: [PHP] question about GD and colors try imagecreatetruecolor() instead of imagecreate() - Original Message - From: Philipp [EMAIL PROTECTED] To: Jean-François Marseaut [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 27, 2003 4:21 PM Subject: Re: [PHP] question about GD

Re: [PHP] Question about $_GET

2003-01-15 Thread Danny Shepherd
Try $query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = {$_GET['id']}; HTH Danny. - Original Message - From: Frank Keessen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 10:50 AM Subject: [PHP] Question about $_GET Hi All, Can you please

Re: [PHP] Question about $_GET

2003-01-15 Thread Marek Kilimajer
SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id]; - removed single quotes Frank Keessen wrote: Hi All, Can you please help me with the following problem? I've had code wich was running fine with php till i've upgraded to PHP version 4.2.3. The original code line was:

Re: [PHP] Question about $_GET

2003-01-15 Thread Frank Keessen
= mysql_query($query) or die (Error in query: $query. . mysql_error()); Regards, Frank - Original Message - From: Danny Shepherd [EMAIL PROTECTED] To: Frank Keessen [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 11:54 AM Subject: Re: [PHP] Question about $_GET Try

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason k Larson
- From: Danny Shepherd To: Frank Keessen ; Sent: Wednesday, January 15, 2003 11:54 AM Subject: Re: [PHP] Question about $_GET -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason k Larson
; Sent: Wednesday, January 15, 2003 11:54 AM Subject: Re: [PHP] Question about $_GET -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about $_GET

2003-01-15 Thread Chris Hayes
At 11:57 15-1-03, Marek Kilimajer wrote: SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id]; - removed single quotes I think that that is a really bad advice. Let me explain. For one, the single quotes are not in the way here because the query is written between double

Re: [PHP] Question about $_GET

2003-01-15 Thread Marek Kilimajer
Chris Hayes wrote: Let me explain. For one, the single quotes are not in the way here because the query is written between double quotes. Then, leaving out the single quotes like Marek suggests will only work because PHP is too programmer-friendly. But the indexes of such arrays should

Re: [PHP] Question about $_GET

2003-01-15 Thread TomH
- Original Message - From: Danny Shepherd [EMAIL PROTECTED] To: Frank Keessen [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 11:54 AM Subject: Re: [PHP] Question about $_GET Try $query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = {$_GET['id

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason Wong
On Wednesday 15 January 2003 18:57, Frank Keessen wrote: Thanks, but not working: The error message: Error in query: SELECT Newsheadline, News, Contact FROM news WHERE Newsid = . You have an error in your SQL syntax near '' at line 1 Here are both lines: $query = SELECT Newsheadline,

Re: [PHP] Question about $_GET

2003-01-15 Thread Rick Emery
Make life easy for yourself: $query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = .$_GET['id']; - Original Message - From: Frank Keessen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 4:50 AM Subject: [PHP] Question about $_GET Hi All, Can you

Re: [PHP] Question about $_GET

2003-01-15 Thread Chris Shiflett
--- Frank Keessen [EMAIL PROTECTED] wrote: So the code looks like this: $query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET['id']; But all i'm getting in my browser is: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' I could not tell if your

Re: [PHP] Question about $_GET

2003-01-15 Thread [-^-!-%-
I agree with Chris, the quote should stay there to prevent confusion. Nevertheless, I often run in the same problem. Sometimes, the only way to fix it is by removing the quotes ($_GET[id]). I know PHP documents goes against this, but it dosn't always work with the quotes. Perhaps the dev

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason Wong
On Thursday 16 January 2003 04:35, [-^-!-%- wrote: I agree with Chris, the quote should stay there to prevent confusion. Nevertheless, I often run in the same problem. Sometimes, the only way to fix it is by removing the quotes ($_GET[id]). I know PHP documents goes against this, but it

Re: [PHP] Question about $_GET

2003-01-15 Thread Frank Keessen
: Wednesday, January 15, 2003 1:22 PM Subject: Re: [PHP] Question about $_GET Make life easy for yourself: $query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = .$_GET['id']; - Original Message - From: Frank Keessen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: I'm using I.E. 6. Its not a browser thing, but a PHP thing. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Don
Don wrote: I'm using I.E. 6. Its not a browser thing, but a PHP thing. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: Thanks for your response but I don't think this is what I was asking; could be wrong though. I re-read your post and, of course, you are right. I mis-read it! I have heard of this Back button and data missing and I'm sure its come up before, but I don't remember the answer. I can

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
Thanks for your response but I don't think this is what I was asking; could be wrong though. I re-read your post and, of course, you are right. I mis-read it! I have heard of this Back button and data missing and I'm sure its come up before, but I don't remember the answer. I can only

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
I'm using I.E. 6. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my form has been cleared, i.e.., as if the page has been

Re: [PHP] Question about the exit() command

2002-12-19 Thread Philip Olson
How about: if (!$conn = mysql_connect($host, $user, $pass)) { include 'static_html.inc'; exit; } print Welcome, yes the database is connected; exit ends the script, nothing after its use is executed. Regards, Philip Olson On Thu, 19 Dec 2002, Beauford.2002 wrote: Hi,

Re: [PHP] Question about the exit() command

2002-12-19 Thread Gerald Timothy Quimpo
On Thursday 19 December 2002 04:45 pm, Beauford.2002 wrote: I want to be able to exit out of a PHP webpage and return to the calling page if certain conditions are not met. It appears using exit() will do this, but I am unclear exactly how to use it. exit won't do what you want. exit does

Re: [PHP] Question about the exit() command

2002-12-19 Thread Beauford.2002
19, 2002 4:55 PM Subject: Re: [PHP] Question about the exit() command How about: if (!$conn = mysql_connect($host, $user, $pass)) { include 'static_html.inc'; exit; } print Welcome, yes the database is connected; exit ends the script, nothing after its use is executed

Re: [PHP] Question about the exit() command

2002-12-19 Thread Rick Emery
What do you mean return to the calling page? The exit() command simply ceases processing of PHP and HTML. I believe what you're saying is that if the user clicks on a PHP hyperlink on the first page, then goes to another page. If there is something wrong there, you nwant to return to the page

Re: [PHP] Question about the exit() command

2002-12-19 Thread Mike Joseph
[EMAIL PROTECTED] Cc: PHP General [EMAIL PROTECTED] Sent: Thursday, December 19, 2002 4:55 PM Subject: Re: [PHP] Question about the exit() command How about: if (!$conn = mysql_connect($host, $user, $pass)) { include 'static_html.inc'; exit; } print Welcome, yes the database

Re: [PHP] Question about if statement evaluating (0==string)as TRUE

2002-12-13 Thread Marco Tabini
I think this is happening because you're comparing apples to oranges. Your first comparison causes an integer to be compared to a string. Because the string string evaluates to the integer value 0, the comparison succeeds. The manual recommends the use of the identical comparison operator (===)

Re: [PHP] Question about displaying directories and files

2002-12-07 Thread Justin French
Is your question about dynamically listing the contents of all directories and/or files below the /members/ dir, or is your question about unzipping zipped files? I *think* it's the former, in which case, you should play around with some of the code examples on zend.com

Re: [PHP] Question about Trim

2002-12-07 Thread Justin French
To convert \n's to br /\n's on any string, use nl2br(). To trim excess white space (\n, \r, [space] \t, etc) from both the beginning and end of a string, use trim(). Eg: ? $str = this is a string with an\nenter in the middle, and two at the end\n\n; $str = trim($str); $str = nl2br($str); echo

RE: [PHP] question about taking post to session

2002-09-21 Thread Todd Pasley
Sure you can, however, 1) u prob. want $_SESSION['name'] = $_POST['name']; 2) remember that if you are calling this within the scope of a function you will have to use $GLOBALS to declare $name as a global before you utilise session_register. Todd. -Original Message- From: Randy

Re: [PHP] question about $_GET, etc

2002-09-12 Thread olinux
You need to turn register_globals off in your php.ini file. This is default in php 4.2+ Try this article for a great overview: http://www.webmasterbase.com/article/758/8 olinux --- swade [EMAIL PROTECTED] wrote: On my laptop i still have 4.11 apache,linux on it but its just for

Re: [PHP] Question about character acces, [] vs {}

2002-09-07 Thread Justin French
Somewhere in an article or the manual it *strongly* advises using in {} not [] for access of a certain character in a string. Justin on 07/09/02 5:34 AM, Robert Cummings ([EMAIL PROTECTED]) wrote: Some time ago i wrote some code where I used the now deprecated form of accessing characters

Re: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer
] To: Meltem Demirkus [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, September 06, 2002 12:36 PM Subject: Re: [PHP] question about Location Not quite sure what you are getting at here? A hyper link would direct the user to another page :-) If you mean after a timeout/auto-magically perhaps you

Re: [PHP] question about Location

2002-09-06 Thread liljim
header I wrote ? header(Location: yournewpage.php); ? - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, September 06, 2002 12:55 PM Subject: Re: [PHP] question about Location ? ? doesn't mean output unless you use echo or print or

RE: [PHP] question about Location

2002-09-06 Thread Naintara Jain
; charset=windows-1254 /HEAD BODY and line 37 is the header I wrote ? header(Location: yournewpage.php); ? - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, September 06, 2002 12:55 PM Subject: Re: [PHP] question about Location

Re: [PHP] Question about correct PHP/MySQL configuration

2002-09-03 Thread Rasmus Lerdorf
Step 1, please limit your lines in your emails to mailing lists to 78 chars or less in width. Your entire message shows up as 2 lines for me. Step 2, you need to install the php-mysql rpm. Then everything should work. -Rasmus -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
Kelly Meeks wrote: Hi folks, I'm learning shell scripting via linux, and have written a script that creates the core files necessary for a users website from a master set of files. Works from the shell just fine (bash makethesite.sh username pathtoputfiles pathtogetfiles) Trying to

RE: [PHP] question about executing a bash shell script...

2002-08-16 Thread James E Hicks III
try something like: $bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles pathtogetfiles'); if that doesn't work can you use the system() function instead? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Kelly Meeks
param2 param3'); echo $bashresult; Doesn't execute the script, nothing in $bashresult Kelly - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Kelly Meeks [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 4:44 PM Subject: Re: [PHP] question about executing

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
execute the script, nothing in $bashresult Kelly - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Kelly Meeks [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 4:44 PM Subject: Re: [PHP] question about executing a bash shell script... Kelly Meeks

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Jason Wong
On Saturday 17 August 2002 04:35, Kelly Meeks wrote: Hi folks, I'm learning shell scripting via linux, and have written a script that creates the core files necessary for a users website from a master set of files. Works from the shell just fine (bash makethesite.sh username pathtoputfiles

Re: [PHP] Question about sessions

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 10:19, Varsha Agarwal wrote: Hi, I am creating a session for user autentication. As I read from the help there are two ways for passing session IDs -Cookies -URL parameter. By default its passing it through cookies. I don't want to use any cookies in my

Re: [PHP] question about references

2002-08-02 Thread Tom Rogers
Hi, Friday, August 2, 2002, 11:29:39 PM, you wrote: JV Tried to post this to the news group before, but I'm having trouble getting JV to my news server from work - hopefully I'm not posting a duplicate. JV I think I'm seeing the problem I'm seeing because I'm getting a copy of a JV var instead

Re: [PHP] Question about using if elseif ...

2002-07-18 Thread Analysis Solutions
On Thu, Jul 18, 2002 at 02:28:23PM -0700, Fargo Lee wrote: When viewing examples of using if and elseif I often see the example ending with an else like ... if($a == '1'){ echo '1'; } elseif ($a == '2'){ echo '2'; } else { echo '0'; } On a side note, switch would be more efficient:

RE: [PHP] Question about PHP

2002-07-10 Thread Lazor, Ed
It's the first option in the installation instructions. Follow the part about installing PHP as an Apache module and you'll be set. -Original Message- I am reading a book about php, in its security section, it says it is more secure, as well as more efficient when installing PHP, to

Re: [PHP] Question about using XSLT_Process?

2002-07-03 Thread Chris Wesley
You just need the XML and/or XSL as a string. xmldoc() is creating a DOM object, which xslt_process() can't use. In you example that does not work properly, change this: $xsl = xmldoc(implode(,file(test.xsl))); $xml = xmldoc(implode(,file(test.xml))); to not use xmldoc(), like this: $xsl =

RE: [PHP] question about ? :

2002-06-18 Thread Ford, Mike [LSS]
-Original Message- From: Lee Doolan [mailto:[EMAIL PROTECTED]] Sent: 14 June 2002 01:25 Miguel == Miguel Cruz [EMAIL PROTECTED] writes: Miguel Why does this: Miguel $x = 3 + 5 * 7; Miguel produce different results from this: Miguel $x = (3 + 5) * 7;

Re: [PHP] Question about global variables

2002-06-14 Thread Kevin Stone
I don't think this is possible to setup a global way you're thinking, but I do believe that you can still accomplish the effect you're looking for. First of all, exactly what kind of information will you be storing in the array? You say it needs to be empty the 'first time in'. Does that mean

Re: [PHP] Question about global variables

2002-06-14 Thread remery
Cookies Session variables - Original Message - From: Don [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Friday, June 14, 2002 2:08 PM Subject: [PHP] Question about global variables Hi, Don't know if this is possible but is there a way to create a single variable (in

Re: [PHP] question about ? :

2002-06-13 Thread Miguel Cruz
On 13 Jun 2002, Lee Doolan wrote: the arrays below have dates like dateA= array( 0= 03, 1= 22, 2= 02) for 22march2002. why does this work: $retval= ($dateA[2] != $dateB[2]) ? strcmp($dateA[2], $dateB[2]) : (($dateA[0] != $dateB[0]) ?

RE: [PHP] question about ? :

2002-06-13 Thread Martin Towell
, June 14, 2002 10:13 AM To: Lee Doolan Cc: [EMAIL PROTECTED] Subject: Re: [PHP] question about ? : On 13 Jun 2002, Lee Doolan wrote: the arrays below have dates like dateA= array( 0= 03, 1= 22, 2= 02) for 22march2002. why does this work: $retval= ($dateA[2] != $dateB[2

Re: [PHP] question about ? :

2002-06-13 Thread Lee Doolan
Miguel == Miguel Cruz [EMAIL PROTECTED] writes: Miguel On 13 Jun 2002, Lee Doolan wrote: the arrays below have dates like dateA= array( 0= 03, 1= 22, 2= 02) for 22march2002. why does this work: $retval= ($dateA[2] != $dateB[2]) ? strcmp($dateA[2],

Re: [PHP] Question about tag ??

2002-06-11 Thread Kevin Stone
The only way to execute code stored in a varaible (string) is to send it to the eval() function. Assuming you're not doing this then you're perfectly safe. Learn more about the eval function.. http://www.php.net/manual/en/function.eval.php -Kevin - Original Message - From: Nightshade

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Chris Hewitt
Al, Interesting. I use Mozilla and I've never had any emails rejected or heard of anyone else have it happening. Have you some more information or is this an urban legend? Regards Chris Al wrote: Sorry if this shows twice. I originally posted it with Mozilla and forgot that this newsgroup

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Al
Opps, hit the reply rather than the reply group. I normally use Moz. I'm subscribed to 8 newsgroup servers. All work perfect except news.php. I replied to you message with Moz; but it doesn't show. This one is with IE Chris Hewitt [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Question about string replace -PHP

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 03:06, Dan McCullough wrote: I have a script pulling in certain text from a site. I want the script to then from that retrieved text, to replace the incorrect domain with another domain. What is a way that I can do that, I know the domain that its going to put in the

Re: [PHP] Question about fsockopen

2002-05-06 Thread Miguel Cruz
On Mon, 6 May 2002, Luc Saint-Elie wrote: I use a class to parse a RSS feed, my problem is that when the distant site is down my own site is stuck (because my class waits for an answer that doesn't come..) The logical answer is to use a fsockopen before to control the connection. Reading the

RE: [PHP] Question about database-driven web sites.

2002-03-29 Thread Rick Emery
What will a database-driven web site do for? If you have to ask, you have no need How does it relieve stress on me? It doesn't. Quite the opposite What is it good for? If you have to ask, you have no need Why should I learn it? If you have to ask, you have no need -Original

Re: [PHP] Question about database-driven web sites.

2002-03-29 Thread Dennis Moore
It all depends on what the needs for your site(s) are. Typically, you use database driven web sites as a means of storing data separate from the layout and style of your web site. The advantage of this is that you can just update your data in the database without affecting the layout and style

Re: [PHP] Question about database-driven web sites.

2002-03-29 Thread heinisch
At 29.03.2002 10:22, you wrote: Hello, What will a database-driven web site do for? How does it releive stress on me? What is it good for? Why should I learn it? Thanks, Think of a template, You set up a design , and put database data in it. If you have any changes on your website, you´ll

Re: [PHP] Question about database-driven web sites.

2002-03-29 Thread hugh danaher
Though I just made a flat database (one table only) the attached article was useful in learning how to put together a mysql database using php. Hope this helps, Hugh - Original Message - From: GENESiS DESiGNS [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:22 AM

Re: [PHP] question about switch function

2002-02-07 Thread Mark
try it like this: switch(true){ case strstr($line,zip): echo found zip; break; } On Thu, 7 Feb 2002 14:29:45 -0600, Chuck Barnett wrote: Hello, I am trying to find out if a string is in a line being read from a file. I should use strstr for this I am pretty sure. I want to do

Re: [PHP] Question about HTTP_ENV_VARS, PHP, and Apache

2002-01-15 Thread Michael Sims
At 09:32 PM 1/15/2002 -0600, Michael Sims wrote: On both the Redhat 7.1 servers, phpinfo() reports the following environment variables: user: michaels logname: michaels [...] I'm confused as to why these variables exist. I know for a fact that Apache is running as nobody. That's what the

Re: [PHP] Question about HTTP_ENV_VARS, PHP, and Apache

2002-01-15 Thread Rasmus Lerdorf
This has been discussed a number of times here. Apache will always inherit the environment of the user that starts it. You should start it with a clean environment. ie. add env -i to whatever script starts your httpd server. -Rasmus On Tue, 15 Jan 2002, Michael Sims wrote: This may be more of

RE: [PHP] Question about Php/Mysql. Unsure if it's enabled.

2002-01-08 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 08 January 2002 07:15 Ok, basically I only configured php with apxs However, I noticed the mysql was supported (It said so on php info page) How is that possible? MySQL support is built in to PHP.

Re: [PHP] Question about CREATE_FUNCTION

2001-12-26 Thread Alexander Skwar
So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : Nope $test(); Please explain! Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige

Re: [PHP] Question about CREATE_FUNCTION

2001-12-26 Thread Alexander Skwar
So sprach »Andrey Hristov« am 2001-12-21 um 17:40:07 +0200 : ?php $test='htmlspecialchars'; echo $test('html'); ? Produces : lt;htmlgt; Ah, I thought you did disagree. Whatever. I misunderstood you, sorry about that. Alexander Skwar -- How to quote: http://learn.to/quote (german)

Re: [PHP] Question about CREATE_FUNCTION

2001-12-22 Thread Emile Bosch
since you CAN'T create functions runtime, unles you are using an eval expression but that's even slower that create_function.. function bla() { } $test = bla; $test(); Is not solving the problem since, it doesn't create a function at RUNTIME it only references a function.. (it references $test

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Bogdan Stancescu
Why do you need this? To my knowledge you get the same behaviour with ? function create_function() { [body] } $test=create_function; $test; ? Bogdan Emile Bosch wrote: Dear list, Does anyone know how the internals of create function works? $test =

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch
Thank you for you interest, I need to know this because am building an CMS package.. and create function create functions on the fly which can come in handy very much.. My questions was wheter create_function the PHP tag, slow is or not... hope someone can help me out here.. Warm regards,

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
Nope $test(); Regards, Andrey - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: Emile Bosch [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 3:43 PM Subject: Re: [PHP] Question about CREATE_FUNCTION Why do you need this? To my knowledge you get

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Andrey Hristov
?php $test='htmlspecialchars'; echo $test('html'); ? Produces : lt;htmlgt; Regards, Andrey - Original Message - From: Alexander Skwar [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:35 PM Subject: Re: [PHP] Question about

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Bogdan Stancescu
PROTECTED] Sent: Friday, December 21, 2001 5:35 PM Subject: Re: [PHP] Question about CREATE_FUNCTION So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : Nope $test(); Please explain! Alexander Skwar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Emile Bosch
$test='htmlspecialchars'; echo $test('html'); ? Produces : lt;htmlgt; Regards, Andrey - Original Message - From: Alexander Skwar [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:35 PM Subject:

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread Bogdan Stancescu
Why do you draw the conclusion you're misunderstood? We are unable to answer your question about speed -- so aren't we allowed to have a separate discussion derrivated from your question? Bogdan Emile Bosch wrote: thx for al the help but i need some help of a php developer i guess cuz i am

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread LaserJetter
der Skwar [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:35 PM Subject: Re: [PHP] Question about CREATE_FUNCTION So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : Nope $test(); Please explain!

Re: [PHP] Question about Linux Rpm

2001-11-27 Thread Michael A. Peters
On Tue, 27 Nov 2001 03:11:42 EST [EMAIL PROTECTED] mentioned: Hello, I see all the ways to compile the tarball on a raq 3 for php after one installs freetype/gd and has mysql well, what about the rpm? Since I have mysql installed, after I get gd/freetype up will the rpm know what to do to

Re: [PHP] Question about Linux Rpm

2001-11-27 Thread Joelmon2001
? RPM is good if everything is installed by RPM. Otherwise, RPM won't know that you have dependencies installed, and will fail. Thanks. But how do I know if an rpm can run on a raq 3 when I read it's supported for redhat? Sometimes I read For redhat 6.1 and then some say yes, you can install

Re: [PHP] Question about using system call/gzip

2001-11-11 Thread David Robley
On Mon, 12 Nov 2001 16:28, [EMAIL PROTECTED] wrote: Hello. I just want to confirm that if I use a system call to execute gzip, so I can zip a directory, the file can be decompressed by windows users for example, if I visit bleh.php and it compresses a directory /directory will that file

Re: [PHP] Question about using system call/gzip

2001-11-11 Thread Joelmon2001
Gzip only compresses single files? So what if I want to compress a directory and have it download when a page is accessed? I thought gzip would allow this. To compress a specified directory when page.php is accessed. This is confusing. I tried the zend.com articles, too confusing to grasp. I

Re: [PHP] Question about using system call/gzip

2001-11-11 Thread David Robley
On Mon, 12 Nov 2001 16:51, [EMAIL PROTECTED] wrote: Gzip only compresses single files? So what if I want to compress a directory and have it download when a page is accessed? I thought gzip would allow this. To compress a specified directory when page.php is accessed. This is confusing. I

Re: [PHP] Question about MySQL, ORDER

2001-11-01 Thread Mike Eheler
SELECT Main.title, Replies.date FROM (Main LEFT JOIN Replies ON Main.id = Replies.main_id) ORDER BY Replies.date That should do it. Mike BlueBytes wrote: http://paa.fragland.net/hosted/myquestion/ here you find my question, thx -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] question about variables...

2001-10-31 Thread Jason G.
READ THE MANUAL. variable variables $i=1; $sName = seat$i; $value = $$sName; At 04:40 PM 10/31/2001 +1100, sc wrote: Hey all; If i have a variable say, $seat and i want to go through variables with a number, ie. $seat1 , $seat2 etc. how would i go about it? i have one setup where $p

Re: [PHP] question about variables...

2001-10-30 Thread Hugh Danaher
SC What you want should look something like this: ${seat.$p} where $p can be incremented in a loop. However, I was advised to use an array which would look something like this: $seat[$p] where $p can also be incremented in a loop. Hope this helps. hugh - Original Message - From: sc

Re: [PHP] question about variables...

2001-10-30 Thread sc
the first one that you gave me works fine... thanks for that.. -sc Hugh Danaher [EMAIL PROTECTED] wrote in message 000d01c161cf$eb160d20$9106f4d8@win95">news:000d01c161cf$eb160d20$9106f4d8@win95... SC What you want should look something like this: ${seat.$p} where $p can be incremented in

Re: [PHP] Question about running php as root

2001-09-05 Thread Jason Brooke
But is there a way to make one of my root scripts run by sending it a command to do so from the DSO version of PHP like with system command or something like that. Or some roundabout way to make it think root is asking the script run. I hope you understand what I am asking. There possibly

RE: [PHP] Question about PDF lib.

2001-08-27 Thread Matthew Loff
It's postscript points, I believe... 72 points per inch. So, an 8.5x11 page is 612x792 points large. --Matt -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 3:59 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Question about grant user right to MySql

2001-08-13 Thread René Moonen
Try these links for MySQL news: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) Best Regards René Jack wrote: Sorry, all, but i couldn't fine any Mysql News group around, so i sent this message here, as i found php got a close

Re: [PHP] Question about sessions

2001-08-13 Thread Peter Houchin
Chris, I have found that when you get the users to exit propperly they will go by them selves ... also have a look @ the garbage collection in your php.ini file Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL

Re: [PHP] Question about sessions

2001-08-13 Thread speedboy
There's a session deletion script based on the last time a session file was written to. You can set the duration a session is allowed to stay on the file system for. http://database.sf.net/ - Down the bottom. On Tue, 14 Aug 2001, Chris Kay wrote: I have a mysql/php db/website that uses

Re: [PHP] Question about security: writing images to a directory (chmod 777)

2001-08-10 Thread Data Driven Design
Using the ftp functions is an alternative http://www.php.net/manual/en/ref.ftp.php Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: SED [EMAIL PROTECTED] To:

RE: [PHP] Question about PHP.net Web site and e-mail lists

2001-07-28 Thread Kurt Lieber
You do know that you can see the source of any page on PHP.net's site, right? Just click on the show source link in the bottom navigation bar on any page. For instance, the source to the page you mention is at: http://www.php.net/source.php?url=/support.php hth --kurt -Original

Re: [PHP]Question about escaping a character

2001-07-24 Thread Bob Scott
Run the string through stripslashes() before you write it to the file... http://www.php.net/manual/en/function.stripslashes.php Cheers -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Tue, 24 Jul 2001, Chris Cocuzzo

Re: [PHP]Question about escaping a character

2001-07-24 Thread Chris Cocuzzo
: Tuesday, July 24, 2001 6:32 PM Subject: Re: [PHP]Question about escaping a character Run the string through stripslashes() before you write it to the file... http://www.php.net/manual/en/function.stripslashes.php Cheers -bob -- Bob Scott Web / DB Developer http

Re: [PHP] question about forum

2001-07-23 Thread ReDucTor
This is my suggestion Start with making your user management...setup design and layout management, then do the browsing, then your viewing, then different catagories, then do other little bits... - Original Message - From: Jason Wang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

RE: [PHP] question about forum

2001-07-23 Thread Sandeep Hundal
have a look at other people's codes. you can start by looking at my forum, which is pretty simple to install and work with : http://www.wde.org/me/php/ /sunny -Original Message- From: Jason Wang [mailto:[EMAIL PROTECTED]] Sent: 23 July 2001 08:06 To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Question about hosting

2001-07-18 Thread Francis Fillion
Well for myself I will better like to have the 2 computer design, 1 for httpd and 1 for mysql, it's alway's better that way the few nano that you lose in transit are way better then a server that do both stuff. Now the problem (that eat a lot of time is php and mysql, doh!). So you have optimise

Re: [PHP] Question about hosting

2001-07-18 Thread Alexander Skwar
So sprach »Francis Fillion« am 2001-07-18 18.07.2001 um 17:55:41 -0400 : thing. Then an other thing is to take big table and put them in smaller table, way faster for writing/reading (hum, I don't quite remember if Good idea. Combined with MERGE tables, this might really boost performance

RE: [PHP] Question about how to do this...

2001-07-08 Thread Ben Bleything
Use a database. With mysql, you can store the text into a table with primary key called 'page' or something like that, and a text field of some sort. Then, do mysql_query(SELECT pagetext FROM website WHERE page=$page;); = Dive into it. It's easier than it looks. Ben -Original

RE: [PHP] Question about how to do this...

2001-07-08 Thread Chris Cocuzzo
PROTECTED]; 'PHP General List (E-mail)' Subject: RE: [PHP] Question about how to do this... Use a database. With mysql, you can store the text into a table with primary key called 'page' or something like that, and a text field of some sort. Then, do mysql_query(SELECT pagetext FROM website WHERE

Re: [PHP] Question about how to do this...

2001-07-08 Thread Mark Charette
]; 'PHP General List (E-mail)' [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 3:59 PM Subject: RE: [PHP] Question about how to do this... Use a database. With mysql, you can store the text into a table with primary key called 'page' or something like that, and a text field of some sort

<    1   2   3   4   5   6   7   >