[PHP] Making alternate rows of different colour

2003-01-17 Thread Denis L. Menezes
Hello friends. I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color. Can someone please help me with the code? Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Meta Refresh

2003-01-17 Thread roel
Try this: $NewID = $ID + 1; (instead of the $NewID assignment you've got now...) Edson Waite [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, I am trying to make an automated tour as a section of my site, using the following. ?php $NewID =

Re: [PHP] Making alternate rows of different colour

2003-01-17 Thread Rasmus Lerdorf
I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color. Can someone please help me with the code? $cols = array('#ff','#00ff00'); $i = 0; while(your_loop_to_output_each_row) { echo 'tr

Re: [PHP] global variables

2003-01-17 Thread Jason k Larson
In terms of security, or in my opinion, good and proper coding, it is best to have no global variables. There is always a way to wrap variables that will be needed in local scopes. However, this philosophy is harder to practice than it is to preach. Code can get ugly when passing if you are

Re: [PHP] Passing Arrays Through Forms

2003-01-17 Thread Sancar Saran
On Thursday 16 January 2003 20:58, [EMAIL PROTECTED] wrote: Hello Everyone, I've attempted this many times, but have failed to understand it each time. I want to make it easier for myself to deal with passing variables through a form. So I thought, why not use a single array variable to do

Re: [PHP] GD version 1.6.2 and resizing images...

2003-01-17 Thread Marco Alting
I've looked at netpbm and ImageMagick, but I can't make heads or tails from it, I have to 'make' modules and stuff? My site is hosted on an Apache server, Is there maybe a pre-baked version I can download and install? Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On

[PHP] Curl Linux Console String -- PHP Translation

2003-01-17 Thread Andrian Ivanov
Hi, i have a curl string: curl --casert CA.srt -E client.pem:huho8 -l https://...; now, i've added all of the needed curl properties for the php application(e.g. curl_setopt($connection,CURLOPT_PORT,9000) BUT i can't find what's the name of the Curl CONSTANT matching the client's Public Key

[PHP] Re: Security in included PHP files

2003-01-17 Thread Philippe Saladin
Jacob Copsey [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] This should work as long as you are only including your include files from scripts named index.php. Yes, of course. I have only one *real* page beginning with html and ending with /html, called index.php, and

Re: [PHP] GD version 1.6.2 and resizing images...

2003-01-17 Thread Jason Wong
On Friday 17 January 2003 16:38, Marco Alting wrote: I've looked at netpbm and ImageMagick, but I can't make heads or tails from it, I have to 'make' modules and stuff? Can't you persuade your host to upgrade to a more recent version of GD -- 1.6.2 is pretty ancient. If they won't/can't

Re[2]: [PHP] Re: Ever complained about lousy PHP programmers?

2003-01-17 Thread Tom Rogers
Hi, Friday, January 17, 2003, 4:44:19 AM, you wrote: PH Leon Mergen said: Now, first of all, why did you this: ?php echo(?xml version=\1.0\ encoding=\UTF-8\ ?); ? and not just: ?xml version=1.0 encoding=UTF-8 ? PH Because short tags are evil ;-) My provider has short tags enabled, so PH

Re: [PHP] Display Dates in English o_O

2003-01-17 Thread Tom Rogers
Hi, Friday, January 17, 2003, 11:16:53 AM, you wrote: S I have a PHP driven site that as a time schedule. Since the site isn't exactly filled with very intellagent people who just LOVE to translate times and dates from a weird format (Such as the S format used in MySQL), I'd like to take these

Re: [PHP] What's the PHP-equivalent of Perl's AUTOLOAD feature?

2003-01-17 Thread Chris Hayes
At 02:06 17-1-2003, you wrote: I just read an interesting article in The Perl Journal (TPJ) about using AUTOLOAD as a layer of abstraction for accessing database columns and I would like to write something similar in PHP. Is this possible? If you mean some sort of database abstraction so one

Re: [PHP] Making alternate rows of different colour

2003-01-17 Thread Chris Hayes
At 09:05 17-1-2003, you wrote: I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color. Can someone please help me with the code? $cols = array('#ff','#00ff00'); $i = 0;

[PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Denis L. Menezes
Hello Guys, I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours. Quote : ?php $cols = array('#ff','#00ff00'); $i = 0; while($row=mysql_fetch_array($result)){ echo 'tr

RE: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Clarkson, Nick
I think it's because you're setting the bgcolor=#bf for the TD tag, so it's overriding using the TR tag bgcolor. The maths is OK, so if you remove the td bgcolor bit it *should* (standard disclaimer) work. Nick -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]]

Re: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Jason Wong
On Friday 17 January 2003 20:11, Denis L. Menezes wrote: Hello Guys, I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours. Quote : ?php $cols = array('#ff','#00ff00'); $i = 0;

Re: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Chris Hayes
At 13:11 17-1-2003, you wrote: I want alternating colours in the output table. Can someone tell me what is wrong with this code? I get the data but no alternating colours. It has to do with the $cols[$i++%2] part. When I try to print $i++%2 the outcome varies between 1 and none. Somehow the

RE: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Clarkson, Nick
I've just tested this stripped down (some colours changed) version of your code and I get alternating rows no problem. On another point, without the TABLE tags it won't work properly. I think your PHP works fine, it's your HTML ;o) Nick ?php $cols = array('#ff','#00ff00'); print TABLE; for

RE: [PHP] PDF

2003-01-17 Thread Larry Brown
According to pdflib their commercial version gives you the ability to edit pdf files using the PDI library. Have you looked at this? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Brian McGarvie [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003

Re: [PHP] opening tex file

2003-01-17 Thread Jason Wong
On Friday 17 January 2003 20:59, Artur Bereniewicz wrote: how can I open text file and start reading in the middle of it? AFAIK it's not possible to jump directly into the middle of a file and start reading. You would have to read it line-by-line until you get to the part you're interested

RE: [PHP] Meta Refresh

2003-01-17 Thread Ford, Mike [LSS]
On Friday 17 January 2003 11:25, Edson Waite wrote: Hi All, I am trying to make an automated tour as a section of my site, using the following. ?php $NewID = $colname_earlytour + 1; ? META HTTP-EQUIV=refresh CONTENT=15 URL=early-tour.php?ID= ?php echo $NewID;?

RE: [PHP] x12 837

2003-01-17 Thread Edward Peloke
Thanks Cal, I may be asking some questions! I just have a blank script now so I have a lot to do! Eddie -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 4:37 PM To: Edward Peloke; Php-General@Lists. Php. Net Subject: RE: [PHP] x12 837

Re: [PHP] Re: session_destroy have strange effect....

2003-01-17 Thread Marek Kilimajer
This seems pretty dangerous to me. You should better explain your problem, I didn't understand it. Scott Fletcher wrote: Oh never mind. I found a work around to it. I can use the passthru command. Like this... --clip-- passthru(rm -f /tmp/sess_*) --clip-- Scott Fletcher [EMAIL

Re: [PHP] opening tex file

2003-01-17 Thread Chris Hayes
At 14:05 17-1-2003, you wrote: On Friday 17 January 2003 20:59, Artur Bereœniewicz wrote: how can I open text file and start reading in the middle of it? AFAIK it's not possible to jump directly into the middle of a file and start reading. You would have to read it line-by-line until you

Re: [PHP] getopt usage?

2003-01-17 Thread Jason Wong
On Thursday 16 January 2003 06:51, Eli Criffield wrote: I can't seem to find any examples of code using getopt() around. I'm thinking not many people use php for command line shell scripts. Here is what i came up with for getopt(); ? $options = getopt(a:bc); reset($options);

[PHP] Re: Making alternate rows of different colour

2003-01-17 Thread rush
Denis L. Menezes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color. Can someone please help me with the code? See one possible

Re: [PHP] fit window to image

2003-01-17 Thread Marek Kilimajer
You need to change directory permissions too Ezequiel Sapoznik wrote: ok, I try with ?php $size = getimagesize (../images/1817.jpg); echo $size; ? to then use the x and y with a javascript code like: window.open ('win_sizer.html','Photo','toolbar=yes,status=yes,scrollbars=yes,location=ye

Re: [PHP] Meta Refresh

2003-01-17 Thread Marek Kilimajer
META HTTP-EQUIV=refresh CONTENT=15; URL=early-tour.php?ID=?php echo $NewID;? misplaced quote, missing semicomma, and redundant space Edson Waite wrote: Hi All, I am trying to make an automated tour as a section of my site, using the following. ?php $NewID = $colname_earlytour + 1; ? META

RE: [PHP] Re: Making alternate rows of different colour

2003-01-17 Thread Edward Peloke
I did this by defining two colors, and as I looped through the query, I would just change it each time... ex... $trcolor=#F0F8FF; while ($myrow = mysql_fetch_array($result)){ $colorset=0; if ($trcolor=='#F0F8FF'){ $trcolor='#B0C4DE';

[PHP] little Prob...

2003-01-17 Thread Manohar Ramjibhai Solanki
Sir I am using PHP4.2.2 with gd 1.6.2 But my web host has PHP4.2.3 with gd2.0.0So I needed to ask U as How to upgrade PHP4.2.2 to PHP4.2.3...Also same for gd1.6.2. to gd 2.0.0. Is there any step by step procedure for doing this if so Please mail me I'll be thankfull to U Waiting

Re: [PHP] Changing page orientaion for printing

2003-01-17 Thread Marek Kilimajer
No, but you can use pdf Stanislav Skrypnik wrote: Hi everybody, Is it possible using PHP change page orientation in browser so that when user clicks on Print button page automatically rotated to landscape orientation. I've heard that it is possible to do with ActiveX but due to security reason

php-general Digest 17 Jan 2003 14:10:35 -0000 Issue 1828

2003-01-17 Thread php-general-digest-help
php-general Digest 17 Jan 2003 14:10:35 - Issue 1828 Topics (messages 131956 through 132006): Re: Display Dates in English o_O 131956 by: Rick Emery 131984 by: Tom Rogers Re: fit window to image 131957 by: Justin French 131958 by: Ezequiel Sapoznik

Re: [PHP] global variables

2003-01-17 Thread Marek Kilimajer
For this use globals, it would be painfull to pass everything. But you can also use some class that would keep track of such things. Dara Dowd wrote: Is it better to pass variables through functions or to simply declare them as global within the function's scope? The variables in this

Re: [PHP] Making alternate rows of different colour

2003-01-17 Thread Marek Kilimajer
while($row=mysql...) { $color=($color=='red' ? 'blue' : 'red'); echo ... } Denis L. Menezes wrote: Hello friends. I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color. Can someone please help me with the

[PHP] PHP and SQL

2003-01-17 Thread Kelvin Poon
Hi all, My company had just ordered a SQL 2000 Server. I need to make a webpage that collects data from the Server's database. I guess I need to use PHP with SQL. My question is what is the difference between SQL and mySQL? I brought a book that teaches you how to use PHP with MymySQL, I

Re: [PHP] PHP and SQL

2003-01-17 Thread Adam Voigt
SQL Server 2000 has a book's online sort of thing, it's a help manual that is installed while your installing the SQL Server client (Enterprise Manager) or server, it's been invaluable in figuring out functions specific to MSSQL. I highly recommend just using that. On Fri, 2003-01-17 at

[PHP] Acessing $DOCUMENT_ROOT

2003-01-17 Thread Don
Hi, How do I access $DOCUMENT_ROOT when register_gobals is set off? I think there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't find it in the documentation. Thanks, Don --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

[PHP] Problems reading e-mail body when having attachements .....

2003-01-17 Thread Samuel Costa
I'm using the following code to parse the structure of the mail messages, function parse($structure) { global $type; global $encoding; // create an array to hold message sections $ret = array(); // split structure into parts $parts = $structure-parts; /* iterate through parts and create an

Re: [PHP] What's the PHP-equivalent of Perl's AUTOLOAD feature?

2003-01-17 Thread Chip Castle
Hi Chris, Thanks for the info. I probably need to make myself more clear, as I'm not referring to a database abstraction layer in terms of drivers (e.g., dbx in PHP, DBI in Perl). I think the best example of what I'm talking about is in Tim Kientzle's Perl and Rapid Database Prototyping

[PHP] Re: Acessing $DOCUMENT_ROOT

2003-01-17 Thread Philip Hallstrom
$_SERVER[DOCUMENT_ROOT] On Fri, 17 Jan 2003, Don wrote: Hi, How do I access $DOCUMENT_ROOT when register_gobals is set off? I think there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't find it in the documentation. Thanks, Don --- Outgoing mail is certified

Re: [PHP] Acessing $DOCUMENT_ROOT

2003-01-17 Thread Chris Hewitt
Don wrote: How do I access $DOCUMENT_ROOT when register_gobals is set off? I think there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't find it in the documentation. $_SERVER['DOCUMENT_ROOT'] HTH Chris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Changing page orientaion for printing

2003-01-17 Thread Joshua Pierre
On Fri, Jan 17, 2003 at 05:07:30PM +1100, Stanislav Skrypnik wrote: Hi everybody, Is it possible using PHP change page orientation in browser so that when user clicks on Print button page automatically rotated to landscape orientation. I've heard that it is possible to do with ActiveX but due

[PHP] Re: Meta Refresh

2003-01-17 Thread Edson Waite
Thanks for the assistance, It now works. I have to figure out how to stop it at the end of the tale and force it it to another page but I will mess with that for a while before asking for help. Thanks again to all who helped, Ed Waite Edson Waite [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Sessions or Cookies?

2003-01-17 Thread Cesar Aracena
Hi all, I'm about to create a site where visitors will be able to search, view, surf and add items to a shopping cart without logging in to the site, but will need to do that in order to complete the transaction of course. What I wonder, is what to use to collect information about the items the

[PHP] DB replicated on RAM disk?

2003-01-17 Thread typea
This got long, but I structured it so one can stop reading when one gets bored or mired in minutia, and constructively answer based on what was read so far. So feel free to stop reading after only a couple paragraphs and fire off a response :-) +++ marks good stopping-points for this cumulative

Re: [PHP] Sessions or Cookies?

2003-01-17 Thread Chris Shiflett
--- Cesar Aracena [EMAIL PROTECTED] wrote: Should I use the no-so-secure old cookies method or should I start a new session every time a client drops in and handle each cart by session name or ID? My advice is to only use cookies to identify a Web client. Any data you want to associate with

[PHP] Question about using session and logging out

2003-01-17 Thread Don
Hi, I have an application that uses sessions to allow customers to access a restricted area. That is, they are prompted for a user login and password. I then use sessions to track each customer. At the top of each page, I have placed the following PHP code:

[PHP] Header sent polem

2003-01-17 Thread Cesar Aracena
Hi all, Following Chris's idea on how to handle visitors sessions, I'm trying to setup a cookie with a randomly generated session ID but it throws me the headers already sent notice but there's nothing above the setcookie function. Here's part of my code: ? if (!isset($sessid)) {

RE: [PHP] Header sent polem

2003-01-17 Thread Matt Schroebel
-Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 12:56 PM Subject: [PHP] Header sent polem Hi all, Following Chris's idea on how to handle visitors sessions, I'm trying to setup a cookie with a randomly generated session ID

[PHP] Random string (was Header sent problem)

2003-01-17 Thread Cesar Aracena
I found that the Header already sent problem was caused by the Random Password Generator I'm using, even if I place this function on the bottom of the same file I'm trying to open an just call for the result. So, to avoid this issue, I need another method of generating a random number or string

Re: [PHP] Random string (was Header sent problem)

2003-01-17 Thread Marek Kilimajer
The function is not the real problem, you just need to find any characters (even white) outside ?php ? Cesar Aracena wrote: I found that the Header already sent problem was caused by the Random Password Generator I'm using, even if I place this function on the bottom of the same file I'm trying

[PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-17 Thread andre . lagadec
Hello, I try to move an Web application in Php-4.0.3 to php-4.2.3, and some programs don't work well on some pages. I make search in the code, and after tests, I find that the following code doesn't work in php-4.2.3, but works in php-4.0.3pl1

RE: [PHP] Random string (was Header sent problem)

2003-01-17 Thread John W. Holmes
I found that the Header already sent problem was caused by the Random Password Generator I'm using, even if I place this function on the bottom of the same file I'm trying to open an just call for the result. So, to avoid this issue, I need another method of generating a random number or

[PHP] mail () error

2003-01-17 Thread Stephen Goehler
Anyone know what causes this error? Warning: mail ()[function.mail]: Failed to receive Can it not find the mail server? On a side note, is there a PHP resource on the net that will listed error messages and their possible causes? Thanks, Steve -- PHP General Mailing List

RE: [PHP] mail () error

2003-01-17 Thread John W. Holmes
Anyone know what causes this error? Warning: mail ()[function.mail]: Failed to receive Can it not find the mail server? When I got this error it was because the server was rejecting the email, saying it wouldn't relay the message. Maybe check your relay setting in your SMTP server?

[PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-17 Thread Ian M. Evans
Does anyone have a quick PHP function for converting accented characters to their non-accented forms? It would really help a lot with Amazon searches, etc. For example something that can turn: Renée Zellweger into Renee Zellweger Along that same vein, turning Ren#233;e Zellweger into Renee

RE: [PHP] PHP and SQL

2003-01-17 Thread John W. Holmes
My company had just ordered a SQL 2000 Server. I need to make a webpage that collects data from the Server's database. I guess I need to use PHP with SQL. My question is what is the difference between SQL and mySQL? I brought a book that teaches you how to use PHP with MymySQL, I am just

RE: [PHP] Session Length

2003-01-17 Thread John W. Holmes
I am using Sessions to secure parts of my website. I need to know if there is a way to set a lifetime for these sessions , so that they are automatically destroyed when say the user is inactive for 30 minutes. It's already there, the session.gc_maxlifetime setting (default is 1440 seconds).

RE: [PHP] OOP

2003-01-17 Thread John W. Holmes
Nice work on php archittect by the way :) Thanks again, Jordan Thank you. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Images : Store in dB or disk?

2003-01-17 Thread John W. Holmes
With regards to Marek, I don't see how there would be two queries, because there row conisists of image properties and image data. So when i select the required row(s), I will have properties and images. So it will be 1 query, of course it is a big (size-wise) query. Hopefully you've gotten

RE: [PHP] What's the PHP-equivalent of Perl's AUTOLOAD feature?

2003-01-17 Thread John W. Holmes
I just read an interesting article in The Perl Journal (TPJ) about using AUTOLOAD as a layer of abstraction for accessing database columns and I would like to write something similar in PHP. Is this possible? I have written a number of PHP/MySQL applications, but do not consider myself an

[PHP] Re: occasional mcrypt problems

2003-01-17 Thread Steve Yates
After much testing, I think I may have it. It appears that MySQL is dropping a trailing space from the value being inserted into the database! For example if the encrypted string is (.A®¢m¸¼'À MySQL stores the value without the trailing space (and it is a space). Why is that? I can

Re: [PHP] mail () error

2003-01-17 Thread Stephen Goehler
Thanks, the server was relaying, but it turned out to be the firewall that was rejecting the request. Now I have a new problem thought, my mail () command will send the mail (and I receive it) but it will just hang there and eventually return this: Fatal error: Maximum execution time of 30

[PHP] Is it safe to enable unused extensions?

2003-01-17 Thread Mohanaraj
Hi, I might need to enable several extension - out of which only a single one is used. Do these extra extensions that are enabled but not used eat up appreciable amounts of memory or in any way slow down PHP? Thank you and best regards, Mohanaraj -- PHP General Mailing List

[PHP] Number Sign in String Variables

2003-01-17 Thread Joab Ben Stieglitz
I have a MySQL database that includes data with the # sign in some data fields. My PHP script pulls the data out of the database fine, but when I got to write back to the database, I get errors because the string gets truncated at the # sign. For example: $query = INSERT INTO

Re: [PHP] mail () error

2003-01-17 Thread Thomas Seifert
The mail-server has to respond that it received the mail. Maybe you've set the firewall only one-way open? Thomas On Fri, 17 Jan 2003 15:29:32 -0500 [EMAIL PROTECTED] (Stephen Goehler) wrote: Thanks, the server was relaying, but it turned out to be the firewall that was rejecting the

[PHP] Curl-functions + socket send and receive... where is thedocumenation ?

2003-01-17 Thread Stefan Vetter
I just need some documentation on how to get curl to send to and receive from a socket. Since there is no such information on www.php.net/curl. Anyone, who can help me with that ? Stefan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Curl Problem

2003-01-17 Thread Jeff Hatcher
How do you retrieve a session cookie with curl? How do you trick a page to make it think that it was submit from within the domain? www.domainname.com/index.php - www.domainname.com/logincheck.php (validates the from address) Any help would be greatly appreciate. -- PHP General Mailing List

Re: [PHP] Re: Images : Store in dB or disk?

2003-01-17 Thread Bobby Patel
That makes sense. When Marek explained it I didn't realise that IMG tags can't use the raw data, and needs to make a seperate HTTP request for the Headers. Now, I understand. Unfortunately the desicion has been made to go with the database. Oh well, I can always code the scripts to store and

[PHP] $HTTP_GET_VARS

2003-01-17 Thread Mike Tuller
I am following an example in a book and have run into a problem with a script that I am trying to run under PHP 4.3.0. What I have is a page that you click on an id number that is from a listing in a database, and it is supposed to take you to a page to edit that item. I have the id sent in

[PHP] Re: Question about using session and logging out

2003-01-17 Thread Bobby Patel
I believe there something (a meta tag?) called meta-refresh or just refresh. But I believe you have to set the refresh interval. and if you set the interval to small it might eat your server's resources. OR I just thought of this, sometimes when you get to a page (usually with forms?) it says

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Rick Emery
Show us your code - Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list [EMAIL PROTECTED] Sent: Friday, January 17, 2003 4:05 PM Subject: [PHP] $HTTP_GET_VARS I am following an example in a book and have run into a problem with a script that I am trying to run

Fw: [PHP] Number Sign in String Variables

2003-01-17 Thread Rick Emery
I have data that have #, so that is not the problem. Show us more code AND your database structure. - Original Message - From: Joab Ben Stieglitz [EMAIL PROTECTED] To: Sent: Friday, January 17, 2003 2:25 PM Subject: [PHP] Number Sign in String Variables I have a MySQL database that

Fw: [PHP] Re: Question about using session and logging out

2003-01-17 Thread Kevin Stone
Don, The only method that I have discovered to protect the login against the back-button is to validate the session at the top of each and every protected page. Forgive the psuedo code.. ? if active session { // validate privs for this page // session start }else{ // logout } ?

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Mike Tuller
Nevermind. When copying my code to show you I noticed I have HTTP_GET_VARS, instead of $HTTP_GET_VARS, and now everything works. Time to go home I guess. On Friday, January 17, 2003, at 04:22 PM, Rick Emery wrote: Show us your code - Original Message - From: Mike Tuller [EMAIL

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Matt
- Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list [EMAIL PROTECTED] Sent: Friday, January 17, 2003 5:05 PM Subject: [PHP] $HTTP_GET_VARS I am following an example in a book and have run into a problem with a script that I am trying to run under PHP 4.3.0.

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Jim Lucas
checkout the most recent version of the help documents from php.net. it will tell you. something to do with $_GET, i think... Jim - Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list [EMAIL PROTECTED] Sent: Friday, January 17, 2003 2:05 PM Subject: [PHP]

[PHP] frame problem

2003-01-17 Thread Kiswa
What da fuck. Been trying like forever to get a script to automaticly update the framespage from inside one of the frames. My goal is to reset all the frames to their original state Can anybody help me! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] sending sms messages from the webpages

2003-01-17 Thread Denis L. Menezes
Hello friends. Any idea which is the best way to send many sms messages from a web page? Any good gateways or service providers? Thanks Denis

[PHP] PUT uploads

2003-01-17 Thread Chris Jarecki
Hi everyone. I'm trying to get my PUT method upload to work. I tried the using the script from the manual, but it creates an empty file. ?php /* PUT data comes in on the stdin stream */ $putdata = fopen(php://stdin,r); /* Open a file for writting */ $fp = fopen(myputfile.ext,w); /* Read the

[PHP] PDF

2003-01-17 Thread Brian McGarvie
I'm looking to find out if PHP has the ability to do this... OK I'm looking for a solution that could do the following. We require to generate PDF files that can then be emailed or printed posted to clients. I can create PDF Files from scratch using PDFLib. What we will require to do though

[PHP] Re: [PHP-WIN] PDF

2003-01-17 Thread Dash McElroy
If the PDF forms you print on top of are forms, you can use FDF (Forms Data Format) to fill out the form. There are several FDF options. One is to use Adobe's FDF program thingie. Others are listed in the comments on this page (http://www.php.net/manual/en/ref.fdf.php). I used one of the ones

Re: [PHP] Re: Question about using session and logging out

2003-01-17 Thread Stanislav Skrypnik
Hi Kevin, I don't well understand this part: if active session { // validate privs for this page Can you give small example? TIA, Stas Kevin Stone [EMAIL PROTECTED] wrote in message 019501c2be78$4ad0dc30$6601a8c0@kevin">news:019501c2be78$4ad0dc30$6601a8c0@kevin... Don, The only method

[PHP] Gridwidget - javascript

2003-01-17 Thread Nico Jansen - NiRo IT Consultants B.V.
Hi all, I'm trying to write a grid widget in php. When the user changes the value of a cell the totals must be recalculated at the client side. I can write a javascript when I use simple variables like A1, B1. tdinput type=text name='A1' SIZE=5 MAXLENGTH=5 onChange=njrecalculate()/td tdinput

RE: [PHP] Re: Question about using session and logging out

2003-01-17 Thread Vladislav Kulchitski
I think the method Kevin mentioned is the best. In other words, on every secure page you have a script that checks is a session registered. IF it is, it lets you go through and execute the rest of the script if not, simply tells you to login that's it. Very simple, if interested I can show

[PHP] PHP Encoders and GPL License

2003-01-17 Thread [-^-!-%-
Food for thought: As I look through the Zend website, and applaud their efforts to create 'protected' php applications, I can't help but wonder about the impact (or lagality) or their efforts. Doesn't the use of the Zend Encoder (or any other PHP Encoders out there) violate the GPL License or

Re: [PHP] Re: Question about using session and logging out

2003-01-17 Thread Stanislav Skrypnik
Well then pseudo-code a bit not correct; I think it should be like: ? // session start if session registerred { // Do whatever you need } else{ // logout } ? But what about such case: Let we have 3 pages: 1) login page(user enters credentials and redirected to page2) 2) secure page (where we

RE: [PHP] frame problem

2003-01-17 Thread John W. Holmes
What da fuck. Been trying like forever to get a script to automaticly update the framespage from inside one of the frames. My goal is to reset all the frames to their original state Can anybody help me! Wash your mouth out with soap and go learn Javascript... ---John Holmes... -- PHP

RE: [PHP] Number Sign in String Variables

2003-01-17 Thread John W. Holmes
I have a MySQL database that includes data with the # sign in some data fields. My PHP script pulls the data out of the database fine, but when I got to write back to the database, I get errors because the string gets truncated at the # sign. For example: $query = INSERT INTO

[PHP] Meta Refresh Question (PHP)

2003-01-17 Thread Edson Waite
Hi All, Can anyone see a problem with this? ?php $TrialID = $colname_earlytour + 1; if ($TrialID = 5) { $NewID = $TrialID; $Page = test } else { $NewID = 1; $Page = newpage } ?

Re: [PHP] PHP Encoders and GPL License

2003-01-17 Thread Rick Widmer
At 04:45 PM 1/17/03 -0800, [-^-!-%- wrote: Since PHP itself is open source, then wouldn't that prohibit a developer from encoding any PHP product? Please correct me, if I'm wrong. I'm just curious. GPL isn't the only way to license open source. PHP is not GPL for just that reason. See the

RE: [PHP] Meta Refresh Question (PHP)

2003-01-17 Thread Timothy Hitchens \(HiTCHO\)
It runs when you fix your (removed URL's and line endings) what is it not doing? Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Edson Waite [mailto:[EMAIL PROTECTED]] Sent: Saturday, 18 January 2003 11:09 AM To: [EMAIL

RE: [PHP] Meta Refresh Question (PHP)

2003-01-17 Thread John W. Holmes
Can anyone see a problem with this? Yes. ?php $TrialID = $colname_earlytour + 1; if ($TrialID = 5) { $NewID = $TrialID; $Page = test Here... } else { $NewID = 1; $Page =

RE: [PHP] Making alternate rows of different colour

2003-01-17 Thread Daevid Vincent
?php $bgcolor = ($i % 2 == 0) ? BGCOLOR='#E3E3E3' : ; ? TR?=$bgcolor? Can someone please help me with the code? $cols = array('#ff','#00ff00'); $i = 0; while(your_loop_to_output_each_row) { echo 'tr

RE: [PHP] Sessions or Cookies?

2003-01-17 Thread Daevid Vincent
Agreed. Sessions are much more secure and convienient to use too. Since it's not reliant on the client to have cookies enabled, that's another benefit. Plus it's MUCH harder for a client to spoof/alter a session variable if you use the $_SESSION['myvar'] -Original Message- From: Chris

[PHP] PHP Review Site

2003-01-17 Thread Stephen
Hello, I was just wondering if there were any PHP review sites that review free and paid scripts? If so, where? Thanks,Stephen Cratonhttp://www.melchior.us "What's the point in appearance if your true love, doesn't care about it?" -- http://www.melchior.us -- PHP General Mailing List

RE: [PHP] PHP Encoders and GPL License

2003-01-17 Thread Sean Malloy
As far as I understand it, the GPL License states that the source code of any product created from an open source solutions, or is derived from the work of an open solutions, must be made availabe to all users. no. Any modifications made to the PHP source code must be made available to

RE: [PHP] PHP Review Site

2003-01-17 Thread Timothy Hitchens \(HiTCHO\)
Please send plain text to e-mail lists NOT html: Hmm now let me think: http://www.hotscripts.com/ Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Saturday, 18 January 2003 11:40 AM To: PHP

Re: [PHP] Meta Refresh Question (PHP)

2003-01-17 Thread Edson Waite
Thanks Guys, That took care of it. I was also missing $ in the meta tag line before NewID. Thanks again, Ed Waite Timothy Hitchens ) [EMAIL PROTECTED] wrote in message 004b01c2be8e$f2d42ca0$0500a8c0@bambino">news:004b01c2be8e$f2d42ca0$0500a8c0@bambino... It runs when you fix your (removed

Re: [PHP] frame problem

2003-01-17 Thread Justin French
1. this has nothing to do with PHP 2. this has nothing to do with PHP 3. you could call a frameset html page with a href=frameset.html target=_top 4. you could set individual frames to different sources from one link with javascript -- but you'd have to consult a JS list :P Justin on

  1   2   >