Re: [PHP] Linked drop down selection lists and dynamically generatedlinks

2002-07-07 Thread Alberto Serra
Naintara Jain wrote: this is of course, keeping in mind, that your backend (database data) is not changing every few seconds. If you are dealing with dynamic data, such that the list options might be changing at every moment then you would need the latest database data and PHP would need to

[PHP] Re: preg_match or not?

2002-07-07 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Steve Fitzgerald) wrote: I have been struggling for a couple of hours now trying to write a preg_match expression to validate a dollar amount - the user may or may not put in the decimals so I want to allow only digits plus a possible period

[PHP] Re: preg_match or not?

2002-07-07 Thread Steve Fitzgerald
Thanks, thats hit the nail on the head, and my headache is a whole lot better! Steve Cc Zona wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Steve Fitzgerald) wrote: I have been struggling for a couple of hours now trying to write a preg_match expression to validate a dollar

[PHP] Authorization

2002-07-07 Thread Chris Schoeman
I am using the folowing script for authorization: $username = test; $password = 123; function authenticate() { Header( WWW-authenticate: basic realm=\Protected\); Header( HTTP/1.0 401 Unauthorized); echo Gebruikersnaam en/of wachtwoord is niet goed ingevuld!\n; exit; } function

[PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
I can't figure out what is wrong with this: $query = select count(*) as monthly_views from visitors group by extract('year', time), extract('month', time) order by monthly_view desc limit 1; $result = mysql_query($query); echo $query; $row = mysql_fetch_array($result); echo

Re: [PHP] Problem with SQL query

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! I can't figure out what is wrong with this: $query = select count(*) as monthly_views from visitors group by extract('year', time), extract('month', time) order by monthly_view desc limit 1; AFAIK this is no ANSI SQL, which is why is not portable. Your query should really be

Re: [PHP] Problem with SQL query

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! I forgot to add: SELECT extract('year', time), extract('month', time), count(*) as monthly_views FROM visitors group by extract('year', time), extract('month', time) order by monthly_view desc limit 1 I take it that you have a *monthly_view* column in your

[PHP] Splitting up a timestamp?

2002-07-07 Thread Tony Harrison
Hi. I please need some help with converting a MySQL timestamp into something easily read. Any help at all is most appreciated, thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Splitting up a timestamp?

2002-07-07 Thread Alberto Serra
Tony Harrison wrote: Hi. I please need some help with converting a MySQL timestamp into something easily read. Any help at all is most appreciated, thanks. ðÒÉ×ÅÔ! use DATE_FORMAT. (it's a MYSQL function, not a PHP one). Look for it in the online MySQL manual. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× --

[PHP] transporting variable via post to another site

2002-07-07 Thread andy
Hi there, I do have a multisite form. There are several fields on page 1 and several on page 2. Everything works fine exept of error handling. Which means if a user wants to go back from step 2 to one and has already filled in some data in site 2 he will loose this data for sure. It is not

[PHP] About submitting multipart.forms

2002-07-07 Thread MG Lim
Hello, has anyone met with this problem.. using IE to submit multipart forms. in text fields if there is ... all text after it will disappear..quite a nuisance when submitting mg --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version:

Re: [PHP] inserting linebrakes in multisite forms

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! andy wrote: One Form has a textfield, I submit it to another html site where there is another form with a textfield. Inside this textfield I place a hidden field with the value of the field from page 1 then I submit to the actual php site inserting the values into a db. So, let's

Re: [PHP] About submitting multipart.forms

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! MG Lim wrote: has anyone met with this problem.. using IE to submit multipart forms. in text fields if there is ... all text after it will disappear..quite a nuisance when submitting yes, all dangerous chars should be substituted. Like quot; for the symbol. It's not just IE, it's

Re: [PHP] transporting variable via post to another site

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! andy wrote: Everything works fine exept of error handling. Which means if a user wants to go back from step 2 to one and has already filled in some data in site 2 he will loose this data for sure. It is not possible to transport the data via get anymor because the text is way to

Re: [PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
Thanks for giving me something to look up :) -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Alberto Serra [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ðÒÉ×ÅÔ! I forgot to add: SELECT extract('year', time), extract('month', time), count(*)

[PHP] Re: suppressing errors with @

2002-07-07 Thread Peter
Doesn't @ surpress output (in general)? Variables don't usually produce an output so putting @ before it shouldn't make any difference. Uri Even-Chen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I tried to suppress warnings in isset expressions

Re: [PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
No matter what I try I still seem to get the error message. The coloumn that contains the dates has unix timestamps. I think this is why it is not working. I will research it further. If you can be of any help please tell me. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Alberto Serra

Re: [PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
I have fixed it now don't worry! -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Alberto Serra [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ðÒÉ×ÅÔ! I forgot to add: SELECT extract('year', time), extract('month', time), count(*) as

[PHP] Plz help w/ global variables

2002-07-07 Thread Anthony Rodriguez
To test global variables, I wrote the following PHP script: (1)?php (2)session_start(); (3)session_register(counter); (4)$counter++; (5)echo $counter; (6)// header (location:statistics/contents.php); (7)? When the script is called several times, the variable is increased accordingly. Thus, it

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-07 Thread Pete James
From the php.net manual for pg_fetch_array: Note: From 4.1.0, row became optional. Calling pg_fetch_array() will increment internal row counter by 1. Ilia A. wrote: On July 5, 2002 07:54 pm, Pete James wrote: Ilia A. wrote: The biggest annoyance I've come across is the fact that

RE: [PHP] Help needed with hexdec();

2002-07-07 Thread Jonathan Rosenberg
I spent many frustrating days debugging a similar problem. I don't understand exactly what is going on, but it seems that the problems revolve around PHP's treatment of an integer as signed or unsigned. Through experimentation I determined that the way you specify an integer constant (decimal

Re: [PHP] transporting variable via post to another site

2002-07-07 Thread andy
sorry maybe I did explain it not good enough. The problem is that if a user has entered data in form 2 goes back to form 1 and forward to form 2 again, the data he entered once in form 2 is lost. And I do not find a way how the get the data out of form 2 because the back button is placed in form

Re: [PHP] inserting linebrakes in multisite forms

2002-07-07 Thread andy
Hi alberto, I did try this out, but somehow this happens: text br / br / text in new line br/ is exacly where the linebrakes should be, but instead it is typed on screen. Is there a solution for this? Andy Alberto Serra [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] transporting variable via post to another site

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! andy wrote: sorry maybe I did explain it not good enough. The problem is that if a user has entered data in form 2 goes back to form 1 and forward to form 2 again, the data he entered once in form 2 is lost. And I do not find a way how the get the data out of form 2 because the

Re: [PHP] Mailing all the elements of a form

2002-07-07 Thread Justin French
If you just want ALL the fields of the form the appear one after the other (with something \n after each), then you could just loop through the POST vars (assuming you used form action=blah.php method=post), which would be either in the $_POST array or the $HTTP_POST_VARS array. something like:

Re: [PHP] Authorization

2002-07-07 Thread Justin French
You need to tell us what version of PHP you're running in both environments... this should have been your first step -- detrmining the difference between the two set-ups, basically using php_info(). My guess is that you're running PHP 4.2 on the local machine, which has a default setting of

Re: [PHP] Linked drop down selection lists and dynamically generated links

2002-07-07 Thread Pekka Saarinen
At 7/7/2002, you wrote: Is there any way of doing this so within a single page? Can this be done using only PHP or do I need to use Javascripts? Where would I be able to find examples of code which does this sort of processing? Hi, I would do it in PHP, because you can never ever rely on

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Miguel Cruz
On Sat, 6 Jul 2002, Richard Lynch wrote: I think we both agree that any old certificate is secure from snooping, right? I would disagree with that. In order to snoop on a connection, you need to have some access to the link. This may be by being in the same building with one of the

php-general Digest 7 Jul 2002 17:43:59 -0000 Issue 1450

2002-07-07 Thread php-general-digest-help
php-general Digest 7 Jul 2002 17:43:59 - Issue 1450 Topics (messages 105924 through 105964): Re: Having more problems 105924 by: Alberto Serra Linked drop down selection lists and dynamically generated links 105925 by: Peter Goggin 105928 by: Alberto Serra

RE: [PHP] Problem with SQL query

2002-07-07 Thread Mark Charette
LIMIT was not included in the SQL92 SQL standards and very few vendors implement all of SQL99; the use of ANSI standards to promote portable programs has always been beset by this kind of problems. Mark Charette Former ANSI X3H3.1 member -Original Message- From: Alberto Serra

Re: [PHP] Having more problems

2002-07-07 Thread Chris Hewitt
Shiloh, It displays in my Mozilla browser, but maybe the missing BODY and /BODY tags would mean it does not display in yours. HTH Chris Shiloh Madsen wrote: The newbie is still having troubles heh. Maybe some kind soul can tell me what im doing wrong this time. This is the code for a

[PHP] newbie: a couple basic questions

2002-07-07 Thread Alexander Ross
1) in a fuction, does a return statment automatically exit the function as well? 2) can someone give me a better explination of $HTTP_POST_VARS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mailing all the elements of a form

2002-07-07 Thread john
Hi Jeremy You might try the following: 1. set your form elements up so each input can be accessible as part of an associative array e.g. FORM ... input type=text name=input_array[forename] value= input type=text name=input_array[lastname] value= /FORM 2. create a trusted

Re: [PHP] newbie: a couple basic questions

2002-07-07 Thread john
Hi Yes the return function exits the function - you can specify a return value to http://www.php.net/manual/en/function.return.php HTTP_POST_VARS is depricated (still works though) $_POST has replaced: http://www.php.net/manual/en/reserved.variables.php#reserved.variables.post

[PHP] configure breaks at return type of qsort...

2002-07-07 Thread Alexander Skwar
Hallo. I'm trying to compile PHP 4.2.1 on a SuSE 7.2 server and can't go on because of the following error: checking for MySQL support... yes checking size of char... 1 checking size of int... (cached) 4 checking size of long... (cached) 4 checking size of long long... 8 checking for size_t...

[PHP] Error: Unable to fork (PHP 4.21)

2002-07-07 Thread Kevin Stone
I've searched the entire archives and google for a solution to this. There are plenty of references to the Unable to fork error.. most having to do with a bug in PHP 4.02. I writing the script for a remote Windows server running PHP 4.21 so the bug shouldn't be a problem.. I can only assume I

[PHP] mail function question

2002-07-07 Thread Kirk Babb
I'm using argosoft's mailserver with SMTP authentication, and would like to know how to pass the usr pwd inside php's mail() function. Please help me out here, I've RT*M without gaining an understanding of this. TIA, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Richard Lynch
In public key cryptography, it is the *keys*, not the digital certificate that encrypt/decrypt the communication. Okay. I break into his co-lo, I walk off with his computer, and I break into his office, I walk off with his computers, I kill the guy, and I kidnap his wife. I have everything.

[PHP] Re: Plz help w/ global variables

2002-07-07 Thread Richard Lynch
To test global variables, I wrote the following PHP script: (1)?php (2)session_start(); (3)session_register(counter); (4)$counter++; (5)echo $counter; (6)// header (location:statistics/contents.php); PS: Richard, thank you for your reply, but I still don't understand why is not passed. Once

[PHP] please I want them to erase me of their mail lists

2002-07-07 Thread Rodolfo Contreras T.
please I want them to erase me of their mail lists sincerely Rodolfo Contreras

[PHP] flip function

2002-07-07 Thread Garland Foster
Hi all, Call me crazy if you want but I'm programming Haskell Code in PHP :-). I need some help to find a way to implement the Haskell flip function. Let me introduce flip: Flip receives two arguments: arg1 and arg2 arg1 must be the name of a function taking two arguments, name it f(x1,x2)

[PHP] Printing Problem

2002-07-07 Thread Chris Kay
I'll repeat my ealier question because some people can not think for themselves.. I want to run a print job of 200+ invoices I have a javascript code to open a print dialog box and Then go to next invoice and do the loop.. Problem I am having is that I want it to pause if the ok button on the

Re: [PHP] configure breaks at return type of qsort...

2002-07-07 Thread Alexander Skwar
Alexander Skwar wrote: When I use --with-mysql instead of --with-mysql=/usr/include/mysql, I can compile PHP with no errors. /usr/include/mysql contains: Solved. I need to call --with-mysql=/usr and not use the full path to the mysql includes. Alexander Skwar -- How to quote:

RE: [PHP] Calander with highlighting

2002-07-07 Thread Peter
George, it's not quite what I'm looking for but it's very similar to what I am after would go along way to acheiving what I am after.. Take a look at http://www.bucharest-accommodation.ro/flat_univstudio.php .That is what you want? -- Best regards, George Nicolae

[PHP] Re: mail function question

2002-07-07 Thread Manuel Lemos
Hello, On 07/07/2002 07:49 PM, Kirk Babb wrote: I'm using argosoft's mailserver with SMTP authentication, and would like to know how to pass the usr pwd inside php's mail() function. Please help me out here, I've RT*M without gaining an understanding of this. No, mail() function does not

RE: [PHP] Buy Sell

2002-07-07 Thread Peter
you could do some little modifcations to something like phpnuke ( http://phpnuke.org) that could work for you.. it's primarily a news style format where people can post things to .. but you can set it so the administrator has to aprove any posts to the site.. Cheers -Original

RE: [PHP] Re: suppressing errors with @

2002-07-07 Thread Martin Towell
I use it in front of variables (never tried it on $GLOBALS, etc though) eg: (using register_globals = on thingo - hey don't blame me, it's the tech guys who have it on, and there's too much legacy code to turn it off :( - anyway) ? if (@$var) { echo Yep, var is there; } else { echo nope; }

RE: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Mark Charette
Or, even easier and no tech, I get a low-paying job in some convenience store, and make copies of the credit card receipts. Game Over. Using a credit card anywhere involves trust. Period. End of story. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] How about an even

[PHP] Re: mail function question

2002-07-07 Thread Kirk Babb
Thanks - I'm heading there now. I appreciate the help. -Kirk Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, On 07/07/2002 07:49 PM, Kirk Babb wrote: I'm using argosoft's mailserver with SMTP authentication, and would like to know how

Re: [PHP] Problem with SQL query

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! Mark Charette wrote: LIMIT was not included in the SQL92 SQL standards and very few vendors implement all of SQL99; the use of ANSI standards to promote portable programs has always been beset by this kind of problems. Yes, and vendors just love to have proprietary standards to

Re: [PHP] flip function

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! I've tried with create function, for example: function flip($f,$arg) { return create_function('$y','return '.$f.($arg.',$y);'); } But if you use flip(foo,$o1) where o1 is an object then it won't work. Never tried that on Haskell coding, but it did solve most of my trouble

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Chris Shiflett
I think I'm going to forget trying to explain the technical details, because somehow this conversation is completely missing the point now. :) SSL allows you to be sure that your credit card number is getting safely and securely to the Web site identified by a certain domain name. That's all

Re: [PHP] inserting linebrakes in multisite forms

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, andy wrote: Alberto Serra [EMAIL PROTECTED] schrieb: andy wrote: One Form has a textfield, I submit it to another html site where there is another form with a textfield. Inside this textfield I place a hidden field with the value of the field from page 1 then I submit to

[PHP] PHP/mysql connection problem

2002-07-07 Thread Jo
Hey all, this is probably more to do with Mysql but I figured i'd ask here as well. The problem: When connecting to the mysql server on the local machine its fine, but when you connect to a remote machine eg $db = mysql_connect(x.x.x.x, user, password); and request something from the database,

Re: [PHP] Printing Problem

2002-07-07 Thread Miguel Cruz
On Mon, 8 Jul 2002, Chris Kay wrote: I'll repeat my ealier question because some people can not think for themselves.. Why insult people who are trying to help you? Nobody gets paid to read this list; they're doing it to be nice. I want to run a print job of 200+ invoices I have a

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Justin French
on 08/07/02 10:48 AM, Mark Charette ([EMAIL PROTECTED]) wrote: Or, even easier and no tech, I get a low-paying job in some convenience store, and make copies of the credit card receipts. Game Over. Using a credit card anywhere involves trust. Period. End of story. Couldn't agree more.

Re: [PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-07 Thread Miguel Cruz
On Sat, 6 Jul 2002, markbm wrote: I am trying to build a product detail page that pulls data from a MYSQL database using PHP. The data for the page includes product images, which I am trying to link to (i.e. from their location on the web server) instead of loading the images into the

Re: [PHP] PHP/mysql connection problem

2002-07-07 Thread Chris Shiflett
Jo wrote: The problem: When connecting to the mysql server on the local machine its fine, but when you connect to a remote machine eg $db = mysql_connect(x.x.x.x, user, password); and request something from the database, it connects, BUT it takes about 5 minutes... I have an idea, yes. Make

Re: [PHP] Sockets 'requested address is not valid in its context'

2002-07-07 Thread Miguel Cruz
On Sat, 6 Jul 2002, Zac Hillier wrote: I'm opening a port on a remote machine presently I'm using fsockopen() which is fine for opening the port and sending data however I'm having trouble reading data back from the port. So I've considered using socket functions but do not appear to be

RE: [PHP] PHP/mysql connection problem

2002-07-07 Thread Peter
Hey all, this is probably more to do with Mysql but I figured i'd ask here as well. The problem: When connecting to the mysql server on the local machine its fine, but when you connect to a remote machine eg $db = mysql_connect(x.x.x.x, user, password); and request something

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Tracker 1
Personally, I think the concept of NEEDING https is a bit rediculous. Generally, trying to get through the front door, would be the same as trying to get through a concrete wall with a baseball bat... Now, finding a back door, and getting at THEIR database is the REAL key. people don't

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! Chris Shiflett wrote: it is very misleading and would indicate that I have very little knowledge about PKI systems, Come on, nobody here would ever think of that. Especially since most of us (put me as first one in the list) should know much more about PKI ourselves before

[PHP] newbie: question about question marks

2002-07-07 Thread Alexander Ross
Can someone explain to me what the ? does. I have a vague idea of what it means in a URL (please cearify that) but I haven't the slightest what it means in php code. Thanks for your help Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Miguel Cruz
On Mon, 8 Jul 2002, Alberto Serra wrote: Chris Shiflett wrote: Of course, as users of Web browsers such as Netscape and Internet Explorer, we have to trust AOL/Time Warner and Microsoft, respectively, (yeah, scary thought) to only trust CAs that have high integrity, security, etc. An

RE: [PHP] Printing Problem

2002-07-07 Thread Chris Kay
Thank you That's what I was asking for and needed to know, I had thought of something along those lines but was interested if anyone had found a Different way, I was not intending to insult anyone, was just implying that I not be made a fool When people have not real and thought about my

Re: [PHP] newbie: question about question marks

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Alexander Ross wrote: Can someone explain to me what the ? does. I have a vague idea of what it means in a URL (please cearify that) but I haven't the slightest what it means in php code. Thanks for your help Read about the ternary operator at:

[PHP] MING

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! has anyone been using MING extension in a production environment? Is it robust? ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- -_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_-@-_=}{=_--_=}{=_- LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Chris Shiflett
Alberto Serra wrote: However, it is adequate to know that one key is used to do the encrypting, while the other is used for the decrypting. These are generally referred to as public and private keys, because one is made available to the public while the other is kept safely stored (in the

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Chris Shiflett
Miguel Cruz wrote: Nobody thinks they're checking whether or not goodguys.com are good guys. It is your job as a consumer to research them. Once you have researched them and decided to do business with them, the certificate authority gives you a pretty solid basis for believing that you

Re: [PHP] HTTPS vs. HTTP ?

2002-07-07 Thread Alberto Serra
ðÒÉ×ÅÔ! This is for Chris and Miguel and all the people who threw in infos. I just wanted to thank you all :) It's been really useful, and yes Chris, I guess you should post an explanation of the process somewhere. Most of us are prepared to use HTTPS but we can hardly explain our customers

[PHP] ini_set() broken?

2002-07-07 Thread Greg Donald
This code doesn't work: ? if(ini_set(register_globals, 0)) echo ini_set success; else echo ini_set failed; ? At http://php.net/ini_set it states the following setting is possible: register_globals 0 PHP_INI_ALL Translated, PHP_INI_ALL means: Entry can be set anywhere So does anyone know

Re: [PHP] ini_set() broken?

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Greg Donald wrote: This code doesn't work: ? if(ini_set(register_globals, 0)) echo ini_set success; else echo ini_set failed; ? Please don't say this code doesn't work. Say why you think it didn't work, whether that's because you received an error message, or a

[PHP] is their a jobs mailing list?

2002-07-07 Thread Peter J. Schoenster
Hi, I was here first: http://www.php.net/manual/en/faq.mailinglist.php#faq.mailinglist.guideline Before you post to the list please have a look in this FAQ But I found nothing about a jobs mailing list. I'm really a Perl programmer and we have jobs.perl.org which has a list which does a

Re: [PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-07 Thread markbm
Thanks for the reply. The question is how to pull that hyperlink/file location and display the image file on a PHP page. Basically, the text in the FRONT_REND field is just an image name (1855.jpg), and I store the prefix to that location on the page. I have included all the code from my page

Re: [PHP] ini_set() broken?

2002-07-07 Thread Greg Donald
On Sun, 7 Jul 2002, Miguel Cruz wrote: ? if(ini_set(register_globals, 0)) echo ini_set success; else echo ini_set failed; ? Please don't say this code doesn't work. Say why you think it didn't work, whether that's because you received an error message, or a specific Uhh.. I don't

RE: [PHP] ini_set() broken?

2002-07-07 Thread Martin Towell
On Sun, 7 Jul 2002, Miguel Cruz wrote: ? if(ini_set(register_globals, 0)) echo ini_set success; else echo ini_set failed; ? [snip] I haven't tried this code, but I assume you're trying to say that ini_set failed is displayed, but you're expecting the other output to be displayed.

[PHP] compare variables from text fields...

2002-07-07 Thread Jas
What is the best function or operator to compare two text strings being inputted by a text field within a form? Any help is appreciated. Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ini_set() broken?

2002-07-07 Thread Chris Shiflett
Greg Donald wrote: If you can't be helpful then feel free to shutup.. Please don't attack people who freely give their time to try and help you. Mr. Cruz did not ridicule you in any way but merely asked that you be more specific than, it doesn't work, which is very good advice and a sincere

[PHP] support@bignickel.net

2002-07-07 Thread Jas
http://www.adobe.com/products/premiere/demodnld.html#win -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ini_set() broken?

2002-07-07 Thread Greg Donald
On Mon, 8 Jul 2002, Martin Towell wrote: ? if(ini_set(register_globals, 0)) echo ini_set success; else echo ini_set failed; ? I haven't tried this code Then why comment on it? but I assume you're trying to say that ini_set failed is displayed, but you're expecting the other output

Re: [PHP] ini_set() broken?

2002-07-07 Thread Greg Donald
On Sun, 7 Jul 2002, Chris Shiflett wrote: I refer you to this URL: http://www.tuxedo.org/~esr/faqs/smart-questions.html I refer you to this URL: http://php.net/ini_set and ask why does this function not work as per the manual? Again, here is my code: ? if(ini_set(register_globals, 0))

Re: [PHP] ini_set() broken?

2002-07-07 Thread Jason Wong
Greg Donald said: On Sun, 7 Jul 2002, Miguel Cruz wrote: ? if(ini_set(register_globals, 0)) echo ini_set success; else echo ini_set failed; ? Please don't say this code doesn't work. Say why you think it didn't work, whether that's because you received an error message, or a

Re: [PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-07 Thread Miguel Cruz
Instead of: echo img src=http://www.website.com/images/.$result[FRONT_REND].;; Wouldn't you want it to be: echo img src='http://www.website.com/images/; . mysql_result($result, 0, 'FRONT_REND') . ''; ...? miguel On Sun, 7 Jul 2002, markbm wrote: Thanks for the reply. The question is how

Re: [PHP] compare variables from text fields...

2002-07-07 Thread Justin French
In what way do you want to compare them? to see if they are the same string? the same type of var? different? greater than? less than? My guess is that you want them to be the same (as in the case of two passwords), in which case it's simple: ? if($_POST['pass1'] == $_POST['pass2']) {

Re: [PHP] ini_set() broken?

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Greg Donald wrote: On Sun, 7 Jul 2002, Miguel Cruz wrote: ? if(ini_set(register_globals, 0)) echo ini_set success; else echo ini_set failed; ? Please don't say this code doesn't work. Say why you think it didn't work, whether that's because you received an error

Re: [PHP] ini_set() broken?

2002-07-07 Thread Chris Shiflett
Greg Donald wrote: On Sun, 7 Jul 2002, Chris Shiflett wrote: I refer you to this URL: http://www.tuxedo.org/~esr/faqs/smart-questions.html I refer you to this URL: http://php.net/ini_set and ask why does this function not work as per the manual? Again, here is my code: ?

Re: [PHP] compare variables from text fields...

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Jas wrote: What is the best function or operator to compare two text strings being inputted by a text field within a form? Any help is appreciated. == is always handy. Depending on your needs, you may want to throw in a couple calls to strlower (if you don't care about

Re: [PHP] ini_set() broken?

2002-07-07 Thread Greg Donald
On Mon, 8 Jul 2002, Jason Wong wrote: ? if (ini_set(register_globals, 0) !== FALSE) echo ini_set success; else echo ini_set failed; ? Finally someone interested in helping find my error. Thanks alot! -- --- Greg

Re: [PHP] ini_set() broken?

2002-07-07 Thread Tom Rogers
Hi If you check with phpinfo() you will see that it is getting set to 1 or 0 but by the time your script is run it is too late for it to have any effect. Also ini_get('registar_globals') will not return the current state. I have no idea why, it looks like one of those undocumented safety

Re: [PHP] Re: PHP: Script Security: Best coding practices

2002-07-07 Thread olinux
A little off your request, but may be of interest: Top 21 PHP Programming Mistakes from Zend.com http://www.zend.com/zend/art/mistake1.php http://www.zend.com/zend/art/mistake2.php olinux On 07/04/2002 02:24 AM, Jean-Christian Imbeault wrote: I am trying to figure out what are some Bad

Re: [PHP] ini_set() broken?

2002-07-07 Thread Jason Wong
Tom Rogers said: Hi If you check with phpinfo() you will see that it is getting set to 1 or 0 but by the time your script is run it is too late for it to have any effect. I just checked with an old PHP manual (probably 4.1.X) and register_globals can only be set in PHP_INI_PERDIR

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-07 Thread Analysis Solutions
On Fri, Jul 05, 2002 at 01:59:48PM -0700, Lazor, Ed wrote: How many here feel PostgreSQL has surpassed MySQL as the better backend for PHP? This would be based on performance (speed, scalability, etc.) and features. I've been using MySQL/PHP for quite some time. Several months ago, I

Re: [PHP] ini_set() broken?

2002-07-07 Thread Tom Rogers
Hi Even with the correct spelling it returns null (php-4.2.1) $x = ini_get('register_globals'); echo current settings = .$x.br; Tom At 12:43 PM 8/07/2002 +0800, Jason Wong wrote: Tom Rogers said: Hi If you check with phpinfo() you will see that it is getting set to 1 or 0 but by the

RE: [PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-07 Thread César Aracena
-Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 12:56 AM To: markbm Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Retrieving/Displaying hyperlinked images with PHP Instead of: echo img

Re: [PHP] Splitting up a timestamp?

2002-07-07 Thread Analysis Solutions
Tony: On Sun, Jul 07, 2002 at 11:40:27AM +0100, Tony Harrison wrote: Hi. I please need some help with converting a MySQL timestamp into something easily read. Any help at all is most appreciated, thanks. There are a lot of ways to do that. I'd go for the date_format() function in MySQL.

Re: [PHP] is their a jobs mailing list?

2002-07-07 Thread Rasmus Lerdorf
Job postings are fine on this list. Some people will invariably gripe, but overall people like to see that there are jobs out there involving PHP. And it they don't, well tough. None of the people who help run this list, including myself have any problems with them. -Rasmus On Sun, 7 Jul

[PHP] Referencing function return value

2002-07-07 Thread Anas Mughal
I have a general question about referencing... Would it be safe to reference a function return value? My main concern is that once the function goes out of scope, is that variable cleaned up or would it stay around because there is a new reference to it. I am coming from the C++ and Java

Re: [PHP] Referencing function return value

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Anas Mughal wrote: I have a general question about referencing... Would it be safe to reference a function return value? Sure, unless the function returned a reference itself, in which case you have to continue keeping track of the validity of that reference (i.e., if