Re: [PHP] check is pop address

2003-06-11 Thread Chris Hayes
At 17:06 10-6-03, you wrote: Hi there, I was wondering whether someone could tell me whether it is possible to use PHP to check whether a user supplied email address is a pop address as opposed to a web based address like hotmail. Have done some searching but cant seem to turn any answers up.

RE: [PHP] check is pop address

2003-06-11 Thread Chris Kay
You can now pop hotmail accounts as well, not to mention most email providers have web based systems for their customers to read/send mail. - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone:

RE: [PHP] check is pop address

2003-06-11 Thread Adrian Teasdale
Chris If you use a service like geoip I know that they have a list of all the free email providers and you can check against this database. This is useful as one tool for anti-fraud checking. Not sure if this is what you were looking for, but I thought I'd throw it in. Ade sourceguardian.com

[PHP] creation of a robot

2003-06-11 Thread Adrian Teasdale
Hi there We have a requirement to create a robot to search for specific keywords on the web. Has anyone done this before and have any suggestions as to where we should start? I don't think that this is a light undertaking! :) Are there any existing tools out there which can be plugged in to do

[PHP] adding confirmation to an existing upload form

2003-06-11 Thread Artoo
Hi, I have an upload script in which the user selects an image to upload, and a brief description. I would like to have some kind of confirmation that allows the user the ability to upload the file and description or go back and make changes. I was thinking of adding to the beginning of the

Re: [PHP] My SQL not getting row

2003-06-11 Thread Jason Wong
On Wednesday 11 June 2003 13:31, Ben Houlton wrote: The bit of my code that I'm working on is here: if ($submit) { if ($id) { $sql = UPDATE pages SET sub='$sub' msg='$msg',name='$name',email='$email',newday='$newday' WHERE id=$id; } else { $sql = INSERT INTO pages

[PHP] Re: creation of a robot

2003-06-11 Thread Manuel Lemos
Hello, On 06/11/2003 04:28 AM, Adrian Teasdale wrote: We have a requirement to create a robot to search for specific keywords on the web. Has anyone done this before and have any suggestions as to where we should start? I don't think that this is a light undertaking! :) Are there any existing

RE: [PHP] check is pop address

2003-06-11 Thread Chris Hayes
At 09:25 11-6-03, you wrote: Chris Actually Phil S started this thread If you use a service like geoip I know that they have a list of all the free email providers and you can check against this database. This is useful as one tool for anti-fraud checking. Not sure if this is what you were

Re: [PHP] How to show BLOB ?

2003-06-11 Thread Roman Duriancik
I have a blob in the database. I want to open a file=BLOB in the browser such a way as if I clicked on a link. So if it is pdf, its opened by pdf plugin, if it is doc, it is open by word plugin, if it is zip the dialog for opening/saving to disk is opened, if it is jpeg it is directly displayed in

Re: [PHP] adding confirmation to an existing upload form

2003-06-11 Thread Jason Wong
On Wednesday 11 June 2003 15:45, Artoo wrote: I have an upload script in which the user selects an image to upload, and a brief description. I would like to have some kind of confirmation that allows the user the ability to upload the file and description or go back and make changes. I

RE: [PHP] adding confirmation to an existing upload form

2003-06-11 Thread Ralph
If you want them to preview then commit, simply give the SEND PHOTO TO SERVER button a name like: input type=button NAME=send_photo value=SEND PHOTO TO SERVER then in your code you can simply check for $_POST['send_photo'] before calling the function that saves the image like:

Re: [PHP] Re: Zend encoding and security

2003-06-11 Thread Zeev Suraski
At 16:27 09/05/2003, Manuel Lemos wrote: I've been using the Turck MM Cache for 3 months now and the performance is amazing :) Yes, their benchmarks show that it pratically matches Zend products performance, thus beating all the others. Except they only compare it to the entry-level product from

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Ryan A
So dont buy it...download a free copy and for the next month or so bounce all the spam crap back to the spammersat least you will be taken off some of their lists as your address will be marked as invalid... Just my 2 cents coz thats what i am doing, cant do much else can we? Cheers, -Ryan

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Randum Ian
Isn't there a Don't Spam Me Or Else list now up and running as part of the Data Protection Act and if your email is on there and they still send spam you can report it to the officials of the country they originate from? So dont buy it...download a free copy and for the next month or so bounce

[PHP] Sort of a multidimensional array

2003-06-11 Thread Armand Turpel
Hi, Is there a simple way to sort the following array structure by the array cell 'title'='TXx'? $x[0][0] = array(array('id'=1,'title'='TXx'),array('id'=2,'title'='T2')); $x[0][1] = array('id'=10,'title'='Test1'); $x[1][0] =

[PHP] Math: Adding DB numbers to PHP script number

2003-06-11 Thread Ben Houlton
I'm trying to add a number from my database ($id) and add it to a number (1) so that the link with http://x/index.php?id=#(+1) (no +1 this is just example) has a the right id number not the one before it. But I'm stuck on the problem where the http://x/index.php?id=0 not the latest id

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Ryan A
Not that I know of but if you know of such a lovely place...please do enlighten me :-) Besides a lot of spam comes from offshore servers where no real country is responsible...and most countries are not bothered anyway. Spam is big business and I read on google a site is charging around 150$ a

[PHP] string question

2003-06-11 Thread Mukta Telang
Hi, if a string is: $x=A.B. XYZ; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not A.B. XYZ ! What should I do? Mukta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Randum Ian
A site like this could have it's legitimate uses such as a mail server for a large net company but most people abuse it. The only problem these days is that they don't use one email address, the program actually generates a random address each time so it just comes in all the time! :o( Not that

Re: [PHP] Sort of a multidimensional array

2003-06-11 Thread Chris Hayes
At 11:18 11-6-03, you wrote: Hi, Is there a simple way to sort the following array structure by the array cell 'title'='TXx'? $x[0][0] = array(array('id'=1,'title'='TXx'),array('id'=2,'title'='T2')); $x[0][1] = array('id'=10,'title'='Test1'); $x[1][0] =

Re: [PHP] Sort of a multidimensional array

2003-06-11 Thread Armand Turpel
Thanks for your reply. But it is impossible to arrange the array as you suggest, in this case. - Original Message - From: Chris Hayes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 11:49 AM Subject: Re: [PHP] Sort of a multidimensional array At 11:18 11-6-03,

[PHP] Problem retrieving URLs

2003-06-11 Thread French, Alastair
Hi all I am having a few problems retrieving URLs from within PHP. I am using the following to get the URL ? $lines = file($URL); foreach ($lines as $line_num = $line) { echo Line #b{$line_num}/b : . htmlspecialchars($line) . br\n; } ? It works fine even for .htaccess protect areas

[PHP] what can i store in the DB

2003-06-11 Thread - \[ Paul Ferrie \] -
Hi guys, I am not really an expert in this I just learn what I need to know when I need to know it. I am building a flash tutorials section for my site http://www.innovativedesigns.org.uk The section is my first real attempt at using php+mysql without having to check the books or reference files

RE: [PHP] string question

2003-06-11 Thread John W. Holmes
if a string is: $x=A.B. XYZ; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not A.B. XYZ ! What should I do? Learn HTML. Use quotes around your attribute values: input type=hidden name=foo value=A.B. XYZ ---John W. Holmes... Amazon

Re: [PHP] what can i store in the DB

2003-06-11 Thread Awlad Hussain
You can store image as BLOB in DB I would recomend you download mysql manual from www.mysql.com, very useful awlad - Original Message - From: - [ Paul Ferrie ] - [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 11:46 AM Subject: [PHP] what can i store in the DB

RE: [PHP] Math: Adding DB numbers to PHP script number

2003-06-11 Thread John W. Holmes
I'm trying to add a number from my database ($id) and add it to a number (1) so that the link with http://x/index.php?id=#(+1) (no +1 this is just example) has a the right id number not the one before it. But I'm stuck on the problem where the http://x/index.php?id=0 not the latest

Re: [PHP] Re: Zend encoding and security

2003-06-11 Thread Manuel Lemos
Hello, On 06/11/2003 06:08 AM, Zeev Suraski wrote: At 16:27 09/05/2003, Manuel Lemos wrote: Have you been on vacation or just working really hard to beat Turck? :-) I've been using the Turck MM Cache for 3 months now and the performance is amazing :) Yes, their benchmarks show that it

Re: [PHP] what can i store in the DB

2003-06-11 Thread Awlad Hussain
Paul check the tutorial on Storing Images in Database http://codewalkers.com/tutorials/35/2.html good luck.. BTW cool flash work :) - Original Message - From: - [ Paul Ferrie ] - [EMAIL PROTECTED] To: Awlad Hussain [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 12:05 PM Subject: Re:

Re: [PHP] what can i store in the DB

2003-06-11 Thread Paul Ferrie
cheers m8 Just what i was looking for :) Thanx again Awlad Hussain [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Paul check the tutorial on Storing Images in Database http://codewalkers.com/tutorials/35/2.html good luck.. BTW cool flash work :) - Original Message -

Re: [PHP] string question

2003-06-11 Thread Chris Hayes
At 16:42 11-6-03, you wrote: if a string is: $x=A.B. XYZ; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not A.B. XYZ ! What should I do? how do you assign the value to the hidden form element? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] string question

2003-06-11 Thread Brian V Bonini
On Wed, 2003-06-11 at 10:42, Mukta Telang wrote: Hi, if a string is: $x=A.B. XYZ; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not A.B. XYZ ! What should I do? Mukta $x = 'A.B. XYZ'; -- PHP General Mailing List (http://www.php.net/)

[PHP] Switch function problem

2003-06-11 Thread Stephen Goddard
Hi Folks, Anyone know if you can use operators in a switch function? eg. switch ($category){ case FFS || FHG || FRG: $soldID = SFFS; break; case DPT || DL || DF || DI || DO: $soldID = SDPT; break; } Cheers -- PHP General Mailing List

[PHP] Help with a UBB Code style parser...

2003-06-11 Thread Bix
Hi all... I already have a bbcode style parser for my content ie: $output = str_replace([b],'b',$output); $output = str_replace([/b],'/b',$output); $output = str_replace([i],'i',$output); $output = str_replace([/i],'/i',$output); $output = str_replace([img],'img src=\',$output); $output =

[PHP] Re: Switch function problem

2003-06-11 Thread Bix
Cant be done mate, do it like this... switch ($val){ case FFS: case FHG: case FRG: //stuff break; case DPT: case DL: case DF: case DI: case DO: //stuff break; } The cases pass through each other till they hit a 'break' ;o) Bix Stephen Goddard [EMAIL PROTECTED] wrote in message

RE: [PHP] Switch function problem

2003-06-11 Thread Ford, Mike [LSS]
-Original Message- From: Stephen Goddard [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 12:48 To: [EMAIL PROTECTED] Subject: [PHP] Switch function problem Hi Folks, Anyone know if you can use operators in a switch function? eg. No. Do this: switch ($category){ case

[PHP] Striping Tags in Reverse, howto?

2003-06-11 Thread Tariq Murtaza
Dear All, Hope someone could shed some light over. :) I am looking for something like strip_tags ($str, brhri) but in reverse operation. This will strip all tags except brhri tags, but I need to strip these tags only (brhri) keeping the rest unchanged. Any help / hint will be highly

[PHP] Re: Help with a UBB Code style parser...

2003-06-11 Thread Manuel Lemos
Hello, On 06/11/2003 08:49 AM, Bix wrote: Hi all... I already have a bbcode style parser for my content ie: $output = str_replace([b],'b',$output); $output = str_replace([/b],'/b',$output); $output = str_replace([i],'i',$output); $output = str_replace([/i],'/i',$output); $output =

[PHP] Php code to create php code

2003-06-11 Thread Sancar Saran
Hi, Is there any example or/and tutorial for create php code with using php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Kevin Saenz
I think we are wy off topic. But how do you know if they are sending from a legit email account I know if I was a spammer I would be using made up ones like [EMAIL PROTECTED] [EMAIL PROTECTED] how hard is it to forge email addresses? So dont buy it...download a free copy and for the next

Re: [PHP] Php code to create php code

2003-06-11 Thread Ernest E Vogelsinger
At 14:05 11.06.2003, Sancar Saran said: [snip] Hi, Is there any example or/and tutorial for create php code with using php. [snip] It's simple, frankly: $code = EOC echo 'Hello World, the current time is ',

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Randum Ian
That's what they do. You can put any email address in the From: part of the email and then it is nearly impossible to trace where it was sent from. I think we are wy off topic. But how do you know if they are sending from a legit email account I know if I was a spammer I would be using

Re: [PHP] Generate PHP using PERL???

2003-06-11 Thread Todd Snyder
Why bother going through a system call? If you have apache loading both mod_php and mod_perl, you can call (include or whatever) through normal http methods. Joel, I was responding to your post. My intent is to minimize rewrite of my existing code. I do wonder why my host wont load the perl

RE: [PHP] Questions, questions, questions...

2003-06-11 Thread Jay Blanchard
[snip] Question: Why doesn't the PHP community support using an Hungarian style of programming if it prevents errors?? I've gotten too darn many Haven't really seen this one flamed over on this list before, but maybe someone will step in an freak out later on. At any rate, you make the

Re: [PHP] Generate PHP using PERL???

2003-06-11 Thread Todd Snyder
Below was their reply to me when requesting info about the imagemagick perl module Thank you for contacting iPowerweb technical support. We do have image magic for PHP, but the one for Perl we do not have and cannot install. You may or may not be able to shrink images. Contact the creators of

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Ernest E Vogelsinger
At 14:08 11.06.2003, Kevin Saenz said: [snip] I think we are wy off topic. But how do you know if they are sending from a legit email account I know if I was a spammer I would be using made up ones like [EMAIL PROTECTED] [EMAIL PROTECTED] how hard is it

[PHP] Sessions and login

2003-06-11 Thread Angelo Zanetti
Hi guys kinda new to php. Ok I have a php page that a user has to enter a pw to gain access to another page (lets call it authPage).However before I i can grant access to authPage I want to verify 1. that a pw was entered and 2. that it is correct. So I thought it would be better NOT to do the

RE: [PHP] Sessions and login

2003-06-11 Thread Wim Paulussen
page 1 : login.php input user name - Post veriable input password- post variable page 2 : verify.php session_start() // supposing name is entered if (!$_POST['password'] == ) { // verification against database if (successfully authenticated) {

Re: [PHP] Sessions and login

2003-06-11 Thread Mario Oberrauch
... [shortened] Then I want the session to call authPage (because the pw is correct) together with the session variable. The way I am doing this (doesnt seem to be working) is to call authPage with as a header call eg: header(Location: authPage.php); The problem I think I am having is

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Kevin Saenz
Thanks dude my spamassassin caught it and killed your example. :) At 14:08 11.06.2003, Kevin Saenz said: [snip] I think we are wy off topic. But how do you know if they are sending from a legit email account I know if I was a spammer I would be

[PHP] String manipulation

2003-06-11 Thread Marios Adamantopoulos
Hi all I wonder if anyone can help with this. I have a piece of copy that includes this: [link][title]the link[/title][address]http://www.php.net[/address][/link] And I need to change it to this: a href=http://www.php.net;the link/a Any help is appreciated Mario

Re: [PHP] string question

2003-06-11 Thread Leif K-Brooks
Put quotes around the value attribute of your input tag, for example input type=hidden name=x value=A.B. XYZ / Mukta Telang wrote: Hi, if a string is: $x=A.B. XYZ; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not A.B. XYZ ! What should I

[PHP] What XML-RPC implementation should I use?

2003-06-11 Thread Evandro Sestrem
Hi, What XML-RPC implementation to PHP should I use? I'm using the implementation from Useful (http://phpxmlrpc.sourceforge.net), but I'm having troubles. When the client receives a response from my server and this response is a array of struct with more than 1 item, occurs a problem. When

Re: [PHP] Re: Help with a UBB Code style parser...

2003-06-11 Thread Leif K-Brooks
Even better, try my BBCode class. Much more flexible. http://www.phpclasses.org/browse.html/package/951.html Manuel Lemos wrote: Hello, You may want to try this class: Class: UBBCode http://www.phpclasses.org/ubb -- The above message is encrypted with double rot13 encoding. Any unauthorized

Re: [PHP] String manipulation

2003-06-11 Thread Jake Johnson
Use the substr function to get the part you want. Then prefix/suffix the parts you want. //you may want to derive the positions as vars $rest = substr(abcdef, 1, 3); // returns bcd //you may want to put the link name into a var as well for below $rest = a href=\ . $rest . the link/a Good

[PHP] shorthand if notation

2003-06-11 Thread adrian GREEMAN
I am confused by the shorthand if notation. For example I just saw this PHP snippet on another forum ? $bkgndClass = $bkgndClass == darkBkgnd ? liteBkgnd : darkBkgnd; } ? I think it is an if but cannot find it in the manual. How is that written in the more normal notation - if(){}

[PHP] prevent modifying querystring

2003-06-11 Thread Awlad Hussain
for example i have form with a dropdown selection as shown below. FORM action=action.php SELECT name=total OPTION1/OPTION OPTION2/OPTION OPTION3/OPTION OPTION4/OPTION OPTION5/OPTION /SELECT /FORM Just say I have a function to generate form fields based on the total variable from above...

RE: [PHP] shorthand if notation

2003-06-11 Thread Dan Joseph
Hi, -Original Message- I am confused by the shorthand if notation. For example I just saw this PHP snippet on another forum Basically: (condition) ? true : false; Example: $var == red; ($var == red) ? echo 'true' : echo 'false';

[PHP] PHP and .htaccess

2003-06-11 Thread ed
I didn't want to steal a thread so here's a new one. I've seen this subject come up alot since joining the list last fall and believe that the question meant to be asked never got the expected answer simply because it wasn't asked in the correct way, myself being one of the culprits. From

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Chris Hayes
1st step: read out form results from $_POST['total'] (possible since PHP 4.10), not from $total. Variables added to the url will not be in the $_POST array but in $_GET. When reading the form result, make sure the referering page is from your own site, or else they can simply make their own

[PHP] Re: Initialized PHP Module frequently

2003-06-11 Thread andre . lagadec
Hello, I change the Unix right on directory https-exp3/config and now there is a core So, I can generate a backtrace with this command gdb /produits/netscape/server41sp9/bin/https/bin/ns-httpd /produits/netscape/server41sp9/https-exp3/config/core.andre And I get : GNU gdb 4.18 Copyright 1998

[PHP] form name and submit test

2003-06-11 Thread Amanda McComb
If I have multiple forms on a page, and each form has it's own name, how can I tell which form has submitted? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Awlad Hussain
Thanks for your recommendations, what if they use page.php?$_POST[$total]? instead of $toal?? wouldn't the outcome be the same? is there good article on this subject? I think this is quite important in developing secure application, I have googled but no luck Thanks again awlad - Original

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Chris Hayes
At 16:43 11-6-03, you wrote: Thanks for your recommendations, what if they use page.php?$_POST[$total]? $_POST is made by PHP and you can rely on it to be safe for such tricks, especially because your trick will not even work with normal arrays. instead of $toal?? wouldn't the outcome be the

[PHP] Is this possible?

2003-06-11 Thread Steve Marquez
Hello PHP List, I would like to use links such as: a href=index.php?tablename=tabletable/a The resulting page would have a line on it like such: $query = SELECT * FROM $table; Is this possible? If so, is there maybe a better way to do this? Also, is it possible to show the names of the

Re: [PHP] Is this possible?

2003-06-11 Thread Ryan A
Hey, Whats the problem with this a href=index.php?tablename=tabletable/a ? its a perfectly legal bit of HTML...wheres your doubt? in index.php just get the variable like this $blah=$_GET['tablename']; then run $blah in your select query. Either this is just too simple or i dont really

Re: [PHP] Best PHP books

2003-06-11 Thread Step Schwarz
Does anyone have any recommendations for a good PHP book? I recommend Larry Ullman's PHP Advanced (a Visual QuickPro Guide). I'm looking for a book that has at least a complete function reference [...] You're better off using php.net for this. Its function reference is always up-to-date and

Re: [PHP] Is this possible?

2003-06-11 Thread Chris Hayes
Please read these pages: http://de.php.net/release_4_1_0.php http://de.php.net/manual/en/security.registerglobals.php if your PHP setting called register_globals is turned on, then the code you propose would allow hackers to ask anything they want to your database, including destructive options.

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Ryan A
Ok, was away will try to catch up. The company of scumbags i was talking about is http://blackboxhosting.com/, as you might have guessed i dont like these scum and have nothing to do with them. Even if the program generates random addresses as a lot of spammers do mailwasher has no problem

Re: [PHP] Is this possible?

2003-06-11 Thread Chris Hayes
At 18:06 11-6-03, you wrote: Hey, Whats the problem with this a href=index.php?tablename=tabletable/a ? its a perfectly legal bit of HTML...wheres your doubt? in index.php just get the variable like this $blah=$_GET['tablename']; then run $blah in your select query. Either this is just too

Re: [PHP] Best PHP books

2003-06-11 Thread Chris Hayes
At 17:08 11-6-03, you wrote: Does anyone have any recommendations for a good PHP book? I recommend Larry Ullman's PHP Advanced (a Visual QuickPro Guide). or the PHP4 bible, by Park Converse, second edition (!). I'm looking for a book that has at least a complete function reference [...]

RE: [PHP] Is this possible?

2003-06-11 Thread Jay Blanchard
[snip] Please read these pages: http://de.php.net/release_4_1_0.php http://de.php.net/manual/en/security.registerglobals.php if your PHP setting called register_globals is turned on, then the code you propose would allow hackers to ask anything they want to your database, including destructive

Re: [PHP] Admin Login

2003-06-11 Thread Cory Hicks
Ben, How about some session vars that denote you being an admin? This way you could show these options if $_SESSION[user_info] == 'Admin' is true. If you need more, let me know. Cory On Tue, 2003-06-10 at 22:12, Ben Houlton wrote: How do I make it so when I log in the options such as delete

[PHP] can't figure out how to get this dynamic dropdown to work correctly

2003-06-11 Thread Amanda McComb
I have a form with two dynamic dropdowns that submit the form when an option is chosen. There is also a button at the bottom of the form that submits the form. The first drop down is a list of all customers. The user chooses a customer, and a query is run that populates all of the fields

[PHP] need help with while loop/rtf generator page

2003-06-11 Thread r-militante
hi all i'm having trouble with the this page. not sure if i'm approaching the problem the right way. i'm basically passing search criteria to a page. i'm using the search criteria to construct a sql query dynamically. i'm using the sql query in a while loop that cycles through the db and

[PHP] cache

2003-06-11 Thread Diana Castillo
what code can I put at the begining of a php page so that the result from the cache is never shown ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Downloading a file.

2003-06-11 Thread Vincent M.
Hello, To download a file after a form like that: form name=download action=downloadit.php method=post Do you want to download? /form If he wants to download, in the file downloadit.php, there is: header(Content-type: application/octet-stream\n); header(Content-Disposition: attachment;

[PHP] Re: Random Image Store

2003-06-11 Thread Hugh Bothwell
Monil Chheda [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to create an php system that prevents automated registrations. I have come up with the script in which users come over and need to enter a random key displayed on the images while submitting their info. If the

RE: [PHP] getting page title using PHP

2003-06-11 Thread Brian Paulson
Tim, Here is a function that we use to retrieve the title of the page function title($filename,$dir) { $loc = $dir/$filename; if(@is_file($loc/$filename)) { $open=fopen($loc/$filename,r); while(!feof($open))

Re: [PHP] Downloading a file.

2003-06-11 Thread Alex Earl
If he wants to download, in the file downloadit.php, there is: header(Content-type: application/octet-stream\n); header(Content-Disposition: attachment; filename=mysoft-1.0-truc.zip); header('Cache-Control: public'); header(Content-transfer-encoding: binary\n); header(Content-length: .

Re: [PHP] String manipulation

2003-06-11 Thread Wendell Brown
On Wed, 11 Jun 2003 14:53:13 +0100, Marios Adamantopoulos wrote: [link][title]the link[/title][address]http://www.php.net[/address][/link] And I need to change it to this: a href=http://www.php.net;the link/a E, fun try this :) ?PHP $in = '[link][title]the

[PHP] getting file contents

2003-06-11 Thread Matt Palermo
I have text a file which contains php code. I am using it as a template for some other pages. I want to take everything in that file and store it in a string or array and then output it all to an empty file (this will make both files look exactly the same). I am using the file_get_contents()

Re: [PHP] getting file contents

2003-06-11 Thread Alex Earl
I have text a file which contains php code. I am using it as a template for some other pages. I want to take everything in that file and store it in a string or array and then output it all to an empty file (this will make both files look exactly the same). I am using the

RE: [PHP] shorthand if notation

2003-06-11 Thread Ford, Mike [LSS]
-Original Message- From: adrian GREEMAN [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 15:23 I am confused by the shorthand if notation. For example I just saw this PHP snippet on another forum ? $bkgndClass = $bkgndClass == darkBkgnd ? liteBkgnd : darkBkgnd; } ? I think

[PHP] Preventing caching using PHP headers

2003-06-11 Thread Stephen Jones
Has anyone used this and found it helpful? For dynamically generated pages, yes, but is there any advantage for static pages that happen to be PHP? From a good caching tutorial at: http://www.mnot.net/cache_docs/#IMP-SCRIPT The header cited: code ?php Header(Cache-Control: must-revalidate);

Re: [PHP] form name and submit test

2003-06-11 Thread Steve Keller
At 6/11/2003 09:42 AM, Amanda McComb wrote: If I have multiple forms on a page, and each form has it's own name, how can I tell which form has submitted? By its contents. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508

RE: [PHP] Sessions and login

2003-06-11 Thread Ford, Mike [LSS]
-Original Message- From: Wim Paulussen [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 14:28 page 1 : login.php input user name - Post veriable input password- post variable page 2 : verify.php session_start() // supposing name is entered if (!$_POST['password'] == )

Re: [PHP] form name and submit test

2003-06-11 Thread Alex Earl
At 6/11/2003 09:42 AM, Amanda McComb wrote: If I have multiple forms on a page, and each form has it's own name, how can I tell which form has submitted? By its contents. Give the submit buttons different names, then you can test to see which one is set to see which form was

Re: [PHP] getting file contents

2003-06-11 Thread Jason Wong
On Wednesday 11 June 2003 23:54, Matt Palermo wrote: I have text a file which contains php code. I am using it as a template for some other pages. I want to take everything in that file and store it in a string or array and then output it all to an empty file (this will make both files look

[PHP] fastest parsing first!

2003-06-11 Thread Thomas Hochstetter
Hi, I have a question concerning the parsing of scripts. The question is what will be parsed the quickest: much inline php (dirty) code, or let the code generate the html on the fly? I frequently use css ALOT! Does that make any difference to php (apart from making the file quite messy)? Any

RE: [PHP] fastest parsing first!

2003-06-11 Thread Jay Blanchard
[snip] I have a question concerning the parsing of scripts. The question is what will be parsed the quickest: much inline php (dirty) code, or let the code generate the html on the fly? I frequently use css ALOT! Does that make any difference to php (apart from making the file quite messy)?

RE: [PHP] fastest parsing first!

2003-06-11 Thread Thomas Hochstetter
It really depends, mostly it is external ... to accommodate small variations I have some style attributes around. T -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 11 June 2003 06:30 PM To: Thomas Hochstetter; [EMAIL PROTECTED] Subject: RE: [PHP] fastest parsing

[PHP] ereg_replace question

2003-06-11 Thread Todd Cary
I have a string, D:\Htdocs\gilardi\barcode\php\testwrite.php from $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED]; I want to remove the "testwrite.php" leaving D:\Htdocs\gilardi\barcode\php\ This does not work $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED]; $fullpath =

[PHP] Apache to compile PHP and Ruby languages in the same document?

2003-06-11 Thread Keith Hamilton
Hello, I'm trying to create one document with PHP and Ruby scripts in the same document. Is this possible? I've tried to configure mod_ruby to compile php documents as well but when I do that PHP doesn't work. Is it possible to have 2 languages in the same document? -- Keith -- PHP

Re: [PHP] getting file contents

2003-06-11 Thread Matt Palermo
I would just copy the file, but I am not sure how to copy the file and paste it in the same folder with a different name. Any advice you can give for that? Thanks. Matt - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 12:27 PM

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Ray
so your one of those people tha bounce them. i have had my email address used in a number of spams (and a few virus sends) and it blows! the bounces follow the from. the spammer has no clue that it bounced, nor do they really care. instead there is someone (sometimes) at the other end of

[PHP] Re: ereg_replace question

2003-06-11 Thread Rob Adams
Todd Cary [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] snip I have a string, This does not work $fullpath = $HTTP_SERVER_VARS[PATH_TRANSLATED]; $fullpath = ereg_replace(\\[^\\]+$,,$fullpath) . '\\'; What have I missed? Todd /snip -- You could just use: $path =

[PHP] undefined variable: action

2003-06-11 Thread Ryan M
Hows it goin?? Im pretty new to this, so I have a pretty simple question. I am running an apache server with php 4 on a win 2k machine. When I try to do something like this: ? echo a href=\index.php?action=someaction\Some Action/a; if ($action == someaction) { echo Anything; } ? It says:

[PHP] array sort help...

2003-06-11 Thread Dan Joseph
Hi, I cannot figure this out... Need some assistance. I have an array: $jack[#] = array( loan_info = 101, first_name = jack, last_name = mother ); # = 0 thru 12 I want to sort the array by

RE: [PHP] undefined variable: action

2003-06-11 Thread Jay Blanchard
[snip] Hows it goin?? Im pretty new to this, so I have a pretty simple question. I am running an apache server with php 4 on a win 2k machine. When I try to do something like this: ? echo a href=\index.php?action=someaction\Some Action/a; if ($action == someaction) { echo Anything; } ? It says:

Re: [PHP] undefined variable: action

2003-06-11 Thread Ryan M
Thanks for the advice... The link worked Now it is saying this: Notice: Undefined index: action in It only says this if there is no action...it goes away once I click the link and the action=someaction Is there a way to fix my php so that I dont have to change all of the web sites

  1   2   >