Re: [PHP] change PHP include directory

2003-09-14 Thread Tom Rogers
Hi, Sunday, September 14, 2003, 3:25:57 PM, you wrote: TT Hi, TT Normally to change a sites include directory for PHP I'd use a .htaccess TT file and the following command: TT php_value include_path .:/path/to/web/ TT Again normally, I would get the path to the site by doing a simple TT

[PHP] CGI Error, IIS

2003-09-14 Thread nabil
Why this happen with me with IIS CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] socket_write eats data - solved

2003-09-14 Thread Thomas Weber
IMAP? We were talking about IRC, the Internet Relay Chat. In detail, my problems doesn't even refer to IRC directly, as i am developing a server for a html-based webchat, but the server-structure and the messages are nearly the same. Once you realize the basics of socket-multicasting, it is no

RE: [PHP] innodb + php caching issues

2003-09-14 Thread esctoday.com | Wouter van Vliet
Might want to try to send aa 'commit' command to the database. Just the first thing that enters my mind - -Original Message- - From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] - Sent: zondag 14 september 2003 7:55 - To: [EMAIL PROTECTED] - Subject: [PHP] innodb + php caching issues

[PHP] php sockets was Re: [PHP] socket_write eats data - solved

2003-09-14 Thread Raditha Dissanayake
Hi thomas, Thomas Weber wrote: IMAP? We were talking about IRC, Used imap as an example. the Internet Relay Chat. In detail, my problems doesn't even refer to IRC directly, as i am developing a server for a html-based webchat, but the server-structure and the messages are nearly the same. Yes

php-general Digest 14 Sep 2003 13:14:44 -0000 Issue 2296

2003-09-14 Thread php-general-digest-help
php-general Digest 14 Sep 2003 13:14:44 - Issue 2296 Topics (messages 162533 through 162552): Re: Integrating an Applet with PHP 162533 by: Raditha Dissanayake Re: socket_write eats data - solved 162534 by: Raditha Dissanayake 162535 by: Thomas Weber 162544

[PHP] Need Help Troubleshooting Code That Works Till It Comes to Form at End

2003-09-14 Thread Stephen Tiano
I spent last night trying, overnight brooding (in my sleep), and this morning, finally, finding and fixing the errant line in the code below to get it to display in my browser the entries I made in a test name named users. So I got is to display every column of every entry. But when I tried a

Re: [PHP] Need Help Troubleshooting Code That Works Till It Comes to Form at End

2003-09-14 Thread John W. Holmes
Stephen Tiano wrote: So I got is to display every column of every entry. But when I tried a specialized select statement in the query box provided by the form at the very end of this code, when I pressed the Submit button, nothing changed; I was still left staring at the table of all the info

Re: [PHP] Trying to submit form to frame and pass php var

2003-09-14 Thread Raditha Dissanayake
Hi, you cannot invoke php functions from javascript. You have to pass on any relevent variables (which can be done with hidden input fields) with your POST/GET data to the script for processing on the server. [EMAIL PROTECTED] wrote: Hello I was wondering if someone could help me out. Trying

Re: [PHP] Re: Calling functions from Button actions

2003-09-14 Thread Marek Kilimajer
I hope you don't use this method. It is VERY unsafe. You execute ANY function that the user tells you. Daniel Souza wrote: ? function func1() { } function func2() { } function func3() { } function func4() { } function func5() { } if

Re: [PHP] Function calls and strings

2003-09-14 Thread Curt Zirzow
* Thus wrote Ney André de Mello Zunino ([EMAIL PROTECTED]): I seek to find out whether PHP also has a syntax to allow function calls within a string, so that explicit concatenation is not needed. E.g.: something like: $s = The result is {getResult($foo)}.; as opposed to $s =

Re: [PHP] square brackets in form names violate HTML specs?

2003-09-14 Thread Curt Zirzow
* Thus wrote Robert Cummings ([EMAIL PROTECTED]): On Sat, 2003-09-13 at 17:21, Eugene Lee wrote: On Sat, Sep 13, 2003 at 06:15:29PM +, Curt Zirzow wrote: : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): : Something I've noticed in PHP is a proliferation of code like this: : :

Re: [PHP] CGI Error, IIS

2003-09-14 Thread Curt Zirzow
* Thus wrote nabil ([EMAIL PROTECTED]): Why this happen with me with IIS CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: check your IIS logs. Curt -- I used to think I was indecisive, but now I'm not so sure.

Re: [PHP] square brackets in form names violate HTML specs?

2003-09-14 Thread John W. Holmes
Curt Zirzow wrote: * Thus wrote Robert Cummings ([EMAIL PROTECTED]): On Sat, 2003-09-13 at 17:21, Eugene Lee wrote: On Sat, Sep 13, 2003 at 06:15:29PM +, Curt Zirzow wrote: : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): : Something I've noticed in PHP is a proliferation of code like this:

Re: [PHP] caching program

2003-09-14 Thread Curt Zirzow
* Thus wrote Andrea Tricco ([EMAIL PROTECTED]): For the images that don't contain http://; my program is already able to get them from the web server. In other cases, I have to determine the name of the directory where the html page is located. Thus, the equivocal paths are the problem, for

Re: [PHP] CGI Error, IIS

2003-09-14 Thread John W. Holmes
nabil wrote: Why this happen with me with IIS CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Although it's not a bug, read this: http://bugs.php.net/bug.php?id=12061 -- ---John Holmes... Amazon Wishlist:

[PHP] HTTP_GET_VARS VS. _GET

2003-09-14 Thread Todd Cary
I notice the use of _GET in some messages. Is this the same as HTTP_GET_VARS[]? Where in the manual is this documented? Todd -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More Image Transformation Difficulty

2003-09-14 Thread Marek Kilimajer
Anytime you encounter any error with images, comment out Content-Type header and you will see the error right in your browser. In this case the error is bFatal error/b: Call to undefined function: imagejpg() in b/usr/home/jakus1/www/htdocs/jpg.php/b on line b64/b should be imagejpeg [EMAIL

Re: [PHP] HTTP_GET_VARS VS. _GET

2003-09-14 Thread Larry E . Ullman
I notice the use of _GET in some messages. Is this the same as HTTP_GET_VARS[]? More or less. $_GET was added in version 4.1 and has an added advantage of being global in scope (it's a superglobal). Where in the manual is this documented? http://www.php.net/release_4_1_0.php

[PHP] Is this inefficient?

2003-09-14 Thread Todd Cary
I may have two buttons on the form and the Form Action has the same value as the current form, then at the top of my php script, I may have $continue = $HTTP_POST_VARS[btnContinue]; $cancel = $HTTP_POST_VARS[btnCancel]; followed by if ($continue) { //Do something - usually go to another page

Re: [PHP] Displaying Blobs by a newbie

2003-09-14 Thread Phil King
Hi Curt, Thanks for the tip. I created the two scripts . The image tag on the main page calls the image from the other script with an incremented id parameter. Thanks for your help. Phil. Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Phil King ([EMAIL

[PHP] strtotime() question

2003-09-14 Thread Kyle Bisignani
Hello, I'm not even quite sure if I am posting this message in the right place, so please bear with me. I have a question regarding the strtotime() function. I am developing a PHP script to handle dates for my web site, and I need an easy way to get from today to tomorrow to +2 days to +3

[PHP] CPanel adding POP account

2003-09-14 Thread Dasmeet
I am having a server that runs CPanel/WHM... I wish to create a free email service... Are there any PHP scripts available for the same?? Thanks in advance Dasmeet -- -- Domainwala.com Domain Names from $7.99 at http://www.domainwala.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] CPanel adding POP account

2003-09-14 Thread Warren Vail
Try; http://www.cpanel.net/docs/cp/ Warren Vail [EMAIL PROTECTED] -Original Message- From: Dasmeet [mailto:[EMAIL PROTECTED] Sent: Sunday, September 14, 2003 11:50 AM To: [EMAIL PROTECTED] Subject: [PHP] CPanel adding POP account I am having a server that runs CPanel/WHM... I wish to

[PHP] Verifying E-mail Addresses

2003-09-14 Thread Dan Anderson
I'm having a problem with e-mail addresses entered by users that are invalid (i.e. $email == some person at somewhere.com). Is there a function I could call like: ?php if (email_is_valid($email)) { mail_out_newsletter($email); } else { yelp_and_whine(); } ? Thanks in advance, Dan

RE: [PHP] CPanel adding POP account

2003-09-14 Thread Warren Vail
found a better programming resource at http://cpanel.net/docs.htm Seems you may be able to access each cpanel function (see the sample PHP script). Warren Vail [EMAIL PROTECTED] -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED] Sent: Sunday, September 14, 2003 11:59 AM

[PHP] passthru loses php posted variables

2003-09-14 Thread exasperated
Anyone come across something like this before? I have made a little test script as follows: ? header (Content-Type: application/pdf); $command_line = /usr/bin/pdflabelseries . escapeshellcmd($_POST['labelstart']) . .

[PHP] Novice in eCommerce

2003-09-14 Thread Karen Lubrecht
this may not be the right place to ask this, but perhaps someone here can tell me what I don't know and should be trying to learn! I can uses php in the construction of a web site. I can create a data base and authenticate users. I can create a shopping cart. I know that osCommerce is highly

[PHP] Program works only when there are records :-(

2003-09-14 Thread Ryan A
Hi, I have a select statment with a UNION so that i am getting 5 COUNT(*)'s from a table. After that I have this code: * $res = mysql_query($tt); $num_rows = mysql_num_rows($res); //This is line 25 $x=1; for($i=0; $i5; $i++) { $a = mysql_result($res, $i); //This is

[PHP] no response from a simple php/mysql code

2003-09-14 Thread Wei Wang
Hi, all, I'm a total newbie to php and just couldn't make the following php file(grabbed at awtrey.com, basic php/mysql code) running at http://weiwang.freeshell.org/guest.php I've read some php tutorials but I think I must've missed a very fundamental point that led to the failure of this

[PHP] more details about previous email

2003-09-14 Thread Wei Wang
Hi, all, I'm a total newbie to php and just couldn't make the following php file(grabbed at awtrey.com, basic php/mysql code) running at http://weiwang.freeshell.org/guest.php I guess I didn't elaborate what the problem was. The idea of the program was simply a guest message list. And when all

RE: [PHP] Program works only when there are records :-(

2003-09-14 Thread esctoday.com | Wouter van Vliet
Start by giving us the value of $tt, ... That'll probably tell more about the problem. Or you can do something like this: if ($res = mysql_query($tt)) { $num_rows = mysql_num_rows($res); //This is line 25 $x=1; for($i=0; $i5; $i++) { $a =

Re: [PHP] Re: Calling functions from Button actions

2003-09-14 Thread Daniel Souza
I dont use it. Its just an example. Thanks anyway. Daniel Marek Kilimajer [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] I hope you don't use this method. It is VERY unsafe. You execute ANY function that the user tells you. Daniel Souza wrote: ? function func1() {

Re: [PHP] Program works only when there are records :-(

2003-09-14 Thread Ryan A
Hey, Thanks for replying. sorry, i thought i explained what $tt was, but here it is in program code if you want to be clear on it. $tt = SELECT COUNT(*), 'Count1' FROM shared WHERE user ='.$mmmy_user.' and ccno=.$mmmy_ccno. UNION SELECT COUNT(*), 'Count2' FROM dedicated WHERE

[PHP] space sensitive?

2003-09-14 Thread Stevie D Peele
Is PHP space sensitive?? The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! -- PHP General Mailing List

RE: [PHP] Program works only when there are records :-(

2003-09-14 Thread esctoday.com | Wouter van Vliet
This looks like a pretty decent query to me... To figure out more about the errors mysql is producing, you can try to put a print mysql_error(); After ever call to a mysql function .. From there you should be able to learn more about the errors, and if not: don't bother posting what

Re: [PHP] space sensitive?

2003-09-14 Thread John W. Holmes
Stevie D Peele wrote: Is PHP space sensitive?? PHP is very sensitive about it's space. Don't go into it's personal space otherwise you can upset it and cause it to cry. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP

Re: [PHP] Program works only when there are records :-(

2003-09-14 Thread Ryan A
Hey, Thanks for replying. This looks like a pretty decent query to me... Thanks. I took your advise and put a couple of print mysql_error(); and got 8 of the same error... * You have an error in your SQL syntax near 'UNION SELECT COUNT(*), 'Count2' FROM dedicated where

Re: [PHP] space sensitive?

2003-09-14 Thread Ryan A
To get a good healthy php you have to walk it more than a java or C etc, if you live next to a park or a compound it would be fantatic but they have known to be healthy even if raised in a small apartment. -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site

Re: [PHP] Re: HTTP_REFERER

2003-09-14 Thread Louie Miranda
SCRIPT_FILENAME, sorry but i didnt get this part. - Original Message - From: Eugene Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 12, 2003 4:51 PM Subject: Re: [PHP] Re: HTTP_REFERER On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote: : Eugene Lee

[PHP] How are variables called in current php?

2003-09-14 Thread Wei Wang
hi, all, I have a piece of code stuck at the point of if (($REQUEST_METHOD=='post')). var_dump($REQUEST_METHOD); shows that the variable doesn't exist. Since I grabbed the code from a 2001 update, is there any chance that this is already obsolete? I checked the documentation but didn't find

[PHP] (Conclusion) Re: [PHP] Program works only when there are records :-(

2003-09-14 Thread Ryan A
Its a version problem, UNION was not implempted till V4, and my host has V3.23 Anybody know of a work around with my code? I have found some work arounds on google but its too advanced for me...i dont really understand left joins, right joins etc Cheers, -Ryan We will slaughter you all! - The

[PHP] php generate thumbnails

2003-09-14 Thread Russell Conder
Sir, I read in a thread that you mailed some code to generate thumbnails Might I also have a copy ? It's been driving me crazy, all week. Thanks Cheers Russell This e-mail message

[PHP] XML Reading, Writing

2003-09-14 Thread Jeff Fitzgerald
I need to use PHP to read, modify and write xml files. I have seen something called expat which I am having trouble installing. Is that the only way to do this? Any help greatly appeciated... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] htmlentities -- can it skip tags

2003-09-14 Thread Justin French
Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply htmlspecialchars(), BUT this also converts all and into lt; and gt; signs, which destroys the html

Re: [PHP] htmlentities -- can it skip tags

2003-09-14 Thread John W. Holmes
Justin French wrote: Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply htmlspecialchars(), BUT this also converts all and into lt; and gt; signs, which

Re: [PHP] How are variables called in current php?

2003-09-14 Thread Jason Sheets
Looks like that code depends on register globals being enabled which have been off for some time. You can either turn register globals on in php.ini (not recommended) or with an .htaccess file (better than using php.ini not as good as changing the code if that is possible). Information about

[PHP] User Access

2003-09-14 Thread Ryan Stagg
How would one go about allowing editable access to only the entry creator For example: If I added an entry to the site and only wanted myself to be able to edit / delete it, likewise with other users how would I go about setting this up in DW MX on PHP4 and mysql?? Cheers Ryan -- PHP General

[PHP] Branching to a page

2003-09-14 Thread Todd Cary
Back in the earlier days of PHP, pages were not cached so I developed a method of branching to a page by opening a new socket. Since it has worked over the years in quite a variety of applications, I have not changed...but maybe I should. Are there any glaring deficiencies with doing this:

Re: [PHP] User Access

2003-09-14 Thread Raditha Dissanayake
Sorry but your problem isn't very clear. If you are talking of dreamweaver problem you are better off using their support forums. Or are you talking about a wiki site? Ryan Stagg wrote: How would one go about allowing editable access to only the entry creator For example: If I added an entry

Re: [PHP] How are variables called in current php?

2003-09-14 Thread Raditha Dissanayake
Wei Wang wrote: hi, all, I have a piece of code stuck at the point of if (($REQUEST_METHOD=='post')). var_dump($REQUEST_METHOD); shows that the variable should be $REQUEST_METHOD == 'POST' why don't you just use the $_REQUEST array instead? -- http://www.radinks.com/upload Drag and Drop File

Re: [PHP] User Access

2003-09-14 Thread Ryan Stagg
No it's not a Dreamweaver problem I have a site where users can insert data via a PHP form, I want to be able to set up a system where the user can login and edit their entries only, in other words they cant edit another users data. Ryan Raditha Dissanayake [EMAIL PROTECTED] wrote in

Re: [PHP] more details about previous email

2003-09-14 Thread Raditha Dissanayake
Wei Wang wrote: if you are asking questions about specific scripts you will always be better off in the message boards / mailings lists maintained by the script owner. However i will hazard a guess that you have not created the tables in the db. CREATE TABLE guests ( guest_id int(4)

Re: [PHP] XML Reading, Writing

2003-09-14 Thread Raditha Dissanayake
Hi, The php xml modules are installed by default with recent versions of php. This requires that you have libexpat on your machine. They are available on most linux distributions cds. If you are on windows you can dwonload from the site (forgotton the url) From the type of questions you have

Re: [PHP] User Access

2003-09-14 Thread Raditha Dissanayake
Sounds like a wiki in it's simplest form. Please do a search for php wiki in sourceforge or hotscripts you will be able to find lots of scripts that let you achieve just this. all the best Ryan Stagg wrote: No it's not a Dreamweaver problem I have a site where users can insert data via a

Re: [PHP] htmlentities -- can it skip tags

2003-09-14 Thread Justin French
On Monday, September 15, 2003, at 12:58 PM, John W. Holmes wrote: Justin French wrote: Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply

Re: [PHP] htmlentities -- can it skip tags

2003-09-14 Thread Justin French
On Monday, September 15, 2003, at 12:58 PM, John W. Holmes wrote: Justin French wrote: Hi all, I need to convert some text from a database for presentation on screen... as per usual, characters like quotes and ampersands () are giving me grief. the obvious answer is to apply

Re: [PHP] (Conclusion) Re: [PHP] Program works only when there are records :-(

2003-09-14 Thread Eugene Lee
On Mon, Sep 15, 2003 at 02:15:56AM +0200, Ryan A wrote: : : Its a version problem, UNION was not implempted till V4, and my host has : V3.23 : Anybody know of a work around with my code? I have found some work arounds : on google but its too advanced for me...i dont really understand left joins,

Re: [PHP] Re: HTTP_REFERER

2003-09-14 Thread Eugene Lee
On Mon, Sep 15, 2003 at 07:58:25AM +0800, Louie Miranda wrote: : Eugene Lee mentioned: : On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote: : : Eugene Lee mentioned: : : On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote: : : : Eugene Lee mentioned: : : : : : :

[PHP] Security of php_auth_pw ?

2003-09-14 Thread Neale Yates
Is anyone able to advise me on the security of the password when using PHP authentication. My specific concern is whether the password can be intercepted between the browser and server when submitted. thanks Neale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] browser detector (php side)

2003-09-14 Thread Louie Miranda
Im looking for a browser detector and can redirect to a certain page if its match something. So far phpsniff is the only thing i found. But i didnt got it to work d redirection part. any ideas? - Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: