Re: [PHP] Still executing afte die()?

2003-01-04 Thread Leif K-Brooks
As I understand it, your situation is this: a) all your pages are named in lowercase b) if someone tries to access a non-existent page on your site (eg using a URI which is not fully lowercase) they'll hit your 404.php Correct. But if the page was all lowercase they wouldn't be hitting

[PHP] Avoiding Repeat Posts

2003-01-04 Thread OrangeHairedBoy
Hi all, It seems that there might be some basic solution on this that I never received a memo on... Basically, I'm looking for a way to avoid repeat posts. If someone, for example, adds something to a bulletin board, clicks submit, and then presses F5, they're just 1 click away from

Re: [PHP] exec() not exec-ing?

2003-01-04 Thread gilrain
Jason Wong wrote... Try specifying the full path to the python binary and possibly the full path to ncMailer.py as well. Good suggestion! I switched everything over to absolute paths, as I should have done in the first place. Unfortunately, this didn't solve the problem. Still searching,

[PHP] Re: Hello and help

2003-01-04 Thread OrangeHairedBoy
Or to make it easy, here's the line you need: $info = mysql_fetch_array( $result ); Put that line right after the query. So, here's sample: $Link=mysql_pconnect($Host, $User, $Password); $db=mysql_select_db($DBname, $Link); $query=mysql_query(SELECT * from calendar, $Link); $result =

Re: [PHP] exec() not exec-ing?

2003-01-04 Thread Jason Wong
On Saturday 04 January 2003 16:29, gilrain wrote: Try specifying the full path to the python binary and possibly the full path to ncMailer.py as well. Good suggestion! I switched everything over to absolute paths, as I should have done in the first place. Unfortunately, this didn't

Re: [PHP] Avoiding Repeat Posts

2003-01-04 Thread Justin French
on 04/01/03 7:26 PM, OrangeHairedBoy ([EMAIL PROTECTED]) wrote: Hi all, It seems that there might be some basic solution on this that I never received a memo on... it's been mentioned MANY times on the list in the last week :) Basically, I'm looking for a way to avoid repeat posts. If

Re: [PHP] Avoiding Repeat Posts

2003-01-04 Thread OrangeHairedBoy
I did searches on this one...I'm using NNTP so it's nice...unfortunatly, no one had quite the same problem. I had thought about the random value already (see paragraph about unique visit id), but it just seems like so much to keep track of... After asking on other board on the same topic, one

Re: [PHP] exec() not exec-ing?

2003-01-04 Thread gilrain
Jason Wong wrote: Does the webserver have permission to: (a) execute the python binary (b) access and read ncMailer.py Thanks for all the help! I really appreciate it. :) Hm, I'm actually not sure if my host allows that. This could definitely be the problem. Is there a simple way to

Re: [PHP] exec() not exec-ing?

2003-01-04 Thread gilrain
I'm back to square one, if I can't run that script without the browser waiting on it to finish... For instance, is there a way for my PHP script to log into my shell account and *then* send the command? Since I can execute the script, but PHP can't, this would solve the problem -- if it's

[PHP] PHP and MySQL bug

2003-01-04 Thread Nuno Lopes
Dear Sirs, I'm using PHP and MySQL to make my programs. But I think I discovered a bug in PHP or in MySQL (I don't know!). In one of my files I have the following: MYSQL_CONNECT(localhost, **user**, **pass**); mysql_select_db(be); $r=MYSQL_QUERY(SELECT n,u,m,h FROM d WHERE id='$id'); /* Some

Re: [PHP] Avoiding Repeat Posts

2003-01-04 Thread Tularis
Actually, there is a different solution to this aswell. One that is used by phpBB and XMB, and maybe some others aswell. Basicly, it's an anti-flood system. It works like this: - You are a member and logged in You post, and the post gets inserted into the database, and with it, also the time

Re: [PHP] Javascript broken!

2003-01-04 Thread Sean Burlington
Adam Wilson wrote: I am beginning a tidy-up of a very messy site i am now managing. I have started splitting repeated sections into single header and footer files, for inclusion via php. Unfortunately the javascript no longer works, i.e. rollovers etc. Can someone please help me on this? Is this

Re: [PHP] Avoiding Repeat Posts

2003-01-04 Thread Michael J. Pawlowsky
Why not create a unique constraint with the userid, day (without time) and post content. Is it going in a DB? Mike *** REPLY SEPARATOR *** On 04/01/2003 at 3:26 AM OrangeHairedBoy wrote: Hi all, It seems that there might be some basic solution on this that I never received

Re: [PHP] PHP and MySQL bug

2003-01-04 Thread Michael J. Pawlowsky
I cant give you a solution, and I''m running on Linux. But I have pages were I do 6-7 queries on one page always using the same connection. Never had a problem with that. Mike *** REPLY SEPARATOR *** I'm using PHP and MySQL to make my programs. But I think I discovered a bug

[PHP] how to determine if the output has been flushed normally...

2003-01-04 Thread Gyozo Papp
Hi, I'm dealing with the following issue: how to determine whether the current page request has been responded normally, eg. output has been sent to the browser as regular, or just a redirection header sent to it header('Location: '); ? Some words about the background: This functinality

[PHP] PHP vs. ASP

2003-01-04 Thread Anthony Rodriguez
Hi! How does PHP differs from ASP? Are there any advantages in using PHP over ASP? Or the other way around? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to determine if the output has been flushed normally...

2003-01-04 Thread Gyozo Papp
Hi, I'm dealing with the following issue: how to determine whether the current page request has been responded normally, eg. output has been sent to the browser as regular, or just a redirection header sent to it header('Location: '); ? Some words about the background: This functinality would

[PHP] REPOST: installation problems (php 4.2.3/mcrypt/curl)

2003-01-04 Thread Michael Geier
repost [no response] I searched MARC first, but none of the answers there seemed to work. I have noticed similar issues on there, but the only answers are make sure you compiled with package X. Installing: RH 8 Apache 1.3.27 (--prefix --enable-module=so) PHP 4.2.3 (--with-apxs

[PHP] help with preg_match

2003-01-04 Thread Anders Thoresson
Hi, I'm trying to write a function that validates the input in a textarea. I just want to allow alphanumrical characters, and if the user enters anything else, I display an error message by calling error(). But the following doesn't work. Even if I enter hello in the textarea, I get the

[PHP] security in guest book and user forums

2003-01-04 Thread Anders Thoresson
I've seen both guest books and user forums hacked by users who enter javascript or other code, and that way redirects vistors to other sites or do other unwelcome things. What expressions should I look for and not allow in my forms? Best regards, Anders -- PHP General Mailing List

Re: [PHP] Avoiding Repeat Posts

2003-01-04 Thread Charles likes PHP
How about saving a timestamp when the user posts a message and when he posts another message check whether the user already posted a message in the past, let's say, minute. I saw this used in a lot of forums... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP vs. ASP

2003-01-04 Thread Leon Mergen
Anthony Rodriguez [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How does PHP differs from ASP? search google on php vs asp ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with preg_match

2003-01-04 Thread Tracy Finifter Rotton
You need to tell preg_match that there will be multiple characters. Right now, you're searching for one, and only one. if (! preg_match ('/^[a-z0-9]+$/', $unchecked_text)) { The + means one or more matches to the range in brackets. -- tracy On 1/4/03 9:03 AM, Anders Thoresson [EMAIL

[PHP] upgrading WAMP environment

2003-01-04 Thread Anders Thoresson
I've been using Apache, MySQL and PHP under Win2k for a while to learn PHP. At the moment, I'm running PHP 4.2.2, MySQL 3.23.39 and Apache 2.0.40. During the holidays, I've read about a security hole in MySQL and therefore plans to upgrade to 3.23.54a. At the same time, I want to install PHP

Re: [PHP] Avoiding Repeat Posts

2003-01-04 Thread Gyozo Papp
Michael J. Pawlowsky wrote: Why not create a unique constraint with the userid, day (without time) and post content. Is it going in a DB? Index on text columns does not seem very efficient, IMHO. If he wants to avoid multiple inserts, the random unique ID is enough. -- PHP General Mailing

Re: [PHP] REPOST: installation problems (php 4.2.3/mcrypt/curl)

2003-01-04 Thread Michael J. Pawlowsky
Might or might not be helpful.. but I had the same thing happend when I added --with-jpeg-dir=/usr/lib Everything looked fine... but I could not call imagejpeg. (PHP 4.3 - RH8 - apache2) Once I did a make clean, ./configure -with- ... , make, make test (to see if it had jpg), make install

[PHP] Re: PHP and MySQL bug

2003-01-04 Thread OrangeHairedBoy
You really should be using a $link variable...it's good habit: $link = mysql_connect(...); mysql_select_db( mydb , $link); $query = mysql_query( select... , $link ); $result = mysql_fetch_array($query); Lewis Nuno Lopes [EMAIL PROTECTED] wrote in message

[PHP] Re: exec() not exec-ing?

2003-01-04 Thread gilrain
Just in case any of you are still watching this thread, I thought I should post the exciting conclusion! Not too exciting, actually. In the end, I've simply added my Python script to crontab. It runs every 20 minutes, and if the mailing file has changed, it sends out the e-mails. Pretty simple,

Re: [PHP] Re: PHP and MySQL bug

2003-01-04 Thread Michael J. Pawlowsky
Personally I say get yourself a good simple dbconnect class and make life easy. Also if you ever change users, database name etc, you onlu have one place to replace it in your code. I wrote mine based on http://www.vtwebwizard.com/tutorials/mysql/ Take a look at it. Nice and simple. Mike

php-general Digest 4 Jan 2003 18:21:57 -0000 Issue 1803

2003-01-04 Thread php-general-digest-help
php-general Digest 4 Jan 2003 18:21:57 - Issue 1803 Topics (messages 130209 through 130241): Re: true ip tracking 130209 by: electroteque 130212 by: Jason Wong Re: Still executing afte die()? 130210 by: Jason Wong 130213 by: Leif K-Brooks Re: exec() not

[PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
Well I've been fixing up all my code (and other peoples which is worst) getting ready to do an upgrade to 4.3. and turning off globals and warnings on. I very often move parameters that were once POSTed as a GETs. For instance... some one does a search but is not logged in, they can see the

[PHP] Re: security in guest book and user forums

2003-01-04 Thread Seraphim
Anders Thoresson wrote: I've seen both guest books and user forums hacked by users who enter javascript or other code, and that way redirects vistors to other sites or do other unwelcome things. What expressions should I look for and not allow in my forms? I use the htmlspecialchars()

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Rasmus Lerdorf
Why don't you just use $_REQUEST['keyword'] ? On Sat, 4 Jan 2003, Michael J. Pawlowsky wrote: Well I've been fixing up all my code (and other peoples which is worst) getting ready to do an upgrade to 4.3. and turning off globals and warnings on. I very often move parameters that were once

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
I just found a better answer, but still open to suggestions with the URI : http://rc.mikeathome.net/test/index.php?one=1two[]=2two[]=3three=3key=This%20is%20the%20key I tried this: ?php if (isset($_GET)){ foreach($_GET as $key = $value){

[PHP] Re: security in guest book and user forums

2003-01-04 Thread Tularis
most forums do this ?php htmlentities($input); --save input -- get output if($html == 'on'){ $output = hymlentities_decode($output); } print($output); exit(); ? Seraphim wrote: Anders Thoresson wrote: I've seen both guest books and user forums hacked by users who enter javascript or other

[PHP] mssql functions

2003-01-04 Thread Duncan
Hi, i need the php mssql functions, but php is not configured --with-mssql on my server. What options do i have to enable this? I mean, if i need the mssql-functions, does the client (as stated in the php manual) have to be installed, or can i use s.th. dynamical and load it at runtime? S.o.

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
Hey that's great... I didn't know about $_REQUEST I suppose the order of overlapping is set in php.ini I think I saw that somewhere. Thanks As for tunring it back on... in .htaccess I like the idea of having cleaner code *** REPLY SEPARATOR *** On 04/01/2003 at

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Tularis
NOTE: this basicly mimics the way register_globals works. I use this code to fix register_globals aswell as the magic_quotes_gpc: $global = @array($_SESSION, $_SERVER, $_COOKIE, $_POST, $_GET, $_FILES, $_ENV); $global_old = @array($HTTP_SESSION_VARS, $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS,

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Jason Sheets
If you do that you might as well just turn on register globals, you should look at the $_REQUEST variable, it combines $_POST, $_GET and $_COOKIE into one array so you can just reference $_REQUEST['variable'] for example $_REQUEST['one']. Jason On Sat, 2003-01-04 at 11:50, Michael J. Pawlowsky

RE: [PHP] One more form question

2003-01-04 Thread Ford, Mike [LSS]
-Original Message- From: David Chamberlin To: [EMAIL PROTECTED] Is there an easy way to set something in a select list to be selected? Right now I'm doing a real brute-force method. e.g., echo tdselect name=\disp_address\; $choices = array( 'pub' = 'On Public Page',

Re: [PHP] Re: PHP and MySQL bug

2003-01-04 Thread Michael J. Pawlowsky
Personally I think the problem lies somewhere between the chair and the keyboard (Sorry, couldn't resist) :-) *** REPLY SEPARATOR *** On 04/01/2003 at 4:58 PM Stefan Hinz, iConnect (Berlin) wrote: It doesn't work because of the /* Some code including ... */ part ;-)

Re: [PHP] security in guest book and user forums

2003-01-04 Thread Jason Wong
On Sunday 05 January 2003 01:16, Anders Thoresson wrote: I've seen both guest books and user forums hacked by users who enter javascript or other code, and that way redirects vistors to other sites or do other unwelcome things. What expressions should I look for and not allow in my forms?

[PHP] You gotta love it...

2003-01-04 Thread Michael J. Pawlowsky
When doing a function seach at www.php.net I just got: Parse error: parse error in /local/Web/sites/phpweb/search.php on line 233 Twice in a row... Maybe they will be posting us a question soon!! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] You gotta love it...

2003-01-04 Thread Andy Turegano
Well, we're all human. On Sat, 4 Jan 2003, Michael J. Pawlowsky wrote: When doing a function seach at www.php.net I just got: Parse error: parse error in /local/Web/sites/phpweb/search.php on line 233 Twice in a row... Maybe they will be posting us a question soon!! :-)

[PHP] Re: [PEAR-DEV] Announcing open CVS for phpDocumentor project

2003-01-04 Thread Greg Beaver
Hi all, open cvs has been fixed. Use at will Take care, Greg Jesus M. Castagnetto [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It does not seem to be working at the moment. --- Greg Beaver [EMAIL PROTECTED] wrote: Hello all, Josh Eichorn has just

[PHP] I can't code today to save my life! :(

2003-01-04 Thread Phil Powell
I have $REQUEST_URI that will take two values: /event/login.php and /event/register.php What I need to do is so simple it's brainless!!! I need to look into $REQUEST_URI and find if it contains register.php. I tried this and it completely failed, the results were wrong every time: if

Re: [PHP] I can't code today to save my life! :(

2003-01-04 Thread Chris Hayes
At 22:21 4-1-2003, you wrote: completely failed, the results were wrong every time: if (strpos($REQUEST_URI, register.php) !== 0) { // you're in login.php } try if (!strpos($REQUEST_URI, register.php) === FALSE) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] I can't code today to save my life! :(

2003-01-04 Thread Michael J. Pawlowsky
try if(stristr($_SERVER['REREQUEST_URI'], register.php){ echo at register; } else { echo Not; } Not tested but should work.. also case insensitive now... *** REPLY SEPARATOR *** On 04/01/2003 at 4:21 PM Phil Powell wrote: I have $REQUEST_URI that will take

Re: [PHP] I can't code today to save my life! :(

2003-01-04 Thread Michael J. Pawlowsky
I must be doibg drugs with all those typos... Typos removed: ?php if(stristr($_SERVER['REQUEST_URI'], register.php)){ echo at register; } else { echo Not; } ? *** REPLY SEPARATOR *** On 04/01/2003 at 4:43 PM Michael J. Pawlowsky wrote: try

[PHP] Re: PHP and MySQL bug

2003-01-04 Thread Stefan Hinz, iConnect \(Berlin\)
Nuno, $r=MYSQL_QUERY(SELECT n,u,m,h FROM d WHERE id='$id'); /* Some code including mysql_num_rows and mysql_fetch_array($r, MYSQL_NUM) And the another query: */ MYSQL_QUERY(UPDATE d SET h='$h' WHERE id='$id'); /* i don't know why but this doesn't work!*/ It doesn't work because of the

Re: [PHP] upgrading WAMP environment

2003-01-04 Thread David T-G
Anders -- ...and then Anders Thoresson said... % % I've been using Apache, MySQL and PHP under Win2k for a while to learn % PHP. At the moment, I'm running PHP 4.2.2, MySQL 3.23.39 and Apache 2.0.40. Good for you! All you have left to do is upgrade to Linux ;-) % % During the holidays,

[PHP] counter problem

2003-01-04 Thread Anthony Ritter
The following script is found in Matt Zandstra's book on PHP (Sams) on page 160. He's explaining forms with PHP and has hard coded a value - 42. He also is explaining a hidden fleld where the user can submit the number and each time the user hits submit in the formbox, the counter will register

[PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Phil Powell
I don't know how to post this one so I'm sorry for such bizarre cross-posting, but honestly I don't know where to go for help on this one! I have process.php that has to call a remote file called process.asp on another site. Site 1 has the cookie domain I want (that's where process.php is

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
Use this... enjoy ?php $numtoguess=42; if (isset($_POST['num_tries'])) $num_tries = $_POST['num_tries'] + 1; $message=; if(!isset($_POST['guess'])) $message=Welcome to the guessing machine; elseif ($_POST['guess'] $numtoguess) $message=Your guess was too low.;

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
This also works with the ternary operator... I don't think it likes the ++ because it doesn't know the type yet. ?php $numtoguess=42; $num_tries = isset($_POST['num_tries'])?$_POST['num_tries']+1:0; $message=; if(!isset($_POST['guess'])) $message=Welcome to the guessing machine;

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Michael J. Pawlowsky
I'm not sure I totally understand... But why not just call it like a web page using curl? *** REPLY SEPARATOR *** On 04/01/2003 at 6:43 PM Phil Powell wrote: I don't know how to post this one so I'm sorry for such bizarre cross-posting, but honestly I don't know where to

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Andrew Brampton
It would look like any other user. In ASP you will have to check the request's IP (if its static), or you can use some kind of username/password combinition... Or if you are real lazy use just a hidden url ie mysite.com/akjdhsanlfas/process.asp There is no way to tell the page process.php is

[PHP] Perl PHP

2003-01-04 Thread Sam
I don't know what the heck this is but it works: #!/usr/bin/perl $ENV{LD_LIBRARY_PATH} .=:.:..:../lib; $ENV{CLASSPATH} .= :Verisign.jar:.; print `javac PFProJava.java`; print `java PFProJava test-payflow.verisignscks.com`; How can it be done with PHP? OR run the perl script from a PHP

Re: [PHP] counter problem

2003-01-04 Thread Anthony Ritter
Michael J. Pawlowsky wrote in message: This also works with the ternary operator... . No dice Michael. I treid both your scripts. The formbox comes up. I enter a number. I hit submit. The box clears out the entered number without any

[PHP] web visitor viewing a script?

2003-01-04 Thread Larry Brown
This came up in another group and I just wanted to know from the experts whether this is possible. Being someone well versed in PHP can you visit a web site, hit a script in PHP and be able to view the script on the page rather than just the html it generates. Is it true that the only way to

[PHP] PHP and empty() if form value is 0

2003-01-04 Thread Phil Powell
foreach ($HTTP_GET_VARS as $key = $val) { if (!empty($HTTP_GET_VARS[$key])) ${$key} = $HTTP_GET_VARS[$key]; } foreach ($HTTP_POST_VARS as $key = $val) { if (!empty($HTTP_POST_VARS[$key])) ${$key} = $HTTP_POST_VARS[$key]; } Whenever the form variable is equal to 0, the value is not

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Gerald Timothy Quimpo
On Sunday 05 January 2003 07:43 am, Phil Powell wrote: I tried using REQUEST_URI but I didn't get the results I wanted. How will process.asp know that process.php called it in order to do what it should do? if you can get $_SERVER[REMOTE_ADDR] or $HTTP_REMOTE_ADDR and if you can trust it (not

RE: [PHP] exec() not exec-ing?

2003-01-04 Thread Brendon Gearin
Could you just get the php script to send the commands to schedule it as a task to run via cron etc in say 1 minute into the future... that command would be done quickly.. and the server could continue.. i did something similar when i used NT/ASP. But i'm just a php newbie so i could be lost..

Re: [PHP] Perl PHP

2003-01-04 Thread Leif K-Brooks
Not good at perl, but you need to do: ?php exec('perl.pl'); ? Sam wrote: I don't know what the heck this is but it works: #!/usr/bin/perl $ENV{LD_LIBRARY_PATH} .=:.:..:../lib; $ENV{CLASSPATH} .= :Verisign.jar:.; print `javac PFProJava.java`; print `java PFProJava

[PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Adam Plocher
I read on PHP.net that PHP 4.3.0 has read-only GIF support in it's version of gdlib. I am using the windows version with apache and tried both php_gd.dll and php_gd2.dll and I could not access any GIF related image functions, however I could use JPG, PNG, etc. Does anyone know if I need to do

RE: [PHP] web visitor viewing a script?

2003-01-04 Thread Timothy Hitchens \(HiTCHO\)
Only if your webserver has a handler issue will this occur or if you have a .htaccess to override the server from passing onto PHP. This will happen with .php3 files if you don't have them set to be processed by php or any other extension that is not included in your web server configuration file

Re: [PHP] PHP and empty() if form value is 0

2003-01-04 Thread Michael Sims
On Sat, 4 Jan 2003 19:26:02 -0500, you wrote: Whenever the form variable is equal to 0, the value is not passed into the corresponding variable. For example, if isLogin = 1, then $isLogin = 1 But if isRegistered = 0 then $isRegistered = {null} I do not understand why this happens, someone

Re: [PHP] PHP and empty() if form value is 0

2003-01-04 Thread Phil Powell
I couldn't think of isset, so I winged it: if (strlen($var) 0) {...} Phil Michael Sims [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 4 Jan 2003 19:26:02 -0500, you wrote: Whenever the form variable is equal to 0, the value is not passed into the

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Phil Powell
CURL? I only understand CURL as a Vignette command, sorry, you lost me. Phil Michael J. Pawlowsky [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm not sure I totally understand... But why not just call it like a web page using curl? *** REPLY

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
I won't keep it up long... but go here... you will see it works... http://rc.mikeathome.net:8080/test/index.php *** REPLY SEPARATOR *** On 04/01/2003 at 7:17 PM Anthony Ritter wrote: Michael J. Pawlowsky wrote in message: This also works with the ternary operator...

Re: [PHP] web visitor viewing a script?

2003-01-04 Thread Michael J. Pawlowsky
or rename the file to .phps for PHP source. Many servers recognize this mime type as source and send you the file. But if you are thinking about security... the script is compiled and executed on the server. What you see are the results of the application. Get it? This is good and bad...

Re: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Michael J. Pawlowsky
I just installed 4.3 today... configured as ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt --with-zlib - -with-gd --enable-exif --with-jpeg-dir=/usr/lib --with-png --with-ttf --with-fre etype --enable-gd-native-ttf I run this code: ?php header(Content-type:

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Michael J. Pawlowsky
http://www.php.net/manual/en/ref.curl.php have the page send back whatever info you need. *** REPLY SEPARATOR *** On 04/01/2003 at 8:33 PM Phil Powell wrote: CURL? I only understand CURL as a Vignette command, sorry, you lost me. Phil Michael J. Pawlowsky [EMAIL

Re: [PHP] Re: security in guest book and user forums

2003-01-04 Thread Justin French
on 05/01/03 5:24 AM, Seraphim ([EMAIL PROTECTED]) wrote: I use the htmlspecialchars() function to disable all html. This function basically puts a '\' in front of eacht html character and thus disables all html. You may not want to do this if you want to allow, for example b/b or other

Re: [PHP] security in guest book and user forums

2003-01-04 Thread Justin French
on 05/01/03 4:16 AM, Anders Thoresson ([EMAIL PROTECTED]) wrote: I've seen both guest books and user forums hacked by users who enter javascript or other code, and that way redirects vistors to other sites or do other unwelcome things. What expressions should I look for and not allow in my

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Adam Plocher
Michael, thanks for the response.. Only prob is I'm using the win32 precompiled version.. I got a couple linux boxes I could throw this on I suppose, but I was kind of hoping to use this machine as a dev box. I ran the same code you posted and these were my results: Fatal error: Call

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Michael J. Pawlowsky
when you do a phpinfo() what are the compiled with options? *** REPLY SEPARATOR *** On 04/01/2003 at 6:24 PM Adam Plocher wrote: This encoded message has been converted to an attachment. Michael, thanks for the response.. Only prob is I'm using the win32 precompiled

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Adam Plocher
There aren't any, however there is a GD section which says: GD Support enabled GD Version bundled (2.0 compatible) FreeType Supportenabled FreeType Linkagewith freetype JPG Support enabled PNG Support enabled

[PHP] Function to catch all mySQL errors?

2003-01-04 Thread Jeff Lewis
I know that mySQL errors are caught in mysql_error() and I find that function extremely useful (kudos!). However, I have several queries in a few scripts of mine but am wondering if anyone has written a small function that catches errors and outputs them. What I mean is lets say I have a block of

RE: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Adam Plocher
How about something like this.. function runquery($query) { $query = mysql_query($query); if (mysql_error()) { echo div style=\color:red\MySQL Error: . mysql_error() ./div\n; exit(1); } return $query; } -Original

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Rasmus Lerdorf
Didn't I answer this already? The Windows binary was built without the right #define to enable the GIF support. You will have to wait for the next Windows build before this will work. -Rasmus On Sat, 4 Jan 2003, Adam Plocher wrote: Michael, thanks for the response.. Only prob is I'm using

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Michael J. Pawlowsky
If I look at my phpinfo I get: gd GD Support enabled GD Version bundled (2.0 compatible) FreeType Support enabled FreeType Linkage with TTF library GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled Notice the GIF Read Support Why

RE: [PHP] web visitor viewing a script?

2003-01-04 Thread Larry Brown
Thank you guys for the confirmation and ...yes I got it. :( Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 04, 2003 8:52 PM To: Larry Brown; [EMAIL PROTECTED] Subject: Re: [PHP] web

[PHP] pack, unpack and little endian double values

2003-01-04 Thread timmer
Hello I am trying to parse ESRI shape files, which have double values stored in little endian format. when i read these values using something like this: $RawFileHeader = fread($ShapeFile, 100); $FileHeader = unpack(NFileCode/N5Unused/NFileLength/VVersion/VShapeType/d8Box, $RawFileHeader);

RE: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Michael J. Pawlowsky
Also if you dont want ot to break you need to add the @ operator in front Mike *** REPLY SEPARATOR *** On 04/01/2003 at 6:47 PM Adam Plocher wrote: This encoded message has been converted to an attachment. How about something like this.. function runquery($query) {

RE: [PHP] Recommend payment processors?

2003-01-04 Thread Jonathan Rosenberg \(Tabby's Place\)
I've been using Authorize.Net for about 6 months now am happy with them. I use their AIM interface, which allows ,e complete control over the look feel of the payment process. There is no problem doing everything in PHP, as long as you have the CURL extensions they are built with SSL support.

Re[2]: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Tom Rogers
Hi, Sunday, January 5, 2003, 12:47:40 PM, you wrote: AP How about something like this.. AP function runquery($query) AP { AP $query = mysql_query($query); AP if (mysql_error()) AP { AP echo div style=\color:red\MySQL Error: . mysql_error() ./div\n; AP exit(1);

Re: [PHP] Recommend payment processors?

2003-01-04 Thread David McInnis
I use authorize.net with curl as well. It works great. There are tutorials on http://www.phpbuilder.net on how to set this up. David - Original Message - From: Jonathan Rosenberg (Tabby's Place) [EMAIL PROTECTED] To: Chad Day [EMAIL PROTECTED]; php general [EMAIL PROTECTED] Sent:

Re: [PHP] PHP and empty() if form value is 0

2003-01-04 Thread Michael Sims
On Sat, 4 Jan 2003 20:33:14 -0500, you wrote: I couldn't think of isset, so I winged it: if (strlen($var) 0) {...} This should work most of the time, but be aware this will produce a warning if $var isn't set (and you haven't set your error reporting level to ignore warnings)... If you're not