Re: [PHP] true ip tracking

2003-01-03 Thread Jason Wong
On Saturday 04 January 2003 14:32, electroteque wrote: > its a bit tedious to make anonymous visotors register on the site to vote a > poll , so there is no other workaround then ? No. You could make them people pay a substantial sum of money for each vote they place -- that'll make them think tw

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

2003-01-03 Thread Jason Wong
On Saturday 04 January 2003 14:20, gilrain wrote: >// Close file, call script in background, return. >fclose($mailing); >exec("python ncMailer.py >/dev/null &"); >return true; > } > > The mailing file is written fine, and the Python script parses the file and > e-mails fine, as lon

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

2003-01-03 Thread Jason Wong
On Saturday 04 January 2003 13:44, Leif K-Brooks wrote: 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 > But I only want i

Re: [PHP] true ip tracking

2003-01-03 Thread electroteque
its a bit tedious to make anonymous visotors register on the site to vote a poll , so there is no other workaround then ? "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturday 04 January 2003 12:38, electroteque wrote: > > hi i was wondering if

[PHP] exec() not exec-ing?

2003-01-03 Thread gilrain
Hi folks, On previous (good) advice given in my "Timeout during SMTP operation." thread, I've offloaded some work in my function to an external Python script. The script works beautifully when I execute it myself, from the shell, but I can't get my PHP script to execute it for me. My new function

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

2003-01-03 Thread Leif K-Brooks
But I only want it to insert if the page was all lowercase when they went to it. I understand it continuing after redirecting, but why after die()ing too? Putting the insert code into an else statment solved the problem, but it's ugly, and the question still remains... why does it do this? J

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

2003-01-03 Thread Leif K-Brooks
Because URLs are case-sensitive. A user may have cap lock on and go to something like MYPAGE.PHP, but the 404 page is supposed to redirect them to mypage.php. Mike Mannakee wrote: My question would be what's the point? Why have it redirect to itself at all? You could more easily just convert

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

2003-01-03 Thread Jason Wong
On Saturday 04 January 2003 11:00, Leif K-Brooks wrote: > But it shouldn't get to the database insert because of the redirect > either... I only added the die; when it still inserted with the redirect. As you have already found out, the code _does_ continue to execute after the header() redirect.

Re: [PHP] true ip tracking

2003-01-03 Thread Jason Wong
On Saturday 04 January 2003 12:38, electroteque wrote: > hi i was wondering if there was a way to get the clients ip's behind > proxies that hide the HTTP_X_FORWARDED_FOR header ? No. > this is most important > for checking ips for polls except some proxies dont send this important > header ??

[PHP] true ip tracking

2003-01-03 Thread electroteque
hi i was wondering if there was a way to get the clients ip's behind proxies that hide the HTTP_X_FORWARDED_FOR header ? this is most important for checking ips for polls except some proxies dont send this important header ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] locally enabling register_globals?

2003-01-03 Thread electroteque
personally i'd ask for a credit to your account for "damages" as that was bad practice for your provider to upgrade without testing sites first and at least consulting the ppl who sites will break with register globals off "Michael Greenspon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] Newbie Help

2003-01-03 Thread Jason Wong
On Saturday 04 January 2003 06:07, Erich Kolb wrote: Please use a descriptive subject related to your problem. Imagine the confusion if everybody used "Newbie help" or just "Help" as the subject. > Does anyone have an example of how to download newsgroup headers from a > NNTP server and insert t

Re: [PHP] PHP post size question

2003-01-03 Thread Jason Wong
On Saturday 04 January 2003 06:15, David Jeffress wrote: > Hi, > > I'm using PHP to implement a contract database for a midrange hospital. > I'm having trouble configuring (I assume) the post_max_size and > upload_max_filesize to allow for pdf's to be uploaded. > > Presently, these are set to 1008

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

2003-01-03 Thread Mike Mannakee
My question would be what's the point? Why have it redirect to itself at all? You could more easily just convert it to lowercase and insert that value. I can't figure what possible advantage there is to doing the redirect to a custom error page. Only difference is what the user would see in the

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

2003-01-03 Thread Leif K-Brooks
But it shouldn't get to the database insert because of the redirect either... I only added the die; when it still inserted with the redirect. Rick Emery wrote: You'll never get to the die() statement, because you redirected with the header() statement. - Original Message - From: "Leif K

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

2003-01-03 Thread Rick Emery
You'll never get to the die() statement, because you redirected with the header() statement. - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 6:14 PM Subject: [PHP] Still executing afte die()? I have a page called 404.

[PHP] Bit of a logical question (what values to use for a graph)

2003-01-03 Thread Jeff Lewis
I am creating a graph using jpgraph and it is based on values grabbed every 15 minutes. So for the first graph I want to report the values for the last 24 hours. Would it make sense to report 96 points or what is everyones suggestion? The time is stored as a Unix timestamp...the values are server

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Jeff Bluemel
I'll have to play with this. this is not a public website per say so multiple requests on this in a short period of time probably isn't going to be an issue. I'll have to look at this & decide how I want to do this. I'm assuming I either need to do away with this, or make both options selectable

Re: [PHP] Sessions and AOL

2003-01-03 Thread Gerard Samuel
No its not a matter of tying a session to an ip address. Im modifiying some code that works as a "whosonline" on a site at any given time. Currently, it mainly works off ip address, of which we all know isn't accurate. As far as my usage of the word "AOL", that only represents my personal experi

Re: [PHP] PHP running perl running java OR PHP running java?

2003-01-03 Thread Andrew Brampton
Try backticks $yo = `java PFProJava test-payflow.verisign.com 443 ... 30`; echo $yo; Andrew - Original Message - From: "Sam" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Saturday, January 04, 2003 1:37 AM Subject: [PHP] PHP running perl running java OR PHP running java? > > I'

Re: [PHP] locally enabling register_globals?

2003-01-03 Thread Michael Greenspon
Thanks. This is what we've chosen to do-- 'fix' the code. Unfortunately this was all written 'old style' by novices, so 'fixing' it by putting in references to $_GET, $_POST etc. doesn't really lend any clarity to it. Values are still splayed out across multiple pages with no structure. But at leas

[PHP] PHP running perl running java OR PHP running java?

2003-01-03 Thread Sam
I'm in way over my head. the "..." below are where I chopped stuff out for clarity. The perl script "javatest.pl": $ENV{LD_LIBRARY_PATH} .=":.:..:../lib"; $ENV{CLASSPATH} .= ":Verisign.jar:."; print `javac PFProJava.java`; print `java PFProJava test-payflow.verisign.com 443 ... 30;`; me% perl

Re: [PHP] locally enabling register_globals?

2003-01-03 Thread Michael J. Pawlowsky
Why not just fix your code? *** REPLY SEPARATOR *** On 03/01/2003 at 2:50 PM Michael Greenspon wrote: >Our hosting provider installed PHP 4.2 and thus disabled >register_globals by default which our scripts depend on. We don't have >access to php.ini to change this. This is

Re: [PHP] locally enabling register_globals?

2003-01-03 Thread Justin French
Well, I have this in my .htaccess file, so it SHOULD work, but this will depend if your host allows things to changed via .htaccess. php_flag register_globals on You can place this in your root directory, and it will work for your whole site, or place it further down the file hierarchy to o

[PHP] locally enabling register_globals?

2003-01-03 Thread Michael Greenspon
Our hosting provider installed PHP 4.2 and thus disabled register_globals by default which our scripts depend on. We don't have access to php.ini to change this. This is with Apache. I tried putting php_flags register_globals on into .htaccess in the directory(s) with pages that need this but it

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

2003-01-03 Thread Jesus M. Castagnetto
It does not seem to be working at the moment. --- Greg Beaver <[EMAIL PROTECTED]> wrote: > Hello all, > > Josh Eichorn has just finished setting up an open cvs for the phpDocumentor > project (http://www.phpdoc.org). To get a current cvs build, use this > command: > > cvs -d :pserver:[EMAIL PRO

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Philip Hallstrom
> actually - I believe that may be a workable solution. you were mentioning > checking the timestamp on a mysql table. how would I check the timestamp on > a mysql table? see the timestamp data type. > even with this I'm betting it would be more time consuming to create the > table then it woul

Re: [PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Michael J. Pawlowsky
It's a field type called TIMESTAMP... just name it whatever you want and it will update anytime the row is altered. The just select that row item to get the timestamp. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 5:52 PM Jeff Bluemel wrote: >actually - I believe that m

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Jeff Bluemel
actually - I believe that may be a workable solution. you were mentioning checking the timestamp on a mysql table. how would I check the timestamp on a mysql table? even with this I'm betting it would be more time consuming to create the table then it would to pull the info from informix, and pr

[PHP] Re: parse error

2003-01-03 Thread Greg Beaver
In addition to the other errors pointed out... I assume you want a loop. change while($row = mysql_fetch_array($response)); to while($row = mysql_fetch_array($response)) { Take care, Greg -- phpDocumentor http://www.phpdoc.org > while($row = mysql_fetch_array($response)); > > > echo("

RE: [PHP] Sessions and AOL

2003-01-03 Thread Mark Charette
> From: Gerard Samuel [mailto:[EMAIL PROTECTED] > > I was wondering, if for example, an AOL user browses your site that uses > php sessions, > do the session ids change when they hop ip addresses? No. Sessions are not (or should not be!) tied to IP numbers. > Im looking for a better way to coun

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Philip Hallstrom
Hmm... what about querying the informix database for the set of rows you want all at once, putting that into a temporary mysql table with a timestamp and then doing the rest of your work from there. Then the next time it happens check the timestamp on that mysql table and if it's out of date, dele

[PHP] Still executing afte die()?

2003-01-03 Thread Leif K-Brooks
I have a page called 404.php which is set as the 404 page in a .htaccess file. At the top of this file, it has this: if(strtolower($_SERVER['REQUEST_URI']) != $_SERVER['REQUEST_URI']){ header("Location: http://{$_SERVER['HTTP_HOST']}".strtolower($_SERVER['REQUEST_URI'])); die; } which redi

[PHP] Sessions and AOL

2003-01-03 Thread Gerard Samuel
I was wondering, if for example, an AOL user browses your site that uses php sessions, do the session ids change when they hop ip addresses? Im looking for a better way to counteract AOL's ip jumping. Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General M

Re: [PHP] Create Online Test Program

2003-01-03 Thread Hugh Danaher
Devin, I did a 10 question quiz for a local museum which involved using radio buttons and automatic advance to the next question. At the end I summed the correct answers and gave a score. I've wanted to shorten the whole thing and use a mysql table, but... The following snip should give you a bit

Re: [PHP] Excel to MySQL

2003-01-03 Thread Sam
> Does anyone know of a FREE utility that will export data from an MS > Excel file and import it to MySQL. I have found a bunch of nice > utilities, but none of them are FREE. I'm in a bind and have to get > over 2000 rows imported to my database by morning and don't have to > order one of the othe

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Jeff Bluemel
well - the informix database will be running on another server (a telecom billing system). this is a web based front end, and I really want to leave the other system alone 100%. if I were to modify anything I would make the mysql permissions table inside of informix, but there are liability reaso

Re: [PHP] Excel to MySQL

2003-01-03 Thread Joe LoMoglio
Thanks Michael and Richard I took your advice and wrote a PHP script to import it. I was having a hard time getting Excel on my Mac to export to CSV and Tab Delim, but finally got it to give me a plain text file which worked fine with fopen(). Joe On Friday, January 3, 2003, at 02:32 PM, Mi

Re: [PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Michael J. Pawlowsky
That's what I was thinking... or perhaps see it there's someway in Informix to have a trigger call a sql/c app to update your MySQL database. *** REPLY SEPARATOR *** On 03/01/2003 at 3:49 PM Philip Hallstrom wrote: >Any chance you can do a somewhat frequent export from inform

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Philip Hallstrom
Any chance you can do a somewhat frequent export from informix into mysql or the other way around so all your stuff is in one database? -philip On Fri, 3 Jan 2003, Jeff Bluemel wrote: > ok - here's my problem. I have some data in mysql, and other data in > informix. > > here is my application.

[PHP] query join 2 databases? or match up arrays?

2003-01-03 Thread Jeff Bluemel
ok - here's my problem. I have some data in mysql, and other data in informix. here is my application. this is for distributors of prepaid phone cards. prepaid phone cards have 3 numbers they can be identified by pin number (which is unique), or by batch & serial number. the batch number is bas

Re: [PHP] Create Online Test Program

2003-01-03 Thread Michael J. Pawlowsky
What I have is in ColdFusion... And I don't own it (although I did write it). It was written for commercial clients. So I'm hesitant to send it. But this is not hard... Persoanlly what I would do is have 2 db tables... 1-Questions 2-Answers (foreign key to questions). and if you want to save p

Re: [PHP] Help Needed

2003-01-03 Thread Michael J. Pawlowsky
Look at UPDATE at http://www.mysql.com/ *** REPLY SEPARATOR *** On 03/01/2003 at 6:37 PM Pushpinder Singh Garcha wrote: >hello all > I am using php and mysql in my web application. I am making use of >forms to accept data from the user and add it to the mysql database. I

[PHP] Re: How to attach a file to mail()

2003-01-03 Thread Manuel Lemos
Hello, On 01/03/2003 11:40 AM, Föíö Öxî‰êójînyóon wrote: mail($to, $subject, $body, "From: $email"); how do I insert an attachment into this mail function, It would be submitted with file field and would be called attachment. You may want to try this class. All you need to do is to pass the

[PHP] Help Needed

2003-01-03 Thread Pushpinder Singh Garcha
hello all I am using php and mysql in my web application. I am making use of forms to accept data from the user and add it to the mysql database. I also have a login system in place. I need to create a way for the user to edit the information that he/she entered. Can you suggest a way I can

[PHP] please help me, y have a error

2003-01-03 Thread Ysrael Guzmán
this is the message of the ERROR: PHP has encountered an Access Violation at 012B7DE7 what this Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create Online Test Program

2003-01-03 Thread Michael J. Pawlowsky
I've done a few... It all depends on how many question and how many answers. How often will they change. How many will you have. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 2:47 PM Devin Atencio wrote: >Dear PHP Users, > >I am in the process of trying to create an Onlin

[PHP] error

2003-01-03 Thread Ysrael Guzmán
what this error??? PHP has encountered an Access Violation at 012B7DE7 Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Create Online Test Program

2003-01-03 Thread Devin Atencio
Dear PHP Users, I am in the process of trying to create an Online Program that will give questions and possible answers then score the test. I was wondering if anyone has done this type of thing already and might be able to give me some pointers on what the best method of doing this might be? De

Re: [PHP] PHP post size question

2003-01-03 Thread Michael J. Pawlowsky
Did you also set the file size in the HTML input tag? Also take a look at http://www.phpbuilder.com/columns/florian19991014.php3?page=4 Mike *** REPLY SEPARATOR *** On 03/01/2003 at 4:15 PM David Jeffress wrote: >Hi, > >I'm using PHP to implement a contract database for a

Re: [PHP] include/require vs performance

2003-01-03 Thread R . Z .
Sorry if this was not 100% clear. In a nutshell the app I'm making will be available for poeple to use. My feeling is that there will be users using shared servers, which under a stress tend to suck. The only thing in this one I'm doing that;s new to me is having some 20 includes loaded as I ne

[PHP] PHP post size question

2003-01-03 Thread David Jeffress
Hi, I'm using PHP to implement a contract database for a midrange hospital. I'm having trouble configuring (I assume) the post_max_size and upload_max_filesize to allow for pdf's to be uploaded. Presently, these are set to 1008M and 1006M respectively, and a file of size 620K still gives me a "4

[PHP] Newbie Help

2003-01-03 Thread Erich Kolb
Does anyone have an example of how to download newsgroup headers from a NNTP server and insert them into a MySQL DB? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hello and help

2003-01-03 Thread Joseph W. Goff
You are on the right track, but missed one major thing. Anytime you want to retrieve information from a database result set you have to follow 3 basic steps. 1) Connect to the database *you got that one 2) Execute a query *you got that one 3) Retrieve the resultset ***missed this one See http://ww

Re: [PHP] Hello and help

2003-01-03 Thread Richard Baskett
Use this instead: \n"); print ("\n"); print ("\n"); print ("Calender \n"); print ("\n"); print("{$result['meeting_name']}\n") or die ("you suck"); mysql_close ($Link); ?> So basically make sure you escape your double quotes within your print statements, plus yo

Re: [PHP] Excel to MySQL

2003-01-03 Thread Michael J. Pawlowsky
I think BiffWriter might do it... By why not simply output a comma delimited files from excel and import it in with a small php script. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 2:20 PM Joe LoMoglio wrote: >Does anyone know of a FREE utility that will export data from a

Re: [PHP] Excel to MySQL

2003-01-03 Thread Richard Baskett
You could export, or save as a tab delimited text file, then go ahead and use phpMyAdmin or a custom script to pull all that data into the database. It really shouldn¹t be much of a problem coming from Excel. Cheers! Rick "Finish each day and be done with it. You have done what you could; some b

[PHP] Hello and help

2003-01-03 Thread Todd Barr
I am a PHP newbie, and I am having difficulty in getting my records to display here is my code \n"); print ("\n"); print ("\n"); print ("Calender \n"); print ("\n"); print("$result[meeting_name]\n")or die ("you suck"); mysql_close ($Link); ?> any help?

[PHP] Excel to MySQL

2003-01-03 Thread Joe LoMoglio
Does anyone know of a FREE utility that will export data from an MS Excel file and import it to MySQL. I have found a bunch of nice utilities, but none of them are FREE. I'm in a bind and have to get over 2000 rows imported to my database by morning and don't have to order one of the other solu

Re: [PHP] One more form question

2003-01-03 Thread Kevin Stone
- Original Message - From: "David Chamberlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 1:27 PM Subject: [PHP] One more form question > OK, last one was answered quickly and successfully (thank you!), so > here's another one. > > Is there an easy way to se

[PHP] One more form question

2003-01-03 Thread David Chamberlin
OK, last one was answered quickly and successfully (thank you!), so here's another one. 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 ""; $choices = array( 'pub' => 'On Public Page', 'members' => 'Only on

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
Ahhh.that explains it. Just read up on register_globals. I understand now. To make the script work with register_globals off I can just do: $pick = $_GET['pick']; And then the rest works. Thanks! -Dave Joseph W. Goff wrote: Your local version does not have register_globals turned on in

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Kevin Stone
Woops.. sorry I missed the crux of your post. I didn't read all the way down. :) -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "David Chamberlin" <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 1:18 PM Subject: Re: [PHP] Variables that pe

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Kevin Stone
That's just the browser's cache, nothing to do with PHP. Not all browsers will cache succesfully. If you want to guarentee that variables will be stored for later retrieval (or for repopulating a form) then you need to use sessions or store the content of the variables in a database. -Kevin --

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Joseph W. Goff
Your local version does not have register_globals turned on in php.ini. You can either set the value = on or access posted values by using $_POST or $HTTP_POST_VARS depending on your version of php. - Original Message - From: "David Chamberlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

[PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
Hey, I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at some of the examples at: http://www.linuxguruz.org/z.php?id=33 The variables seem to persist through a reload. For example, the first demo has: if (!isset($pick)) { echo "Fill out and submit the form below.";

RE: [PHP] Session Question

2003-01-03 Thread Michael J. Pawlowsky
I use both... and the way I see PHP handling it is like this... First call in it will add the SESSID to the hrefs. Next call (page load) if it finds the cookie it will not append SESSID to URL. However if it doesn't it will. There are a few instance were I need to get the SESSION ID and append

RE: [PHP] Session Question

2003-01-03 Thread ed
Sorry I didn't make myself more clear. I only want to use server side sessions. I don't want to have to rely on a client having cookies enabled in their browser. So far having trans_sid is just doing the trick. I can save values into sessions server side and not explicitly create a client side co

Re: [PHP] Baffling output

2003-01-03 Thread Chris Shiflett
--- Steve Keller <[EMAIL PROTECTED]> wrote: > Here's a good tip someone gave me when I first started > learning PHP: when you're dealing with HTML, it's a good > idea to use \n at the end of your echoed lines and \t's > at the beginnings to create staggered indentations, > this makes it a little ea

RE: [PHP] Session Question

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Does php use cookies for sessions even if you don't explicitly use cookie functions to save session data server side? -- That question doesn't even make sense to me -- cookie functions can't save dat

Re: [PHP] Session Question

2003-01-03 Thread Kevin Stone
In most cases, Yes. Calling session_start() for the first time sets a cookie on the client's computer containing the session id. At the same time the function creates a matching session file on the server. You register whatever variables you want to this file so that when you call session_start

RE: [PHP] Baffling output

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Steve Keller To: [EMAIL PROTECTED] At 1/3/2003 12:25 AM, Lightfirst wrote: Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Yes. ## else { ## echo ""; ## echo ""; ## echo "Hello" ;

Re[2]: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Tom Rogers
Hi, Saturday, January 4, 2003, 3:23:37 AM, you wrote: FML> -Original Message- FML> From: Daevid Vincent FML> To: [EMAIL PROTECTED] FML> echo "action = ".$_POST[action].""; FML> if ($_POST[action] == "1" || $_POST[action] == "0") FML> echo = "UPDATE Company SET Enabled = ".!(intval($_POS

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
Doyou know how to compare time. I would like to get the difference in time from now to when the file was last accessed. I was thinking something like this: \n"; $TimeNow = time(); if ($handle = opendir($DirToCheck)) { while (false !== ($file = readdir($handle))) { $FileTimeUnix = fileatime($

[PHP] Session Question

2003-01-03 Thread ed
Does php use cookies for sessions even if you don't explicitly use cookie functions to save session data server side? TIA, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PEAR extension (mailparse) not working

2003-01-03 Thread Jeff Schwartz
I've just upgraded to PHP 4.3.0 and am unable to get the PEAR extension mailparse to work. I've installed mailparse via PEAR but PHP doesn't seem to see it. It doesn't show up in phpinfo(). What do I need to do to activate it? Thanks, Jeff - Do you Yahoo!

RE: [PHP] Recommend payment processors?

2003-01-03 Thread Chad Day
Paypal is not an option for reasons I won't begin to get into. I'm sure someone is using something solid out there .. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 11:36 AM To: php general Subject: Re: [PHP] Recommend payment processors? I

Re: [PHP] Baffling output

2003-01-03 Thread Steve Keller
At 1/3/2003 12:25 AM, Lightfirst wrote: Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Yes. ## else { ## echo ""; ## echo ""; ## echo "Hello" ; $i++; ## } //for else You start the tags, but whenever your conditional echoes

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Steve Keller
At 1/3/2003 05:21 PM, you wrote: I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exa

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Khalid El-Kary
two problemes here, off-topic, and i didn't see the code to figure out the error but maybe you forgot to remove the "..." parts from each include except the header? regards, Khalid Al-Kary I posted just before, i think i'll try again and re-word... I have split a page up into three sections,

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread R'twick Niceorgaw
I have something that I use to create simple buttons. I use the command line interface version of php to create the buttons offline. However, the function can also be used on an web application easily. I am creating the image with fixed height and width, you can change it by using $i_width and $i_h

RE: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Adam Wilson To: [EMAIL PROTECTED] I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Michael J. Pawlowsky
It's not because of the splitting up... Because the browser does not even know about that. Save both files to disk and do a "diff" on them. I bet there will be a few lines... Mike *** REPLY SEPARATOR *** On 03/01/2003 at 5:21 PM Adam Wilson wrote: >I posted just before,

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Michael J. Pawlowsky
Oops... thought you wanted them to upload a file... So here something else... just modify it to your needs It' the code to the URL I sent you... *** REPLY SEPARATOR *** On 03/01/2003 at 11:58 AM Michael Weiner wrote: >Does someone have a script of php func

RE: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Daevid Vincent To: [EMAIL PROTECTED] echo "action = ".$_POST[action].""; if ($_POST[action] == "1" || $_POST[action] == "0") echo = "UPDATE Company SET Enabled = ".!(intval($_POST[action]))." WHERE CompanyID = $id"; I cannot figure out how to simply make the 0 a

[PHP] PHP intereferes with my Javascript

2003-01-03 Thread Adam Wilson
I posted just before, i think i'll try again and re-word... I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the sou

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Michael J. Pawlowsky
I have something that does it but only with gif since I have the old version of GDLib. But everthing is the same except for the output and the opening from a specific file.. It's not exactly what you are looking for but it will get you started I use a db clas for my db calls so dont try and us

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

2003-01-03 Thread Michael Geier
I searched MARC first, but none of the "answers" there seemed to work. Installing: RH 8 Apache 1.3.27 (--enable-module=so) PHP 4.2.3 (--with-apxs --enable-ftp --with-esoob --with-mcrypt --with-curl --with-openssl, etc.) Openssl 0.9.7 Mcrypt 2.5.3 (--disable-posix-th

Re: [PHP] Re: threads (was "Re: [PHP] BreadCrumb Class")

2003-01-03 Thread Michael J. Pawlowsky
Unfortunately Calypso threads the messages by date etc. Not Mail IDs. It has a "Show references" command that creates threads but I don't keep these mails on my system for more than a day unless there's some really good info in it. So it had no effect for me. It's a great mailer if you have many

[PHP] ImageCreateFromPNG

2003-01-03 Thread Michael Weiner
Does someone have a script of php function or page that has this code working that i can review? I am wanting to create a webpage that will let a user enter in an image name (i.e. a png or whatever) and have php create an image from that... Thanks in advance Michael Weiner -- PHP General Mailin

Re: [PHP] Javascript broken!

2003-01-03 Thread John Nichel
You may want to try a JavaScript mailing list. 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 et

[PHP] Bit manipulation

2003-01-03 Thread Michael J. Pawlowsky
I can't remember who wanted the bit manipulation stuff... But I was looking for something in my bookmarks when I saw this simple little class. I use bits to test for user permissions for specific function. as in if ((int)$user.permissions & (int)$permbit) {} I dont use that class but thought i

[PHP] Javascript broken!

2003-01-03 Thread Adam Wilson
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 a known problem? -

[PHP] Re: threads (was "Re: [PHP] BreadCrumb Class")

2003-01-03 Thread David T-G
Jason, et al -- ...and then Jason Wong said... % % On Friday 03 January 2003 11:50, Michael J. Pawlowsky wrote: % > I was wondering if anyone had a good BreadCrumb class. ... % % You have started a new thread by taking an existing posting and replying to % it while you changed the subject. I tr

Re: [PHP] Recommend payment processors?

2003-01-03 Thread Rick Emery
I use PayPal. Does not require a merchant account. PHP payment interface and interaction is easy to implement. Via HTML in your webpage, you pass to PayPal the URL of the PHP script to be executed when a payment is received. - Original Message - From: "Chad Day" <[EMAIL PROTECTED]> To

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
Oh that would make sense. I was think ahead. I thought the file was loaded into an array and I was like "foreach" in the array. So simple, I didn't see it. Thank you! "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you must prepend $DirToCheck

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Marek Kilimajer
you must prepend $DirToCheck to $file: filemtime($DirToCheck . $file) Christopher J. Crane wrote: I am trying to parse through a directory and get the modification dates of the file. $DirToCheck = "tempdata/"; if ($handle = opendir($DirToCheck)) { while (false !== ($file = readdir($handl

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Chris Hewitt
Roy van Arem wrote: In gd section. hm... I always used to use PHP 3. something and that didn't have half the variables I can set in php4.3.. anyway this is phpinfo: http://62.142.245.64/g/gheos.com/test.php No gd section or png mentioned on that page. Fatal error: Call to undefined

[PHP] [PDF Creation] Insertion of image on a PDF using EzPDF library

2003-01-03 Thread Natacha Salmon
Hi all, Here is my problem. I got a web application, who must build a PDF using datas from a MySQL table and a logo (JPEG format), and send the PDF generated by mail. I manage to build the PDF. Instead of sending it via mail, I tried to open it directly on my browser, IE 6.0. All is ok, I see my

[PHP] Recommend payment processors?

2003-01-03 Thread Chad Day
Just wondering what people are using/recommend out there.. I'm going to be getting a merchant account and let people purchase services through my website on a secure server, all in PHP. What concerns me is this archived post I came across: http://marc.theaimsgroup.com/?l=php-general&m=10216562360

  1   2   >