[PHP] Re: preg_match or not?

2002-07-06 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 do

[PHP] Re: preg_match or not?

2002-07-06 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 > pe

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

2002-07-06 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 t

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

2002-07-06 Thread Naintara Jain
You can use both JavaScript and PHP. Initially use PHP to get your data, you can use 13 arrays to store this data. 1st array stores the options for the 1st list. The other 12 arrays can store options related to each item of the 1st list/array. Use JavaScript (client-side scripting, faster) to pop

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

2002-07-06 Thread Alberto Serra
Jeremy Bowen wrote: > Hey, > > I have looked in PHP manual but I cannot seem to find what I am looking for. > > I have a very large form that I need to be able to mail. I just don't want > to have to code all of the field into my mail() function. > > Thanks, > > Jeremy > > ðÒÉ×ÅÔ! *IF* the

[PHP] preg_match or not?

2002-07-06 Thread Steve Fitzgerald
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 followed by two more digits. My eyes are now swimming and I just can't seem to ge

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

2002-07-06 Thread César Aracena
I suppose this is not the answer you are looking for, but it's the only one a newbie like me knows. Try to build a $body variable and pass it to the mail() function. Try this: $from = $sender_field; $subject = $subject_field; $body = $form_field1; $body .= $form_field2; $body .= $form_field3; $

Re: [PHP] Thanks -> Actually POSTING without javascript

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! > an image of brintney spear and a text on it telling the user to click on > sounds appealing to you? ;) LOLOL yes, something like that :) when the second execution fails (that is, the refresh META sends back no data on the POST channel) we show the user a form with the local logo,

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

2002-07-06 Thread B.C. Lance
you could loop through $_POST (assuming you are using a post action) to extract the value out. e.g. $arr = array_keys($_POST); for ($i = 0; $i < count($arr); $i++) { $msg.= "{$arr[$i]}: {$_POST[$arr[$i]]}\r\n"; } echo $msg; b.c. lance Jeremy Bowen wrote: > Hey, > > I have looked in PHP ma

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

2002-07-06 Thread César Aracena
As Alberto says, PHP has to be used to do such thing ONLY when Java is not acceptable. There are many JavaScript snippets out there that do such things. Most of them are called *DOUBLE COMBO* but as I recently found out in this list, and from a similar question I had, is NOT so simple for PHP to f

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

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Peter Goggin wrote: > Can this be done using only PHP or do I need to use Javascripts? managing this in PHP should be considered *only* when jscript is not available. It's a matter of load distribution. When doing client server applications (like the web is) you shall always remember

Re: [PHP] Thanks -> Actually POSTING without javascript

2002-07-06 Thread B.C. Lance
yes. now its clearer. hm... but i can't think of submitted the information if javascript is off on the client browser. unless you stick in a button telling the user to hit it if the page do not bring him to another after a specific timing. a button probably don't look presentable. use an image

[PHP] Mailing all the elements of a form

2002-07-06 Thread Jeremy Bowen
Hey, I have looked in PHP manual but I cannot seem to find what I am looking for. I have a very large form that I need to be able to mail. I just don't want to have to code all of the field into my mail() function. Thanks, Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscr

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

2002-07-06 Thread Peter Goggin
I have two related tables. The first has about 12 records, each of which is related to about 12 records in the second table. I want to have two interconnectedt dropdown list fields. The fisrt is used to select from the first table and when the value has been selected, use it to determine the cont

Re: [PHP] Having more problems

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Shiloh Madsen wrote: > > $LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass); > if (! $LoginDB) { > print "Unable to connect to the database server at this time."; > exit(); > } else { This can be just: $LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass) or die('Unable to connect t

Re: [PHP] Thanks -> Actually POSTING without javascript

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! B.C. Lance wrote: > hm... how about sticking couple of iframes that will load the piece of > javascript and have each of the javascript in the iframe firing at > different time? i suppose at least 1 copy of javascript will be there to > do the intended work. I realize I was being obsc

[PHP] Having more problems

2002-07-06 Thread Shiloh Madsen
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 page I am working on. When I try to bring up the page in a browser, I just get a white page, instead of having the HTML display. Anyone able to tell me why?

Re: [PHP] Thanks

2002-07-06 Thread B.C. Lance
hm... how about sticking couple of iframes that will load the piece of javascript and have each of the javascript in the iframe firing at different time? i suppose at least 1 copy of javascript will be there to do the intended work. Alberto Serra wrote: > It is there already. My problem is to

Re: [PHP] Thanks

2002-07-06 Thread Alberto Serra
B.C. Lance wrote: > you might wanna fire that javascript using onload from the body tag. > that kinda assure the page is loaded successfully before the event takes > off. ðÒÉ×ÅÔ! It is there already. My problem is to do it something that will save my *ss in case jscript is *NOT* there. So it

Re: [PHP] Thanks

2002-07-06 Thread B.C. Lance
you might wanna fire that javascript using onload from the body tag. that kinda assure the page is loaded successfully before the event takes off. Alberto Serra wrote: > I already have that and it works fine. The problem is when jscript is > not working (or missing). I was trying to build up s

Re: [PHP] Thanks

2002-07-06 Thread Alberto Serra
B.C. Lance wrote: > not from meta refresh. but javascript could do that. set a timeout that > will fire the submit event after 2 seconds. that will work. > > b.c. lance > ðÒÉ×ÅÔ! I already have that and it works fine. The problem is when jscript is not working (or missing). I was trying to b

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
I just explained this all in great detail, so please read that. I don't just think you are confused; I am positive you are. However, I did notice that you are the same person who gives many good answers to other peoples' questions. This giving of your time to be helpful is commendable, and I a

[PHP] Привет!

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! I detach this from current thread as it has nothing to do with it :) now: ðÒÉ×ÅÔ! means "hello" (pronounce "preevjet", accent goes on je) ÐÏËÁmeans "bye" (pronounce "paka" accent on last a) The rest is just my name (Alberto, I am italian as of original nationality) and the

Re: [PHP] Thanks

2002-07-06 Thread B.C. Lance
not from meta refresh. but javascript could do that. set a timeout that will fire the submit event after 2 seconds. that will work. b.c. lance Alberto Serra wrote: > ðÒÉ×ÅÔ! > > Probably a stupid question. Is there anyway to force POSTing a form from > the refresh META? > > > > IMHO that is

Re: [PHP] HTTPS vs. HTTP ? - the weakest link

2002-07-06 Thread B.C. Lance
sorry to barge in. but the weakest link ain't in ssl. doesn't really matter how secure vs insecure it is. you can come up with the most secure technology in the whole world that no one can break into. the weakest link lies on the user/customer themselves. you just need a trojan horse in their

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
Alberto Serra wrote: > ðÒÉ×ÅÔ! I've always wondered what this is exactly. I'm going to assume it's a friendly greeting. :) > Chris Shiflett wrote: > >> Richard, >> >>> Do you really believe that for $200 (or $119, or $500) that they >>> "proven" >>> themselves trustworthy? >> > > LOL no, I

[PHP] Posting with refresh META

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Sorry, I forgot writing a intelligible subject on previous posting :( So I repeat. Probably a stupid question. Is there anyway to force POSTing a form from the refresh META? IMHO that is NOT possible, but maybe I am wrong. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=

Re: [PHP] Thanks

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Probably a stupid question. Is there anyway to force POSTing a form from the refresh META? IMHO that is NOT possible, but maybe I am wrong. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× -- @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M

Re: [PHP] Re: FTP commands

2002-07-06 Thread Jose Arce
>From: "Richard Lynch" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [PHP] Re: FTP commands >Date: Sat, 06 Jul 2002 17:02:20 -0500 > > > > >Hi, i'm making a script, that logs some ftp characteristics, like resume > >support and stuff...i try using ftp_site(), but it's not working > > > >

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
>Honestly, I think you need to just buy on book on this. I think I >explained things pretty clearly, and your confusion now seems to be >based more on a lack of trusting my explanation more than anything. I >can't imagine how you could still be this confused. What I can't imagine is how confus

[PHP] Retrieving/Displaying hyperlinked images with PHP

2002-07-06 Thread markbm
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 database. However, I cannot find any sample

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Chris Shiflett wrote: > Richard, >> Do you really believe that for $200 (or $119, or $500) that they "proven" >> themselves trustworthy? LOL no, I don't. As a matter of fact crooks usually have more money in their pockets than honest people do, so it's highly possible that a crook will

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Jamie Novak wrote: > http://myserver/index.php?dir2=somedirectory > > In 4.1.2, if I echo $dir2 at the beginning of the script just for > testing, it will echo the value of the variable without issue. In > 4.2.1, the variable never appears to get set at all, although it does > show up j

[PHP] Re: Figuring Out the Best Day in stats program

2002-07-06 Thread JJ Harrison
Here is my code: When I execute it I get this error: Warning: Supplied argument is not a valid MySQL result resource in C:\Inetpub\TecEco_PHP\stats_interface\summary.php on line 75 You have an error in your SQL syntax near ''year', time), extract('month', time) order by monthly_view desc limit

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Jamie Novak
On 07/06, Jason Wong rearranged the electrons to read: > php.ini > register_globals Well, that was simple and stupid. :/ Thank you for the prompt reply. Obviously, that did the trick. - Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] I would like to ask about Photo Upload in mysql and reteive problem .

2002-07-06 Thread Jason Wong
Jimmy Lam said: > I am a new bie here and I would like to know more about coding in > upload photo file by client side and store in mysql database. also , > how can I show the photo in the HTML CODING embeded and get the > image directly from the database ? thanks . could you mind provide > s

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Jason Wong
Jamie Novak said: > On one of my machines, I'm running PHP 4.1.2. On another machine, I'm > running 4.2.1. The script I'm having problems with runs fine under > 4.1.2, but fails to work under 4.2.1. > http://myserver/index.php?dir2=somedirectory > In 4.1.2, if I echo $dir2 at the beginning of

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
Richard, Honestly, I think you need to just buy on book on this. I think I explained things pretty clearly, and your confusion now seems to be based more on a lack of trusting my explanation more than anything. I can't imagine how you could still be this confused. I will try to explain once m

[PHP] issue with script after php upgrade

2002-07-06 Thread Jamie Novak
Firstly, I apologize if this has already been asked in the past; I've not been a regular reader of this list and I couldn't find mention of my problem after a cursory search of the archives (which are a bit overwhelming to search exhaustively)... On one of my machines, I'm running PHP 4.1.2. On

Re: [PHP] Error: Parse error: parse error, unexpected $ in...

2002-07-06 Thread Jose Arce
that error appears many times to me...you can show some code so we all can see what's wrong, but i've solved it adding a }, as i told you, manny times it has appear to me, and that's the way i've solved it :D >From: Shiloh Madsen <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [PHP] Error:

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread James Drabb
On Sat, 06 Jul 2002 15:27:47 -0500 "Richard Lynch" <[EMAIL PROTECTED]> wrote: > Do you have *ANY* idea how quickly: > > "select * from MyTable" can be parsed and an execution plan selected?! > > It's CHUMP CHANGE in time. > > *ONLY* if your SQL is so incredibly complicated that you can't even

[PHP] Error: Parse error: parse error, unexpected $ in...

2002-07-06 Thread Shiloh Madsen
Hi all. Im getting the above mentioned error: *Parse error*: parse error, unexpected $ in *c:\program files\apache group\apache\htdocs\login.php* on line *38* when I try to view the page I just created. As a forewarning, I am very new to PHP, so I may have done something stupid, and if it matt

Re: [PHP] iptables logging

2002-07-06 Thread James Drabb
Opps, I sent to the wrong list : ) Sorry, Jim Drabb -- James Drabb JR - Programmer Analyst - Orlando, FL - [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] PHP/MySQL and parameterized queries

2002-07-06 Thread Henry
Does MySQL support parameterized queries (e.g., "INSERT INTO table (Col1,Col2) VALUES (?,?)"), and if so, is there a PHP function that allows you to create and attach parameters to MySQL queries? Thanks, Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] iptables logging

2002-07-06 Thread James Drabb
Hey group, I have set up iptables based on the BLFS book. I have a rule like: # Log everything else: What's Windows' latest exploitable # vulnerability? $IPTABLES -A INPUT -j LOG --log-prefix "FIREWALL:INPUT " The output is going into /var/log/kern.log is there anyway I

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

2002-07-06 Thread Richard Lynch
>I have to convert a perl script to PHP trying to do so I get negative >values from hexdec(), If I use (int)hexdec() the numbers aren't negative >anymore, but they do not add up to what they should. >From the manual: http://php.net/hexdec "The largest number that can be converted is 7fff or

[PHP] Re: Help w/ sessionl variables plz!

2002-07-06 Thread Richard Lynch
>The following PHP script doesn't pass $course ("statistics") to the next >script. Why? > >// file: "root/reg_users_2.php", updated: 07/06/02 >set_time_limit(300); >session_start(); >session_register("course"); >$course="statistics"; >header ("location:estadisticas/contents.php"); >flush(); >exi

[PHP] Re: FTP commands

2002-07-06 Thread Richard Lynch
> >Hi, i'm making a script, that logs some ftp characteristics, like resume >support and stuff...i try using ftp_site(), but it's not working > >I want to send a command like REST, but ftp_site() send the command like >this: SITE REST, with the SITE before the command...any way to do it? >Thx :D

[PHP] Re: phpBB Info

2002-07-06 Thread Richard Lynch
>I wanna be able to do some stuff, which involves getting data from my phpBB >board. > >Member Count: (this section should autoupdate) select count(*) from some_table_whose_name_I_do_not_know_but_you_can_look_up_in_phpMyAdmin >Number Of Forums: (this section should autoupdate) select count(*) f

[PHP] Re: Figuring Out the Best Day in stats program

2002-07-06 Thread Richard Lynch
>I have been going fine in a Web Stats program until now. > >How can I figure out which day has had the most records(ie visitors) >inserted? > >There is a time column which has unix timestamp of when the record was >inserted. > >The best I can think of currently is: >To use a while loop to repeate

[PHP] Re: help help help!!!!!!pls........

2002-07-06 Thread Richard Lynch
>Re: help help help!!pls First, use a valid subject. Experts will simply hit "Delete" for such vague subjects as "Help" >I have multiple check boxes ...and I gave the single name to all check >boxes. > >If I post to my php script I am not getting all the values as an >array.

[PHP] Re: mail help, and php.ini help.

2002-07-06 Thread Richard Lynch
>i`ve coded a mass-mailer for my site but the $from header doesn't work. It works for about a million others. Show us source code. >when i get a test message back from it it says from "Unprivileged user" = >not what i set it to. That sounds more like email bouncing... But it could be your sen

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
>>But unless you paid the $200 to get it from a CA, surfers will see a nasty >>(and totally inaccurate/misleading) warning about how insecure it is. >> > >They should. To do otherwise would be inaccurate and misleading. > >>The transmission is no less secure -- It's that the web-server on the othe

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread Richard Lynch
>Stored procedures are like any other type of programming construct. >You can do them right or you can do them wrong. Yeah, and GOTO is perfectly fine... In the right place. >When making a stored >procedure you should stick to ansi SQL as much as possible. All my SQL was so dirt-simple, it coul

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
>On Fri, 5 Jul 2002, Richard Lynch wrote: >> But unless you paid the $200 to get it from a CA, surfers will see a nasty >> (and totally inaccurate/misleading) warning about how insecure it is. > >It is easy to launch a man-the-middle attack against a session being >initiated between a client and a

[PHP] FW: upload file size

2002-07-06 Thread Richard Lynch
>I can't seem to upload file bigger than 5M even if I set the >upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the >script. What's am I missing here? Is the temporary upload directory won't >handle file this size? Please give me some pointers here. TIA. Does show a 20 M limit?

FW: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Richard Lynch
>:-) Don't tell me if you're gonna use it for production!!! Depends on your user-base. If all of them know that the only difference is $119, and all of them inherently trust your web-server and domain name to be correct, there is no more risk with the free one. It's a true shame that the gener

[PHP] Help needed with hexdec();

2002-07-06 Thread frank
Hi Guys, I have a problem wich I hope has been solved by someone :-) Here's the deal, I have to convert a perl script to PHP trying to do so I get negative values from hexdec(), If I use (int)hexdec() the numbers aren't negative anymore, but they do not add up to what they should. Here's t

Re: [PHP] suppressing errors with "@"

2002-07-06 Thread Uri Even-Chen
Thanks! I also think it might be a bug. I reported it as a bug report. Uri. Miguel Cruz wrote: > > On Sat, 6 Jul 2002, Uri Even-Chen wrote: > > I tried to suppress warnings in isset expressions (Uninitialized string > > offset warnings).

[PHP] Re: Uninitialized string offset

2002-07-06 Thread Uri Even-Chen
Thanks for the advice! I understand the problem now. I think they added the Uninitialized string offset in Version 4.1.0 (see ). That's why I didn't get this warning before. Anyway, I think I'll just add a "@" sign to suppress warnings. I tried it last nights an

[PHP] Help w/ sessionl variables plz!

2002-07-06 Thread Anthony Rodriguez
The following PHP script doesn't pass $course ("statistics") to the next script. Why? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to cast objects in arrays.

2002-07-06 Thread Anas Mughal
Thanks to everyone!!! I have figured it out... Anas Mughal <[EMAIL PROTECTED]> wrote: I have a function getRow() that returns a new instance of an object called IvActivity. I insert this new instance into $list. I need to call getTitle method on each of the inserted objects. However, I keep

Re: [PHP] Compiling PHP

2002-07-06 Thread Chris Hewitt
Leon, This was discussed on this list at length, ending about a week or so ago. Please look in the archives for it. There was a lot of detail which may be useful to you. Basically the consenus answer was no. Regards Chris Leon Mergen wrote: >Hello, > >I'm currently camping with a problem...

[PHP] FTP commands

2002-07-06 Thread Jose Arce
Hi, i'm making a script, that logs some ftp characteristics, like resume support and stuff...i try using ftp_site(), but it's not working I want to send a command like REST, but ftp_site() send the command like this: SITE REST, with the SITE before the command...any way to do it? Thx :D _

[PHP] Re: [PHP-GTK] Cannot enable extensions. Why?

2002-07-06 Thread George Hester
All fixed. Install the new PHP using the installer to get mappings set (almost) correctly in IIS 5. Make sure PHP works now. Then rename C:\php to C:\php01. Download the 5MB package with the components. Then rename the directory that conatins the files to php and put in C drive. Leave the ini

Re: [PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Chris Garaffa
That's exactly what I needed to do... Thanks Devrim and Chris for your quick help. AhhhŠ back to coding! -- Chris Garaffa #!/usr/local/lib/php $contact_info["Name"] = "Chris Garaffa"; $contact_info["Email"] = "[EMAIL PROTECTED]"; $contact_info["Work"] = "[EMAIL PROTECTED]"; $contact_info["ce

Re: [PHP] phpBB Info

2002-07-06 Thread Stuart Dallas
On Saturday, July 6, 2002 at 5:35:26 PM, "BrettM" wrote: > I wanna be able to do some stuff, which involves getting data from my phpBB > board. > Member Count: (this section should autoupdate) > Number Of Forums: (this section should autoupdate) > Highest Post Count: (this section shouldauto upd

Re: [PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Chris Allen
Reinstall php. Did you do that when you upgraded Apache? For static link you need to re-install. For DSO not sure I do not run my systems that way. I havent heard of anyone else having problems. I will be updating myself this weekend so... Also you need to have the apache server "handle" the php

Re: [PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Devrim GUNDUZ
Hi, On Sat, 6 Jul 2002, Chris Garaffa wrote: > OK, so I upgraded to Apache 1.3.26 on my RedHat machine after the security > stuff last week. Saved my old httpd.conf file, just in case, and I did need > it. Unfortunately, neither the old file, nor the new file, nor the new file > modified to inc

[PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Chris Garaffa
OK, so I upgraded to Apache 1.3.26 on my RedHat machine after the security stuff last week. Saved my old httpd.conf file, just in case, and I did need it. Unfortunately, neither the old file, nor the new file, nor the new file modified to include PHP support, work. I added: LoadModule php4_module

[PHP] phpBB Info

2002-07-06 Thread BrettM
I wanna be able to do some stuff, which involves getting data from my phpBB board. Member Count: (this section should autoupdate) Number Of Forums: (this section should autoupdate) Highest Post Count: (this section shouldauto update((member) with (post count) posts)) Most Replied to topic: (this

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
Richard Lynch wrote: >In the HTTPS exchange, however, extra key-pairs are generated on the fly, >and the private half of the new pair are exchanged, encrypted with the >public halfs of the old pairs, so that the server and the browser are using >a UNIQUE public/private pair so that nobody can sno

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

2002-07-06 Thread Devrim GUNDUZ
Hi, On Fri, 5 Jul 2002, 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. > Surely PostgreSQL!!! If you aim is creating a "database", then use PostgreSQL. if you

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Chris Shiflett
Richard Lynch wrote: >You can create your own SSL key pair very, very, very easily... > >But unless you paid the $200 to get it from a CA, surfers will see a nasty >(and totally inaccurate/misleading) warning about how insecure it is. > They should. To do otherwise would be inaccurate and mislea

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread James Drabb
On Sat, 06 Jul 2002 01:16:28 -0500 "Richard Lynch" <[EMAIL PROTECTED]> wrote: > > I'm using a postgres datbase for my PHP project, how do I make stored > >procedures? Or if no SPs then what would be recomendation for building > >simple/reuseable "Put" and "Get" procedures for my data? > > Wel

[PHP] Compiling PHP

2002-07-06 Thread Leon Mergen
Hello, I'm currently camping with a problem... I have written a PHP application for a client of mine, however, I do not want have him seeing the source code. I know Zend has the Zend Encoder, however, this piece of software costs $2400 and since this is a one-time encoding request, I think this i

[PHP] Figuring Out the Best Day in stats program

2002-07-06 Thread JJ Harrison
I have been going fine in a Web Stats program until now. How can I figure out which day has had the most records(ie visitors) inserted? There is a time column which has unix timestamp of when the record was inserted. The best I can think of currently is: To use a while loop to repeatedly query

[PHP] Thanks

2002-07-06 Thread Skyhawk
Thanks "Val Petruchek" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > FROM THE MANUAL: > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); >

Re: [PHP] How to copy a transparent png over an existing image usingGD?

2002-07-06 Thread Rasmus Lerdorf
You need to use ImageCopyResampled() instead. And don't forget to turn on alpha blending beforehand using ImageAlphaBlending($im,true); -Rasmus On Sat, 6 Jul 2002, [ISO-8859-1] Victor Spång Arthursson wrote: > Hi! > > I'm trying to copy a transparent (copyright) image over an existing > using

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Pekka Saarinen wrote: > Also, many virtual hosts share MySQL server(s), so offering a choice to > use PHP for pagination and sorting on "own server RAM/CPU" may by > beneficial. I also believe that anything that produces less load to > MySQL is good. Absolutely true. First time a cust

Re: [PHP] help help help!!!!!!pls........

2002-07-06 Thread Alberto Serra
Balaji Ankem wrote: > I have multiple check boxes ...and I gave the single name to all check > boxes. > > If I post to my php script I am not getting all the values as an > array.I am getting only one value(last value). Correct. Since they are all named in the same way, the last one

Re: [PHP] mail help, and php.ini help.

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Greg Scotts wrote: > $to # > $from # > $subject # > $message # > mail($to, $from, $subject, $message) It always worked for me... you obviously checked variable content, did you? And I am not sure I got you right. Mail gets sent, it's just the sender address being wrong? > Also, i was

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

2002-07-06 Thread Ilia A.
On July 5, 2002 07:54 pm, Pete James wrote: > "Ilia A." wrote: > > The biggest annoyance I've come across is > > the fact that while using PostgreSQL with PHP is that when you fetch a > > row you must specify the number of the result, while in MySQL, that is > > handled internally by PHP for you.

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-06 Thread Pekka Saarinen
At 7/6/2002, you wrote: >SORT BY and ORDER by I mean LIMIT and ORDER BY of course Time for some more coffee. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-06 Thread Pekka Saarinen
At 7/5/2002, you wrote: > >I'm working on a way to pull menus/pages from a database. Currently I have > >this working on 2 levels - Topic headers & actual page titles - & it prints > >it out fairly nice & doesn't take long to load. What I need to do is add a > >level between the 2, a sub-header.

[PHP] help help help!!!!!!pls........

2002-07-06 Thread Balaji Ankem
Hi dear friend, I have multiple check boxes ...and I gave the single name to all check boxes. If I post to my php script I am not getting all the values as an array.I am getting only one value(last value). = function checkitall() { v

[PHP] mail help, and php.ini help.

2002-07-06 Thread Greg Scotts
i`ve coded a mass-mailer for my site but the $from header doesn't work. when i get a test message back from it it says from "Unprivileged user" = not what i set it to. How would i set it out using the syntax: $to # $from # $subject # $message # mail($to, $from, $subject, $message) _

Re: FW: [PHP] session problem

2002-07-06 Thread B.C. Lance
you might wanna check if register global is turned on or off. Naintara Jain wrote: > One thing I forgot to mention is that the same code works perfectly on the > web server (running on Apache and a Unix flavor). > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROT

[PHP] Making sessions last longer?

2002-07-06 Thread Leif K-Brooks
Is there any way to make sessions last longer without access to php.ini? I know how to change the cookie length, but not how long the session is stored on the server. Is this possible? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FW: [PHP] session problem

2002-07-06 Thread Naintara Jain
One thing I forgot to mention is that the same code works perfectly on the web server (running on Apache and a Unix flavor). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] t]On Behalf Of Naintara Jain Sent: Saturday, July 06, 2002 6:09 PM To: Php-General@Lists. Php

[PHP] Charset/language request headers. Yes, it's true :(

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! Doing multiligual sites presumes you can somehow understand what the client expects from you. Browsers all are full of language settings, but... The HTTP specification is very little language negotiation oriented in itself (this is probably a consequence of its having started out in a

[PHP] session problem

2002-07-06 Thread Naintara Jain
I am storing some values in session variables. The behavior of the session is pretty unpredictable. On the first page I begin with: session_name("aname") session_start() session_register("var1","var2") In another page I check for existing value of session variable "var2". In the next page I have

[PHP] Charset/language request headers

2002-07-06 Thread Alberto Serra
ðÒÉ×ÅÔ! I am not too familiar with the way language and charset requests are coupled by browsers. After processing the headers I get this two arrays (based on my personal Mozilla settings). charset -> Array ( [0] => KOI8-R [1] => utf-8 [2] => * ) language -> Array ( [0] => ru [1] => en [2] =>

[PHP] How to copy a transparent png over an existing image using GD?

2002-07-06 Thread Victor Spång Arthursson
Hi! I'm trying to copy a transparent (copyright) image over an existing using GD, but can't get it to work… The copyright image is a png, and can be found here: . Does anyone either know how to perform this, or knows a link to some tutorial who explai

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

2002-07-06 Thread Zac Hillier
Hi All, 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 able to get a connection. When I run th

[PHP] Brand New Enviroment

2002-07-06 Thread César Aracena
Hi all. I know this is not entirely a PHP-related question, but most of you have been where I am now. I’m about to buy a used computer just for development purposes and I have a couple of questions before I close the deal. 1) It will probably be a Compaq Armada running a Celeron 600 and 256… D

RE: [PHP] Re: PHP Automatic Backup

2002-07-06 Thread César Aracena
Well, thanks for all the ideas. I will try to "communicate" with my host, but I'm sure they will go like "...is not possible unless Cobalt authorizes...". I also like the idea of making a hidden script that visitors will activate... C. > -Original Message- > From: Richard Lynch [mailto:[

Re: [PHP] Re: Sort with PHP or SQL?

2002-07-06 Thread Miguel Cruz
On Sat, 6 Jul 2002, Patrick Teague wrote: > $query = "SELECT * " . > "FROM Headers LEFT JOIN Pages ON (Headers.Header_ID=Pages.Header_ID) " . > "ORDER BY HeaderOrder DESC, Header, PageOrder DESC, PageTitle;"; > > Any ideas on optimizing this? DB stuff doesn't come near the top of things > I'm

Re: [PHP] HTTPS vs. HTTP ?

2002-07-06 Thread Miguel Cruz
On Fri, 5 Jul 2002, Richard Lynch wrote: > But unless you paid the $200 to get it from a CA, surfers will see a nasty > (and totally inaccurate/misleading) warning about how insecure it is. It is easy to launch a man-the-middle attack against a session being initiated between a client and a serve

Re: [PHP] help with eval problems...

2002-07-06 Thread Paul Roberts
On Fri, 5 Jul 2002, Kelly Meeks wrote: > If I had this information stored in a database field, > "> > > how could I assign it to a variable and output it? you have to ?> first to leave php mode so you can do $content_output = "logo.gig"; $code = ""; eval("?>$code"); which will echo the

  1   2   >