RE: [PHP] Passing data between the web to an Intranet

2003-03-27 Thread Ernest E Vogelsinger
Here's some ideas how I'd go for something like that. I'd have some PHP on the externally hosted website, and some PHP on the Intranet/CRM-DB server. At 08:39 27.03.2003, Steve Jackson said: [snip] gathering tool. Basically what I'll need to set-up is some

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vsglobal $myvar?

2003-03-27 Thread Marek Kilimajer
variables inside single quotes are not evaluated! This is the same variable: echo $GLOBALS['var']; $key='var'; echo $GLOBALS[$key]; With $GLOBALS['$key'] you refer to an invalid variable name $'$key' PS: Output of echo GLOBALS['$key'] = $valuebr\n; is right because $key is in double quotes (the

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-27 Thread Ernest E Vogelsinger
At 09:24 27.03.2003, Marek Kilimajer said: [snip] echo GLOBALS['$key'] = $valuebr\n; is right because $key is in double quotes (the outermost qoutes) [snip] ...almost... the array deref should be in curly quotes

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vsglobal $myvar?

2003-03-27 Thread Marek Kilimajer
there is no $ in front of GLOBALS ;) Ernest E Vogelsinger wrote: At 09:24 27.03.2003, Marek Kilimajer said: [snip] echo GLOBALS['$key'] = $valuebr\n; is right because $key is in double quotes (the outermost qoutes)

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-27 Thread Ernest E Vogelsinger
At 09:46 27.03.2003, Marek Kilimajer said: [snip] there is no $ in front of GLOBALS ;) [snip] right you are - I noticed it as soon as the message was out... sometimes one's too fast hitting the send button ;-) --

[PHP] version

2003-03-27 Thread Diana Castillo
How can I tell which version of php I have? I didnt see it with phpinfo() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] version

2003-03-27 Thread Ernest E Vogelsinger
At 10:01 27.03.2003, Diana Castillo said: [snip] How can I tell which version of php I have? I didnt see it with phpinfo() [snip] phpversion() http://www.php.net/manual/en/function.phpversion.php -- O

Re: [PHP] How do i valadate an email address?

2003-03-27 Thread AzFLSite
I keep forgetting to do the reply to all thing! :) Here it is for anyone else as well. if (!eregi('[EMAIL PROTECTED],5}$',$email)) { echo 'Invalid email address'; } else { //do whatever } That should do it. Sometimes I get these wrong off the top of my head. Silly --- Philip J. Newman

Re: [PHP] getimagesize

2003-03-27 Thread Diana Castillo
no that doesnt work, anything else? Dan Rossi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] @getimagesize ? -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 5:04 AM To: [EMAIL PROTECTED] Subject: [PHP] getimagesize

[PHP] MD5 in PHP and MD5 in Perl dont match up.

2003-03-27 Thread Steven Carr
Hello All, Im having trouble with compatibility between MD5 Digest in Perl and in PHP. They dont give the same results. Perl #!/usr/local/bin/perl use strict; use Digest::MD5 (); my $to_be_hashed = Cheese; my ($hash) = Digest::MD5-md5_hex($to_be_hashed); print to_be_hashed :

Re: [PHP] user permission system (integer to small)

2003-03-27 Thread Marek Kilimajer
I would use array $user_perm ( 1 = false, // for admin 2 = true // for news 4 = true // news_create 8 = false // news_delete . . . ) as you can see there are gaps that you can use for other permissions, and this way all you need is to rewrite if($user_perm $perm == $perm ) to

[PHP] Fw: MD5 in PHP and MD5 in Perl dont match up.

2003-03-27 Thread Steven Carr
Im Very Sorry / Embarrased.. my code example had a mistake with extra linebreak. Here is the example with out it, which gives a different MD5 hash. The PHP is .. $data = Cheese; print Data: '$data' P\n; $new_hash = md5($data); print RE HASH ' $new_hash ' P\n; Output Data: 'Cheese'

Re: [PHP] How do i valadate an email address?

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 14:44, Philip J. Newman wrote: How would i check that an e-mail has the right parts in it. for example. username @ domain . ext You would check the archives because this has been covered more times than I have fingers to keep count with. -- Jason Wong - Gremlins

Re: [PHP] Web server request redirection

2003-03-27 Thread David Otton
On Thu, 27 Mar 2003 00:10:34 +0100, you wrote: Ray Hunter wrote: They are two: 1/ php+apache/linux webserver (reachable from outside) 2/ iis/w2k running web service (behind firewall) You can also create scripts that receive post data and then submit that data to another server via php or

Re: [PHP] Checkbox

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 03:26, Reuben D. Budiardja wrote: But isn't it so much easier to type in that one line HTML + javascript than trying to get an image of a checked check box.. unless you have that handy, you'd have to eg. take a snapshot, or draw something, then save the file as

Re: [PHP] MD5 in PHP and MD5 in Perl dont match up.

2003-03-27 Thread Marek Kilimajer
In PHP.. $data = Cheese\n; - trailing newline char Steven Carr wrote: Hello All, Im having trouble with compatibility between MD5 Digest in Perl and in PHP. They dont give the same results. Perl #!/usr/local/bin/perl use strict; use Digest::MD5 (); my $to_be_hashed = Cheese; my ($hash) =

Re: [PHP] Help on preg_split

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 13:05, Jim wrote: Could someboy please help me with this simple task (at least I though it would be simple): I need to split a string with two dates in into two datestrings, and there might be whatever between the dates, e.g. $datestring = 010101a020202, or

Re: [PHP] Web server request redirection

2003-03-27 Thread Jan Walter
David Otton wrote: On Thu, 27 Mar 2003 00:10:34 +0100, you wrote: I would suggest configuring Apache as an HTTP proxy, rather than trying to redirect requests with PHP scripts. More details here http://www.devshed.com/Server_Side/Administration/ApacheProxy/page1.html With some forethought, you

Re: [PHP] getimagesize

2003-03-27 Thread Marek Kilimajer
Where you get this error from? Does it come from the browser or is it the script output? Diana Castillo wrote: anyway to not get an error when doing getimagesize if you get this response? HTTP request failed! HTTP/1.1 404 Not Found -- PHP General Mailing List (http://www.php.net/) To

[PHP] Qmail question

2003-03-27 Thread Haseeb Iqbal
i just want to know what format does qmail use to store password in the password file.what function should be used to generate that password thanx in advance for the answers Haseeb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Qmail question

2003-03-27 Thread Jason Wong
On Friday 28 March 2003 06:44, Haseeb Iqbal wrote: i just want to know what format does qmail use to store password in the password file.what function should be used to generate that password 1) You're asking on the wrong list 2) It depends on what authentication method your system uses --

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Marek Kilimajer
not necesserily both, either of them is enought: drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp or drwx--2 apache apache 188416 Mar 27 11:23 /var/www/uploads daniel wrote: possibly a permissions problem , dir needs to be 777 and owned by httpd -- PHP

Re: [PHP] Qmail question

2003-03-27 Thread Nikunj Virani
Not a PHP Question and should have been directed to Qmail Mailing list. i just want to know what format does qmail use to store password in the password file.what function should be used to generate that password thanx in advance for the answers This manly depends on how have you configured

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 18:25, Marek Kilimajer wrote: not necesserily both, either of them is enought: Not quite true :) If owned by 'httpd' then 'httpd' still needs write permission (o+w). drwxrwxrwt2 root root 188416 Mar 27 11:23 /tmp or drwx--2 apache apache

RE: [PHP] Uploading Files Via PHP

2003-03-27 Thread Dan Rossi
did u even read it ? chmod 777 + owned by httpd -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 9:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Uploading Files Via PHP On Thursday 27 March 2003 18:25, Marek Kilimajer wrote: not necesserily

[PHP] errors

2003-03-27 Thread Diana Castillo
How can I skip an error? For instance in ASP it would be on error and then you would skip the next error. I want to be able to skip when I get the 404 File not found error in a specific part when I am using getimagesize. Thanks, Diana -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Marek Kilimajer
By apache I ment the httpd process's user. I don't mean your way won't work, but you give away unnecessary permissions - if the directory is owned by httpd, access rights 700 are enough, if the directory is not owned by httpd, you need at least 007 Dan Rossi wrote: did u even read it ? chmod

[PHP] php and Perl

2003-03-27 Thread Brad Wright
Hi all, can php call perl scripts? I know nothing of perl, but have found a perl script that will process a MSword document in a way that it seems php cannot. At this stage, my knowledge of perl is limited to it's used in web stuff sometimes isnt it :) but i am sure i will soon find a bit more

[PHP] Crystal Reports in PHP via COM - SelectPrinter problem

2003-03-27 Thread Andrew Powell
I am receiving an error when attempting to use the SelectPrinter method in the CrystalDesignRunTime.Application COM object. The following code: - $crapp = new COM(CrystalDesignRunTime.Application); $creport = $crapp-OpenReport(d:\\athermal\\reports\\backlog.rpt, 1);

Re: [PHP] php and Perl

2003-03-27 Thread Nikunj Virani
Yes, you can call perl scripts using exec or system function just like you will call any other system function. You will have to make sure that the apache user (or nobody if your apache runs as nobody) has executable permission on perl script. So if your perl script is: /home/nikunj/test.pl you

Re: [PHP] Fw: MD5 in PHP and MD5 in Perl dont match up.

2003-03-27 Thread Michael Sims
On Wed, 26 Mar 2003 17:23:33 +0100, you wrote: Im Very Sorry / Embarrased.. my code example had a mistake with extra linebreak. Here is the example with out it, which gives a different MD5 hash. I don't know why this is, but if you call Digest::MD5-md5_hex() in a procedural rather than OO way,

Re: [PHP] php and Perl

2003-03-27 Thread CPT John W. Holmes
www.php.net/virtual ---John Holmes... - Original Message - From: Brad Wright [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 8:00 AM Subject: [PHP] php and Perl Hi all, can php call perl scripts? I know nothing of perl, but have found a perl

Re: [PHP] SHA-1 + RSA + base64

2003-03-27 Thread Jason Sheets
I'm not sure why you would want to encrypt a hash of a string, a hash (sha1) is already non reversible and you also do not need to base64_encode a sha1 hash (try ?php print sha1('hello'); ?).. If you want to do RSA public key encryption you will need to use an external application such as gpg

[PHP] Excel

2003-03-27 Thread Gabi Moise
Hi, Can someone point me to a php and Excel tutorial? tnx.

[PHP] Re: redirecting a domain

2003-03-27 Thread Dan
On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED] (Unknown Sender) wrote: I have an apache question and I have NO idea where to post it. Is there a newsgroup or mailing list simply for apache? I have multipal domain names: domain.net domain.org. I would like to configure apache such that

[PHP] Problem with PHP

2003-03-27 Thread Navratil, Jan
Hallo, i have problem with running PHP4.3.1 on Apache1.3.19 on W2K. I instaled everithng by install.txt. Is posible to load easy php pages but when i want to Recieve data from form it does not wrok. Please help me Best regards Honza Navratil -- PHP General Mailing List

Re[2]: [PHP] SHA-1 + RSA + base64

2003-03-27 Thread Veniamin Goldin
See, that encoding method was not produced by me, it was request from bank to do such crazy encryption to use their gateway. That told exactly: first to SHA-1, then RSA (with results of SHA-1) and after all encode it with base64 :( Could you help me with this ? 27 2003 ., 15:42:40: JS I'm

Re: [PHP] Re: redirecting a domain

2003-03-27 Thread Jason Sheets
Rather than redirecting to a seperate HTML file you can also use the PHP Header command, something like: ?php if (strstr($_SERVER['HTTP_HOST'], 'domain.org')) { header('Location: http://www.domain.net'); exit; } ? Dan wrote: On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED]

[PHP] Re: Make thumbnail online

2003-03-27 Thread Dan
On Sun, 11 Jan 2004 16:32:36 +0330, [EMAIL PROTECTED] (Sadeq Naqashzade) wrote: Hi every one, I want to create thumbnail of a photo stored in MySQL table online. Best Wishes, S. Naqashzade http://www.php.net/manual/en/ref.image.php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP Send Mail Main headers.

2003-03-27 Thread -{ Rene Brehmer }-
On Mon, 24 Mar 2003 18:51:47 +0800, Jason Wong wrote about Re: [PHP] PHP Send Mail Main headers. what the universal translator turned into this: On Monday 24 March 2003 18:35, Don Read wrote: On 24-Mar-2003 Philip J. Newman wrote: $headers .= MIME-Version: 1.0\r\n; $headers .= Content-type:

Re: [PHP] Phpadsnew?

2003-03-27 Thread Lasse Laursen
Hi, No - phpads is a bunch of PHP scripts. So if you have any problems with spawned processes then it's your webserver acting up. Regards -- Lasse Laursen [EMAIL PROTECTED] - Systems Developer NetGroup A/S, St. Kongensgade 40H, DK-1264 København K, Denmark Phone: +45 3370 1526 - Fax: +45 3313

[PHP] preg split question

2003-03-27 Thread Torsten Rosenberger
Hello i'd like to split Benutzer_CRA.php to get CRA but sometimes the files are called Benutzer_OVE_CRA.php and therefore the result schould OVE_CRA how cann i tell preg_split to split the string at the first occurence of _ and before .php BR/Torsten -- PHP General Mailing List

Re: [PHP] php and Perl

2003-03-27 Thread David T-G
Brad -- ...and then Brad Wright said... % % Hi all, Hi! % % can php call perl scripts? Yep. It can call anything, right? So just call it like ls or du or any other program. % % I know nothing of perl, but have found a perl script that will process a % MSword document in a way that it

[PHP] last questions

2003-03-27 Thread Haseeb Iqbal
thanx to all those who replied to my previous question. 1 more question.i need help with reqular expressions.i want to check valid (email) usernanes for my mail server .i.e. Qmail. any help welcome. thanx in advance Haseeb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] SHA-1 + RSA + base64

2003-03-27 Thread David T-G
Veniamin -- ...and then Veniamin Goldin said... % % Hi all, Hi! % % I need some help, % % I have a request to encode string with SHA-1, then with RSA and at the % end with base64, How odd :-) % % There no problems with SHA-1 and base64, but i can't find any % functions to encode using

Re: [PHP] preg split question

2003-03-27 Thread Jonathan Pitcher
Torsten, You could use explode on the file name and then only read in the sections that you want: $FileName = Benutzer_OVE_CRA.php; $Part1 = explode(_, $FileName_); $TotalPart1 = count($Part1); $Wanted_File_Pieces = array(); // C = 2 so that it will skip the Benutzer part of the filename and

Re: [PHP] last questions

2003-03-27 Thread Awlad Hussain
someone has asked the same question today about validating email, do a search i'll find the reply. - Original Message - From: Haseeb Iqbal [EMAIL PROTECTED] To: PHP General list [EMAIL PROTECTED] Sent: Friday, March 28, 2003 4:02 AM Subject: [PHP] last questions thanx to all those who

Re: [PHP] last questions

2003-03-27 Thread Jonathan Pitcher
Haseeb, Here is a great tutorial regular expression. http://www.phpbuilder.com/columns/dario19990616.php3 Jonathan Pitcher On Thursday, March 27, 2003, at 10:02 PM, Haseeb Iqbal wrote: thanx to all those who replied to my previous question. 1 more question.i need help with reqular

[PHP] Re: Help on preg_split

2003-03-27 Thread Gudmund Vatn
Jim wrote: Hi! Could someboy please help me with this simple task (at least I though it would be simple): I need to split a string with two dates in into two datestrings, and there might be whatever between the dates, e.g. $datestring = 010101a020202, or $dateting =

Re: [PHP] last questions

2003-03-27 Thread David T-G
Haseeb -- ...and then Haseeb Iqbal said... % % thanx to all those who replied to my previous question. Happy to help! % 1 more question.i need help with reqular expressions.i want to check valid % (email) % usernanes for my mail server .i.e. Qmail. any help welcome. It's come up before, so

Re: [PHP] preg split question

2003-03-27 Thread CPT John W. Holmes
i'd like to split Benutzer_CRA.php to get CRA but sometimes the files are called Benutzer_OVE_CRA.php and therefore the result schould OVE_CRA how cann i tell preg_split to split the string at the first occurence of _ and before .php preg_match(/_(.*)\.php/,$str,$matches); $matches[1]

[PHP] Re: user permission system (integer to small)

2003-03-27 Thread Gudmund Vatn
Torsten Rosenberger wrote: Hello I have some trouble with user permission. I build the system like the permission in the phplib. admin = 1 news= 2 news_create = 4 news_delete = 8 .. .. .. then ich can check ($user_perm $perm == $perm ) But the problem ist that

[PHP] Re: best way to throw erorrs within a class

2003-03-27 Thread Gudmund Vatn
Dan Rossi wrote: hi guys i have been trying to work out the best way to trigger exception style error handling within a class and return it ,i am currently storing the error code into a session variable, exiting, and doing a header location to the previous page where i was submitting from and

Re: [PHP] Re: redirecting a domain

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 07:25, Dan wrote: On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED] (Unknown Sender) wrote: I have an apache question and I have NO idea where to post it. Is there a newsgroup or mailing list simply for apache? I have multipal domain names: domain.net

Re: [PHP] Checkbox

2003-03-27 Thread Gudmund Vatn
Tim Burden wrote: Just using the readonly flag in the input tag is the easiest method, I think. - Original Message - From: Reuben D. Budiardja [EMAIL PROTECTED] Newsgroups: php.general To: CPT John W. Holmes [EMAIL PROTECTED]; shaun [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

[PHP] Removing columns from a text file

2003-03-27 Thread George Pitcher
I have a text file file ready to go into a Filemaker database. It has over 5000 rows, each containing over 500 columns. If I do a straight import I can only pull in the first 442 colums, but all records. I can't take it in via Excel for the same reason - column limit stops at 'IV' - never got

Re: [PHP] PHP Send Mail Main headers.

2003-03-27 Thread Jason Wong
On Wednesday 26 March 2003 23:01, -{ Rene Brehmer }- wrote: CRLF is not an overkill. That is the specs. Some MTAs (sendmail in particular) will treat a single LF (\n) as a line termination as thus you can get away with it. On unix machines you can do with just a linefeed, on CPM/DOS-based

[PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Christopher Ditty
I have a customer that wants to return a 403 Forbidden header/page when certain conditions are met. I looked through the online manual and all the examples listed would not work. This is what I am using. header(Location: HTTP/1.0 403); PHP tried to send the user to a HTTP/1.0 403 webpage.

[PHP] RE: Removing columns from a text file

2003-03-27 Thread George Pitcher
Philip, I'm on Windoze. So are you suggesting that I should read the line in, explode into an array, pop those fields that I don't want/need and then implode the array back into a string before fwrite? George -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] Removing columns from a text file

2003-03-27 Thread CPT John W. Holmes
I have a text file file ready to go into a Filemaker database. It has over 5000 rows, each containing over 500 columns. If I do a straight import I can only pull in the first 442 colums, but all records. I can't take it in via Excel for the same reason - column limit stops at 'IV' - never

[PHP] Re: Please point me in the right direction

2003-03-27 Thread Steve Magruder
Jerry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, I have a CGI application written in Delphi web services and I want to port it to the Linux environment. I was going to use Kylix but I'm concerned that Borland isn't keeping up with the fast paced Linux development (ie

Re: [PHP] Removing columns from a text file

2003-03-27 Thread Kenn Murrah
could you just write a simple awk script to read each line and write out only the columns you wish to keep? - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 9:50 AM Subject: Re: [PHP]

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Matt Schroebel
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Return 403 Forbidden headers header('HTTP/1.0 403 Forbidden'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: How do i valadate an email address?

2003-03-27 Thread Gudmund Vatn
Philip J. Newman wrote: How would i check that an e-mail has the right parts in it. for example. username @ domain . ext Thanks / Jim Bob Many people just check it like this: if (strpos($emailVar), '@') 0) { echo 'Email is validated'; } else { echo 'Please supply a correct email

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Christopher Ditty
Thanks, but it returns a blank page. Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM -Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Return 403 Forbidden headers

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Matt Schroebel
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:59 AM To: Matt Schroebel; [EMAIL PROTECTED] Subject: RE: [PHP] How to Return 403 Forbidden headers Thanks, but it returns a blank page. Works for me in I.E 6. ?php

Re: [PHP] variables??

2003-03-27 Thread Alexander Weber
Rick, use explode to insert the array in the symbole table, then every get / post (depend wich you explode) variable is available. Alex John W. Holmes [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Okay, true. But they key here is the act accordingly, meaning you sanitize and

[PHP] Importing emails

2003-03-27 Thread Alexis Antonakis
Hi, I am trying to set up a system whereby users can send data, in a pre-determined format, to a specified email address. I would then like to import the contents within each email into a database. The trouble I'm having is not knowing really where to start. Could any kind sole point me in the

Re: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Alexander Weber
For sure, has to be sent before any text and has to be part of a PHP script! Alex Matt Schroebel [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] -Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:59 AM To: Matt

[PHP] Re: Importing emails

2003-03-27 Thread Alexander Weber
Alexis, if the users data are informations about the user you can use this: if you ar talking about files should use data upload instead. you can start with the database. I dont know how many adresses and what more you want to have in the DB. 1. create the DB (eg. mySQL), 2. design a FORM where

[PHP] Protecting Code source.

2003-03-27 Thread Vincent M.
Hello, I'd like to sell an application to 24$ US and I have to protect my source code. But I don't want to make my customer install anything on the server to be able to run my application. So the Zend encoder seems good for me: http://www.zend.com/store/products/zend-encoder.php Or, make it

RE: [PHP] Importing emails

2003-03-27 Thread James E Hicks III
Your going to have to look at your MTA for the answer to this. Basically you need to tell you MTA to invoke a PHP script when it receives an email for this specific address instead of normal delivery. James Hicks -Original Message- From: Alexis Antonakis [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] Protecting Code source.

2003-03-27 Thread John Wards
On Thursday 27 Mar 2003 7:31 pm, Vincent M. wrote: The only trouble is the price (960$), it's a little expensive for the student I am :-/ Does anyone know any other less expensive way to protect my source code ? http://www.ioncube.com/ They have a web based version that you do on a per file

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Ray Hunter
What browser are you using... IE has its own 404 pages that it displays when it gets those types of headers. -- Ray On Thu, 2003-03-27 at 08:58, Christopher Ditty wrote: Thanks, but it returns a blank page. Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM -Original Message-

RE: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Matt Schroebel
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 11:15 AM To: Matt Schroebel Subject: RE: [PHP] How to Return 403 Forbidden headers Try it in Netscape 7 if you have it. 6.5 showed blank, and if you add html it shows up.

Re: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Serge Paquin
Almost. It's not the Location Header you want to play with. header(HTTP/1.0 403 Forbidden); will do the job. Serge. On Thu, 27 Mar 2003 09:41:57 -0600 Christopher Ditty [EMAIL PROTECTED] wrote: I have a customer that wants to return a 403 Forbidden header/page when certain conditions are

Re: [PHP] How to Return 403 Forbidden headers

2003-03-27 Thread Serge Paquin
This this point the only thing you have done is overridden the status code. You still have to send something to the browser. HTTP/1.0 403 Forbidden is not a page or a location. It's a result code. You could then do something as simple as: print You are forbidden to view this page; Serge.

[PHP] PHP Session in Windows - Please help...

2003-03-27 Thread Tiago Simões
Hi, I am using PHP version 4.3.0, Apache 2.0.44 on Windows XP. I am new to Sessions and need your help with the problem below... I've done this simple session test: on session1.php: ? session_start(); session_register(sess_var); $sess_var = Hello World!; echo The content of \$sess_var is

Re: [PHP] Protecting Code source.

2003-03-27 Thread Vincent M.
John Wards wrote: On Thursday 27 Mar 2003 7:31 pm, Vincent M. wrote: The only trouble is the price (960$), it's a little expensive for the student I am :-/ Does anyone know any other less expensive way to protect my source code ? http://www.ioncube.com/ They have a web based version that you

Re: [PHP] PHP Session in Windows - Please help...

2003-03-27 Thread Mike
It's much easier and works better to use: ?php session_start(); $_SESSION['sess_var'] = Hello World!; //then you can echo echo The content of \$_SESSION['sess_var'] is . $_SESSION['sess_var'] . br; ? a href=session2.phpNext Page/a ? That will set everything and echo correctly... this also makes

Re: [PHP] Protecting Code source.

2003-03-27 Thread Adam Voigt
You don't have to, if you put a folder called ioncube with the webfiles, if it detects the extension isn't loaded, it will do it automatically, on the fly, with no php.ini editing. On Thu, 2003-03-27 at 15:05, Vincent M. wrote: John Wards wrote: On Thursday 27 Mar 2003 7:31 pm, Vincent

[PHP] HTML mail being sent with mail() not working for some people

2003-03-27 Thread Jeff Lewis
We're sending out emails using mail() and sending it in HTML format and while most people get it correctly a couple are not. They get the anti-abuse headers and then the HTML code appears as just that - HTML code in the body of the email. Sending those same people an HTML email composed in

[PHP] Include Path Troubles... I figured it out!

2003-03-27 Thread Mike
Hi all, If you're having trouble with PHP includes and directories, are on a shared server, etc. this function is totally cool: ini_set(include_path,.:/your/dir/to/whatever:/another/dir/to/whatever); make sure you put the '.:' at the begginning and seperate with a ':'. I'm using it and it works

[PHP] target frame on refresh

2003-03-27 Thread Bryan Koschmann - GKT
Hello, I'm not sure this can be done with PHP, but I'm looking for any ideas! I have a frames page. The top refreshes every 5 seconds, checking for if a file exists. If that file exists, it is supposed to change the bottom frame to another site. Basically like using an a href

Re: [PHP] target frame on refresh

2003-03-27 Thread Mike
You can't do that in PHP... just use JavaScript... do a google for it. -Michael On Thu, 2003-03-27 at 08:35, Bryan Koschmann - GKT wrote: Hello, I'm not sure this can be done with PHP, but I'm looking for any ideas! I have a frames page. The top refreshes every 5 seconds, checking for if a

[PHP] character set problem

2003-03-27 Thread Filip De Graeve
Hello, Using PHP 4.3.1 on a Windows 2k/Apache, i am trying to insert some text likeTest é à ë into a MS SQL database. The result I get using the query analyzer : Test Ú Þ Ù is not the same as you can see for yourself. However; ms sql supports those characters when i insert them directly

[PHP] Re: help please was: openssl php 4.3.1

2003-03-27 Thread Peter Clarke
Kalin Mintchev wrote: here is a real example: $fp = fopen (http://store.el.net/index.html;, r); while (!feof($fp)) { echo fgets ($fp,4096); } this works fine... if you try it with https you'll get an error - file not found from php I've just tried with https and it works fine. Are you

[PHP] A new set of eyes

2003-03-27 Thread Richard Whitney
Can you folks help me out b y looking at this code? It all of a sudden is not grabbing the email address from the DB, yet array_count_values displays it nicely. $sql_c = SELECT * FROM customers WHERE customers_id = '$customer_id';;//gather customer info from DB $result_c = mysql_query($sql_c);

[PHP] RE: Anew set of eyes

2003-03-27 Thread Richard Whitney
Can you folks help me out b y looking at this code? It all of a sudden is not grabbing the email address from the DB, yet array_count_values displays it nicely. $sql_c = SELECT * FROM customers WHERE customers_id = '$customer_id';;//gather customer info from DB $result_c = mysql_query($sql_c);

Re: [PHP] target frame on refresh

2003-03-27 Thread Bryan Koschmann - GKT
On 27 Mar 2003, Mike wrote: |You can't do that in PHP... just use JavaScript... do a google for it. | |-Michael Didn't think so. I've been google-ing and can't find what I need, so I thought I'd try a longshot. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To

[PHP] Return Character in a Text File?

2003-03-27 Thread Jay Paulson
I have a slight problem. Is there anyway to make a text file with a return character that doesn't show up in windows notepad as a gibberish character and actually puts a return in it? Right now I'm using the \n for the return but it doesn't get read in notepad as a return so the string data

[PHP] logging ip address when submitting a form

2003-03-27 Thread Joakim Larsson
Hello, Is there a command in php that would logg the ip address of the user viewing the php file. I need someway of finding out who posted the form. thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Return Character in a Text File?

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you use \r\n instead of \n notepad should be fine. Winblows uses CRLF for everything... On Thursday 27 March 2003 10:07 am, Jay Paulson wrote: I have a slight problem. Is there anyway to make a text file with a return character that doesn't

RE: [PHP] Uploading Files Via PHP

2003-03-27 Thread Jennifer Goodie
A world writeable directory is a security risk. Why not just fix the owner/group and only give the permissions needed, 775 at most. -Original Message- From: Dan Rossi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:45 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Uploading Files

Re: [PHP] logging ip address when submitting a form

2003-03-27 Thread Philip J. Newman
$HTTP_X_FORWARDED_FOR phpinfo(); Check that its in your PHP Info. $REMOTE_ADDR will return the Remote Address. I use This small loop. if (!$HTTP_X_FORWARDED_FOR) { $HTTP_X_FORWARDED_FOR=$REMOTE_ADDR; } / Phil - Original Message - From: Joakim Larsson [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Uploading Files Via PHP

2003-03-27 Thread Philip J. Newman
You could chnage the permissions when you want to write something then change it back when your done. Thats what i do. / Phil - Original Message - From: Jennifer Goodie [EMAIL PROTECTED] To: Dan Rossi [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:17 AM Subject: RE:

Re: [PHP] logging ip address when submitting a form

2003-03-27 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You might wanna move ipaddr.log outside your server root... or at least use some .htaccess... wouldn't want someone to just browse to the file... $fp = fopen(ipaddr.log, a+); fputs($fp, $_SERVER['REMOTE_ADDR'].\n); fclose($fp); On Thursday 27

RE: [PHP] Uploading Files Via PHP

2003-03-27 Thread Jennifer Goodie
Or you could just do it correctly the first time and be done with it. :) -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:23 AM To: Jennifer Goodie; Dan Rossi; [EMAIL PROTECTED] Subject: Re: [PHP] Uploading Files Via PHP You could

[PHP] Re: character set problem

2003-03-27 Thread Filip De Graeve
This is me again. I even tried downgrading PHP to 4.1.1, but still when i try to insert some characters like é, ë, è i get Test Ú Þ Ù as a result... help would be very welcome! thanks a lot ! Filip De Graeve [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Hello, Using PHP 4.3.1

RE: [PHP] RE: Anew set of eyes

2003-03-27 Thread Matt Schroebel
-Original Message- From: Richard Whitney [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: Anew set of eyes Can you folks help me out b y looking at this code? It all of a sudden is not grabbing the email address from

  1   2   3   >