[PHP] How to print a mysql result

2002-09-07 Thread Chuck PUP Payne
Hi, I am having a problem with menu options being pass on to my database. Is there a way that I can see what is sql statement that is passing on to the database? Say maybe print $sql or something like that? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to print a mysql result

2002-09-07 Thread Adam Williams
echo $sql; Adam On Sat, 7 Sep 2002, Chuck PUP Payne wrote: Hi, I am having a problem with menu options being pass on to my database. Is there a way that I can see what is sql statement that is passing on to the database? Say maybe print $sql or something like that?

Re: [PHP] gmdate()

2002-09-07 Thread lallous
I got an idea to solve my problem. I'll make client side calculation. I'll set the user pick a future time and then calculate from the client side how many minutes exists between these two times, then pass the minutes difference to the server. Naintara Jain [EMAIL PROTECTED] wrote in message

[PHP] How to set the file premission by using CHMOD?

2002-09-07 Thread Bryan
Situation: I want to create a file to a directory, but the premission denied, how to solve this problem by using CHMOD? Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Enhancement of script

2002-09-07 Thread Ray Healy \(Data Net Services\)
Dear All I have recently downloaded a calendar from CST (which is no longer supported ) and I have made a few changes to the script. The calendar will be used to see when something is booked and you can assign messages to it as well which the general user cannot see. In this respects I have

Re: [PHP] Enhancement of script

2002-09-07 Thread Philip J. Newman
Looks good if your keen to shear the code we could have a tinkle with it and see if we can work it out. Phil - Original Message - From: Ray Healy (Data Net Services) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 07, 2002 10:11 PM Subject: [PHP] Enhancement of script

[PHP] Enhancement of script

2002-09-07 Thread Ray Healy \(Data Net Services\)
Dear All The calendar will be used to see when something is booked and you can assign messages to it as well which the general user cannot see. In this respects I have created 2 pages - welcome .php for the general viewer and admin_welcome for the updating of the calendar. What I would like to

[PHP] what's the latest version of PHPLib now?

2002-09-07 Thread xdrag
i can't visit http://phplib.netuse.de

php-general Digest 7 Sep 2002 11:55:16 -0000 Issue 1571

2002-09-07 Thread php-general-digest-help
php-general Digest 7 Sep 2002 11:55:16 - Issue 1571 Topics (messages 115578 through 115598): Re: Object composition and reference 115578 by: Dan Ostrowski email with html and images 115579 by: josh 115582 by: Manuel Lemos Re: php4 w/ apache2 using module

[PHP] Array - Match

2002-09-07 Thread N. Pari Purna Chand
I have $sub = abc; and $subs[0] = cde; $subs[0] = iyu; $subs[0] = abc; .. .. .. $subs[50] = xyx; How to find whether $sub matches with any one of $subs[$i] I have used a for loop but it is returning true when $subs[$i] = xabc. /Chandu

Re: [PHP] How to set the file premission by using CHMOD?

2002-09-07 Thread Brad Bonkoski
man chown (change ownership) (i.e. chown my_username:my_groupname directory) -or- man chmod (change permissions)(i.e. chmod uga+w file_name -or- chown 4777 file_name) -Brad Bryan wrote: Situation: I want to create a file to a directory, but the premission denied, how to solve this problem

Re: [PHP] Array - Match

2002-09-07 Thread Bas Jobsen
? $sub = abcd; $subs[] = cde; $subs[] = iyu; $subs[] = abc; $subs[] = xyx; $match=false; foreach($subs as $value) { if($sub==$value){$match=true; break;} } if($match) echo 'found!'; else echo 'not found!'; //or better use //for PHP 4 if(in_array($sub,$subs))echo 'found!'; else echo 'not

Re: [PHP] Problem with inserting values into database through php

2002-09-07 Thread timo stamm
Hi Olli, I think the query string is missing an ; Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using print instead of echo

2002-09-07 Thread Kevin Heflin
the example I have below.. I'm able to get working using the 'echo' command. But I would like to know how to format the same using the 'print' command. I am familiar with both. but with this one instance I am not sure how to format the print command correctly to get the same results as the

Re: [PHP] Sessions with register_globals = off

2002-09-07 Thread Mauricio Cuenca
Sessions are now being registered, but I have a problem unregistering them. This is the code that I'm using to test it: kill.php session_start(); print(ID = .$_SESSION['id']); //The value is printed print(PERMISOS = .$_SESSION['permisos']); //The value is printed

Re: [PHP] \n to BR Problem

2002-09-07 Thread Justin French
on 07/09/02 1:51 AM, N. Pari Purna Chand ([EMAIL PROTECTED]) wrote: $newstr = ereg_replace (\n, BR, $newstr); Instead, I think you'd have to escape the slash: \\n... but it's irrelevant, because there's a function that does this for you: $newstr = nl2br($newstr); Also, you should try to use

Re: [PHP] Link for downloading?

2002-09-07 Thread Justin French
http://www.zend.com/zend/trick/tricks-august-2001.php the stuff he does with mime types and headers is all relevant to what you want to do... Justin on 07/09/02 1:56 AM, Alex Shi ([EMAIL PROTECTED]) wrote: Thanks for your reply! Still have another question: How to use header() to generate

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

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

[PHP] Help! I will even Donate through Paypal, I only want to make a thumbnail of a picture through php code.

2002-09-07 Thread Kurtis Harper
Hi Gang, I am serious, I will send a donation (small- I am not a rich man :o) ) through PayPal, if someone is kind enough to help me out. What I need it to create a thumbnail of an uploaded picture. I am not fussy on how the PHP script accomplishes this as long as it works. I tried running

Re: [PHP] email with html and images

2002-09-07 Thread Justin French
I'd start by having a look at Manuel's class at phpclasses.org... called mimeMial or something... Justin on 07/09/02 9:32 AM, josh ([EMAIL PROTECTED]) wrote: Hey all I have seen many tutorials on sending HTML email, and sending email with attachments, but have found nothing on sending

RE: [PHP] Re: Proposal for securing PHP sessions

2002-09-07 Thread Dave at Sinewaves.net
You're going to be shutting out a lot of AOL users (bah! who needs em! ;p) if you do that, as AOL changes a user's IP address about as often as you read the word the... Dave -Original Message- From: M1tch [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 07, 2002 12:05 PM To: [EMAIL

[PHP] Credit Card Validation

2002-09-07 Thread Jeff Lewis
I know it's been posted here several times and I've looked through the archives but I just need something very simple for this. I have a form that already takes in user information but now before accepting the information, I'd like to pass the credit card information to a function and return

Re: [PHP] gmdate()

2002-09-07 Thread timo stamm
Huh? I think date() will return different values, but gmdate() will not, since it returns GM time. Lallous, maybe it is something about summertime/wintertime? Timo Am Freitag den, 6. September 2002, um 16:36, schrieb Naintara Jain: lets say, ServerOne has TimeZone GMT+2 ServerTwo has

[PHP] Re: Proposal for securing PHP sessions

2002-09-07 Thread M1tch
Why not just use IP? I created a nice system, whereby if your IP is changed (or someone is hacking your session), the session is destroyed, and the user must log in. Does not add much overhead either. Also, I built it using database (using my own session functions in savehandler), that stores

Re: [PHP] Re: Proposal for securing PHP sessions

2002-09-07 Thread Philip J. Newman
You could use a SUB NET (o; to block a group of users ie 202.*.*.* would kill most of New Zealand and Oz - Original Message - From: Dave at Sinewaves.net [EMAIL PROTECTED] To: PHPlist [EMAIL PROTECTED]; M1tch [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 8:34 AM Subject: RE: [PHP]

[PHP] Warning: Could not execute mail delivery program

2002-09-07 Thread Noah Spitzer-Williams
PHP Warning: Could not execute mail delivery program in /htdocs/... Any suggestions on how to fix this? - Noah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] contact list re-ordering (php/mySQL CMS design)

2002-09-07 Thread speedfreak
Dear guru's, Hit a problem while developing a CMS with php/mySQL. Part of this is a contact list and this works ok (add/edit/delete with insert/update/delete queries). Now the client has requested a new feature: ability to change the order in which the contacts are being presented in the public

Re: [PHP] Calculating Totals from table columns without a second query to the DB

2002-09-07 Thread timo stamm
Hi Jay, MySQL deserves some more respect. It's language is quite potent. Have you had a look on COUNT()? It is suited well for... well, counting. I would like to be able to sum up a collumns values already in MySQL. The following query will sum up all values of the column 'id': SELECT

[PHP] Proposal for securing PHP sessions

2002-09-07 Thread mar tin
Dear all: Until I read the article PHP Session security (http://www.webkreator.com/php/configuration/php-session-security.html) I haven't noticed how insecure PHP Sessions are. Basically there're 2 problems: *) It's possible to hijack a session if you know the SID (session id) 1) If

[PHP] Re: sending email with linefeeds

2002-09-07 Thread Manuel Lemos
Hello, On 09/06/2002 12:10 PM, Kai Hinkelmann wrote: Hi, we are sending plain-text-emails from php not using the mail-command but with port-operations. Everything works fine BUT outlook 2000 eats the linefeeds. We tried several things: copying the header from an original (functional)

Re: [PHP] using print instead of echo

2002-09-07 Thread Pekka Saarinen
At 9/7/2002, you wrote: the example I have below.. I'm able to get working using the 'echo' command. But I would like to know how to format the same using the 'print' command. I am familiar with both. but with this one instance I am not sure how to format the print command correctly to get the

Re: [PHP] Array - Match

2002-09-07 Thread Jed Verity
Hello Chandu, You can use in_array(needle, haystack) for this. For example, if (in_array(abc,$subs)) {item found, do stuff...} HTH! Jed On the threshold of genius, N. Pari Purna Chand wrote: I have $sub = abc; and $subs[0] = cde; $subs[0] = iyu; $subs[0] = abc; .. .. ..

Re: [PHP] contact list re-ordering (php/mySQL CMS design)

2002-09-07 Thread @ Edwin
I'm not sure if what you mean is something like this: Say, you have a table with 2 columns (1) id and (2) contact. And your table is populated in this way: id contact 1 a 2 b 3 c 4 d 5 e And, let's say that your id is auto_incremented. Also, the contacts are shown ORDER BY

[PHP] How to program very basic chat on PHP?

2002-09-07 Thread M
Hello, this question is about dynamic communication between browsers. I have a site to meet people (PHP/Mysql).These people have their profiles and pictures stored into the site. I would like to make some kind of chat (very single chat), so when people log into system, I can trace their

Re: [PHP] How to program very basic chat on PHP?

2002-09-07 Thread Philip J. Newman
You could create a scema, or module that is called with each page load, that checks for messages when the user is logged in. So when the message is stored into the databace, when the user loads the anypage while logged in it checks for new messages, and if the user has messages then the window

[PHP] Re: Help! I will even Donate through Paypal, I only want to makea thumbnail of a picture through php code.

2002-09-07 Thread Manuel Lemos
Hello, On 09/07/2002 12:55 PM, Kurtis Harper wrote: I am serious, I will send a donation (small- I am not a rich man :o) ) through PayPal, if someone is kind enough to help me out. What I need it to create a thumbnail of an uploaded picture. I am not fussy on how the PHP script

[PHP] Re: Warning: Could not execute mail delivery program

2002-09-07 Thread ¡Û
== [EMAIL PROTECTED] (Noah Spitzer-Williams) ªº¤å³¹¤¤´£¨ì: PHP Warning: Could not execute mail delivery program in /htdocs/... Any suggestions on how to fix this? - Noah check your php.ini file. if should be safe_mode = Off -- * Origin: LastLoveSongBBS

[PHP] Re: Credit Card Validation

2002-09-07 Thread Manuel Lemos
Hello, On 09/07/2002 06:03 PM, Jeff Lewis wrote: I know it's been posted here several times and I've looked through the archives but I just need something very simple for this. I have a form that already takes in user information but now before accepting the information, I'd like to pass the

Re: [PHP] Credit Card Validation

2002-09-07 Thread Garrick Linn
Check out http://www.analysisandsolutions.com/code/ccvs-ph.htm At 05:03 PM 9/7/2002 -0400, Jeff Lewis wrote: I know it's been posted here several times and I've looked through the archives but I just need something very simple for this. I have a form that already takes in user information but

[PHP] Re: Credit Card Validation

2002-09-07 Thread Manuel Lemos
Hello, On 09/07/2002 06:03 PM, Jeff Lewis wrote: I know it's been posted here several times and I've looked through the archives but I just need something very simple for this. I have a form that already takes in user information but now before accepting the information, I'd like to pass

[PHP] cmsg cancel 42EOfJ$q0m@lls.twbbs.org

2002-09-07 Thread ¡Û
Re: Warning: Could not execute mail delivery ¡K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link for downloading?

2002-09-07 Thread xdrag
try this: ?php ... ... $filename = test; header(Cache-Control: no-cache, must-revalidate); header(Content-type:.$mime_type); header(Content-Disposition:filename=.$filename..doc); echo hello, world!; ? - Original Message - From: Justin French [EMAIL PROTECTED] To: Alex Shi

Re: [PHP] Re: Proposal for securing PHP sessions

2002-09-07 Thread M1tch
Does it change the IP address while the user is connected? I didn't think that was possible... I only use sessions to store username/password and other limited variables, it's only if they log off and back in again that's they have to log out, and separate cookies automatically handle the login

[PHP] security documentation

2002-09-07 Thread Vania Smrkovski
Can someone please tell me specifically who can answer if http://www.php.net/manual/en/security.php is based on the most recent PHP 4.2.3? Or are there new bits of information that have not been added to this chapter, yet? Vania _ Vania Smrkovski Internet Design and

php-general Digest 8 Sep 2002 01:46:44 -0000 Issue 1572

2002-09-07 Thread php-general-digest-help
php-general Digest 8 Sep 2002 01:46:44 - Issue 1572 Topics (messages 115599 through 115634): Array - Match 115599 by: N. Pari Purna Chand 115601 by: Bas Jobsen 115613 by: Jed Verity Re: How to set the file premission by using CHMOD? 115600 by: Brad Bonkoski

[PHP] How to do pass on information...

2002-09-07 Thread Chuck PUP Payne
Hi, I would like to know if there is a way that I can pass on an information from a pull down menu into a sql query. Right now I have to right a PHP page for each piece I am wanting to pass on. Example I have a movie database and now if I want to see what is in my Anime Category that starts with

Re: [PHP] How to do pass on information...

2002-09-07 Thread Brad Bonkoski
Can't you make a form? Lets say you have a lexical database for categories like: IDNAME 1 Anime 2 Action etc... then in the form so: select name='cat' ?php $query = select * from categories; $result = run_query($query); while($row = fetch_array($result) { echo option

[PHP] header() problem!!!!

2002-09-07 Thread xdrag
Hi: is this a bug? [win98se + apache2.0.40 + PHP4.2.3 + IE6.0] download1.php: ?php ... header(Cache-Control: no-cache, must-revalidate); header(Content-Type:.$mime_type); header(Content-Disposition: filename=$filename); echo $filedata; ? works well download2.php: ?php ...

Re: [PHP] Re: Proposal for securing PHP sessions

2002-09-07 Thread Justin French
on 08/09/02 5:04 AM, M1tch ([EMAIL PROTECTED]) wrote: Why not just use IP? I created a nice system, whereby if your IP is changed (or someone is hacking your session), the session is destroyed, and the user must log in. Does not add much overhead either. large ISPs like AOL use variable IPs

Re: [PHP] Credit Card Validation

2002-09-07 Thread Justin French
You have be a little clearer. What do you want to return on true? a) the card number appears to be numerically valid b) the card has enough credit left on it to place the order I'll assume A. You need to decide what cards are going to be accepted, and look for a class or set of functions

[PHP] php_flag in httpd.conf

2002-09-07 Thread Mitch Vincent
Though the manual says it's possible I have bene unable to turn the PHP engine on and of per *directory*.. Towards the top of the httpd.conf file I have : Directory / Options FollowSymLinks AllowOverride None php_flag engine off /Directory Then further down for a directory

Re: [PHP] php_flag in httpd.conf

2002-09-07 Thread Jason Reid
Change off to on in the last directory container or omit it if php is enabled by default. thats probaly where the problem is. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: Mitch Vincent [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday,

[PHP] Stock Market data - where can I get it?

2002-09-07 Thread olinux
I would like to have a dynamic graph of market indices. Where I can get this data (free and paid). I have found several applications that grab yahoo finance data, but I don't think this flies very well with yahoo. CBS MarketWatch seems to be quite pricey. Can anyone recommend a source? Thanks,

[PHP] imagecopyresized problems

2002-09-07 Thread Brian Shannon Windsor
I'm trying to use imagecopyresized to generate a thumbnail image and then store the image in the proper place, but I'm running into some problems. I'm using the standard code: $src_img = imagecreatefromjpeg(../php/images/.$HTTP_POST_FILES['imagefile']['name']); if

Re: [PHP] php_flag in httpd.conf

2002-09-07 Thread Mitch Vincent
Oops -- that was a typo, I did have it On in the last directive.. I was changing it all around before I sent the email.. On Saturday, September 7, 2002, at 08:45 PM, Jason Reid wrote: Change off to on in the last directory container or omit it if php is enabled by default. thats probaly

[PHP] [ANNOUNCE] PHP 4.2.3 released

2002-09-07 Thread Zeev Suraski
PHP 4.2.3 has been released. It is a maintenance release and includes a large number of fixes for the previous 4.2.2 version. 4.2.3 is a recommended upgrade for all users of PHP, and particularly Windows users. Full list of changes: - Enabled strcoll() on win32. (Markus) - Fixed possible