RE: [PHP] File handling

2002-11-29 Thread Jeff RingRose
Justin, Option b. delete all AFTER foo, I.E. truncate the file directly after foo. Leaving foo and all the data before foo untouched. Jeff -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 04:29 To: Jeff; [EMAIL PROTECTED] Subject: Re: [PHP] File

[PHP] Can't recover data in php posted with a form tag.

2002-11-29 Thread Luc Roettgers
I have 2 files runQuery.php and doSQL.php, where the first one is posting data entered by the user to the second page and displaying it but the data never arrives. Any idea why this would not work, maybe some configuration issue?? Any help is really appreciated... !-- !-- runQuery.php --

Re: [PHP] File handling

2002-11-29 Thread Jeff
I've got this coed but it still don't do the business: $MESSAGE_FILE=foobar.txt; $handle=fopen($MESSAGE_FILE,w); $sizez= sizeof($handle); $string= 'foo'; while ( fgets($handle,$sisez) { fputs($handle,$sizez); if (strstr($handle,$string)){ break; } } Any ideas? Jeff Ringrose [EMAIL

[PHP] Re: Can't recover data in php posted with a form tag.

2002-11-29 Thread Jeff
FORM action='doSQL.php' method='POST' try that jeff Luc Roettgers [EMAIL PROTECTED] wrote in message 002401c29782$8300de10$3b09c881@rolxp">news:002401c29782$8300de10$3b09c881@rolxp... I have 2 files runQuery.php and doSQL.php, where the first one is posting data entered by the user to the second

[PHP] Re: Can't recover data in php posted with a form tag.

2002-11-29 Thread Bastian Vogt
hi, you could try to fetch the value from the superglobal variable $_POST or $HTTP_POST_VARS (echo $_POST[clSQL]; echo $HTTP_POST_VARS[clSQL];) regars, bastian Luc Roettgers schrieb: I have 2 files runQuery.php and doSQL.php, where the first one is posting data entered by the user to the

Re: [PHP] Logging out and session ids

2002-11-29 Thread Tom Rogers
Hi, Friday, November 29, 2002, 4:58:02 PM, you wrote: GS I was just going through the archive. Seems this comes up enough for me GS to think I have something wrong. GS A simplistic code flow of events... GS ?php GS session_start(); GS // user successfully logs in, set a session variable GS

Re: [PHP] Detecting email bounces sent by the mail function?

2002-11-29 Thread Chris Hewitt
scott wrote: What would php run as on a cobalt raq4 so I don't get the x header warning Best regards As php is a web application, it is the webserver sending emails. Apache runs as user httpd on the raq on which I have an account. Get it to send you an email so that you can check. HTH Chris

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-29 Thread Marek Kilimajer
In the browser it might look something like this: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titlePizza place/title script function add(n) { document.pizza.num.value=document.pizza.num.value + n; if(document.pizza.num.value.length!=2) {

[PHP] Questions on PHPs openssl extensions

2002-11-29 Thread Richard Rojas
I've been looking on PHP.net's manual for openssl functions but it seems that they have very little information on the said functions. Ive tried posting on mailing lists for some help but I havent been receiving fruitful responses. Some even told me that it is very difficult to find a

[PHP] images

2002-11-29 Thread Craig
Not sure if this would be anyway possible, hopefull some of you GD gurus will have an idea. Basically the scenario is, I have a dirtectory of images(5 to be exact). What I want to be able to do is something similar to the script below, which randomizes a gif image selection. the file is called

RE: [PHP] dynamic arraynames

2002-11-29 Thread Ford, Mike [LSS]
-Original Message- From: Floyd Baker [mailto:[EMAIL PROTECTED]] Sent: 28 November 2002 17:09 OK, I think I'm finally beginning to understand what you're up to, and it seems to me everyine's been making rather heavy weather of it so far! The user's choice is made from a drop down

php-general Digest 29 Nov 2002 11:47:32 -0000 Issue 1733

2002-11-29 Thread php-general-digest-help
php-general Digest 29 Nov 2002 11:47:32 - Issue 1733 Topics (messages 126443 through 126464): Werid problemswith mail() command: From address on sent messages 126443 by: C.F. Scheidecker Antunes Suppressing X-Return-Path 126444 by: Darren Fehrmann Re: Is it possible to do

[PHP] OpenSSL Encryption to a browser.

2002-11-29 Thread Comunica2 s. coop.
I would like to use OpenSSL to send encrypted information to a browser. The information would be encrypted to a public key that has its private counterpart installed in the browser. The idea is that the information would be decrypted automatically, but only when the destination browser has the

RE: [PHP] Re: Multidimensional arrays (more and more...)

2002-11-29 Thread Ford, Mike [LSS]
-Original Message- From: Mako Shark [mailto:[EMAIL PROTECTED]] Sent: 28 November 2002 18:20 A little more info on my count()ing. I have $issue[0][number] to $issue[x][number] just like any other multidimensional array (we'll call them m-arrays for simplicity). If I try to

Re: [PHP] File handling

2002-11-29 Thread Justin French
on 29/11/02 7:06 PM, Jeff RingRose ([EMAIL PROTECTED]) wrote: Justin, Option b. delete all AFTER foo, I.E. truncate the file directly after foo. Leaving foo and all the data before foo untouched. And what happens if there are more than one occurrence of foo? I assume you mean the first

Re: [PHP] OpenSSL Encryption to a browser.

2002-11-29 Thread Dan Hardiker
I would like to use OpenSSL to send encrypted information to a browser. The information would be encrypted to a public key that has its private counterpart installed in the browser. The idea is that the information would be decrypted automatically, but only when the destination browser has

[PHP] array with session

2002-11-29 Thread Laurence
hello everyone, I'm trying to get some images value from a checkbox putting them in a session to preserve the data. The array works perfectly without the session_start() and session_register. can anyone help? html script html head title/title /head body form action=submit_information.php

[PHP] Re: array with session

2002-11-29 Thread Craig
You should have session_start(); on every page that you want to hold the session. The way I would do what you are trying to achieve is go the $_SUPERGLOBALS way.. on the submit_information.php page: ?php session_start(); $_SESSION['image'] = $_POST['image'];

[PHP] Re: array with session

2002-11-29 Thread Craig
Files are attached.. Craig Craig [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You should have session_start(); on every page that you want to hold the session. The way I would do what you are trying to achieve is go the $_SUPERGLOBALS way.. on the

[PHP] First PHP

2002-11-29 Thread heikkikk
Hello! I would like to know, Who made the first step to start programming PHP? So who is the father of PHP. Can anyone give me a link to proof it? -- =|---+---|= Heikki Kniivilä [EMAIL PROTECTED] http://heikkikk.homelinux.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] First PHP

2002-11-29 Thread Khalid El-Kary
hi, how about the manual? http://www.php.net/manual/en/history.php#history.php :) Regards, khalid _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- PHP General

[PHP] Upload wont work, OS X

2002-11-29 Thread magnus nilsson
I have trouble using upload scripts - none of them work on my current config. I'vq got php 4.2.3 and global registerd = off. The problem is that the script doesnt send the variable $_FILES['my_file'] as it should. I can only upload if i hard code the filename into the script. OS: OS X 10.2

Re: [PHP] Logging out and session ids

2002-11-29 Thread Gerard Samuel
Tom Rogers wrote: Hi, Friday, November 29, 2002, 4:58:02 PM, you wrote: GS I was just going through the archive. Seems this comes up enough for me GS to think I have something wrong. GS A simplistic code flow of events... GS ?php GS session_start(); GS // user successfully logs in, set a

Re: [PHP] Werid problemswith mail() command: From address on sent messages

2002-11-29 Thread Chris Hewitt
C.F. Scheidecker Antunes wrote: The problem is that I do not want and cannot have my message headers with a From: Apache@LocalHost as this copy bellow shows: I've changed the header variable and put a From in it so it does displays the right FROM: address as bellow. But as you can see, the

Re: [PHP] how to use mssql_connect()?

2002-11-29 Thread Chris Hewitt
Kim wrote: when i using mssql_connect() function,that's show Fatal error: Call to undefined function: mssql_connect() on php page,i don't know why that it is! php 4.2.3 sql server 2000 apache 1.3.19 windows 2000 pro php.ini had configurated ok. This error message means that the function is

[PHP] Re: rewrite urls with preg_replace

2002-11-29 Thread Dieter Koch
Hi Liljim, thanks very much, with the 'e' modifier and some quote-fixes it works well ! Dieter Liljim [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Dieter, You need to use the 'e' modifier as well as 'is' in your pattern. Have a look in the

Re: [PHP] Upload wont work, OS X

2002-11-29 Thread Beth Gore
Hi Magnus, Your problem was you weren't using the correct part of the $_FILES array when using copy(); Cut and Past This: if ($ok){ $res = copy($bilde_fil[tmp_name], $path./.$nyttnavn.$ending); print ($res)?bFerdig/b, uploadet .$nyttnavn.$ending.!br:bSorry/b, Kunne ikke uploade.br;

[PHP] php and https

2002-11-29 Thread DUPUIS Grégoire BE/DGC
Hi, I'm trying to connect to a https site to get a file. The target site replies to me: Unable to service this URL without parent cache. Is there someone who knows what that means? Thanks, Greg. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Help with login/redirect/insert to dbase

2002-11-29 Thread Maxim Maletsky
I think you better describe your question here and wait for the world to answer. -- Maxim Maletsky [EMAIL PROTECTED] Karl James [EMAIL PROTECTED] wrote... : Hello guys Happy thanksgiving!!! My question is I'm Trying to apply this code to what I have done already on my site

Re: [PHP] file creation date

2002-11-29 Thread Maxim Maletsky
How would you know about a file on someone's system before it was implicitly sent you by user? Take a look at JavaScript, but I doubt there will be a sure solution for it. Nothing is sure with JavaScript except for it's cross-browser incompatibility :) -- Maxim Maletsky [EMAIL PROTECTED]

Re: [PHP] Help with the PHP

2002-11-29 Thread Maxim Maletsky
Try this: http://www.sourceforge.net/projects/phptriad and dowload there phptriad. It is a simplified distribution of PHP. Also, try reading the articles on the web. You might want to start from PHP Beginner (www.phpbeginner.com). There are also some installtion tutorials for you. -- Maxim

Re: [PHP] File handling

2002-11-29 Thread Maxim Maletsky
loop through the file line by line explode()ing every line with TEXt in it. Then, if retrning array count is bigger than one, unset() the key one and break the loop. All read OVERWRITE in the original file. Sorry, too lazy writing the code here :) -- Maxim Maletsky [EMAIL PROTECTED] Jeff

Re: [PHP] php and https

2002-11-29 Thread Marco Tabini
Is this related to PHP? Or are you getting the error from your browser? In that case, are you using IE? If so, it might be a bug with IE--I've seen it discussed in a few mailing lists. Otherwise, it might indicate that the web server you're connecting to is not configured properly. Marco --

[PHP] Multiuser System with Sessions

2002-11-29 Thread Anson LeClair
Hi, I'm building a multiuser system with PHP. It appears that session data is getting overwritten with the latest users information. The site is hosted remotly with a virtual host. The problem only seems to occur to people inside our building (i.e. two people here login to the system with

RE: [PHP] php and https

2002-11-29 Thread DUPUIS Grégoire BE/DGC
i'm using PHP to connect to the server. i need to get a file, parse it, include the datas in mysql and then display an html page with a report... -Message d'origine- De : Marco Tabini [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 29 novembre 2002 16:58 À : DUPUIS Grégoire BE/DGC Cc :

[PHP] Enable Quota function with php

2002-11-29 Thread EdwardSPL
Hello, About the System of my company : Server A : imap server ( come from redhat 6.2 ) Server B : Web server ( redhat system 7.2 ) + IMP ( http://horde.org/imp ) How can I enable the quota function with imap server by this php config ? if (!function_exists('imp_show_quota')) { function

Re[2]: [PHP] Logging out and session ids

2002-11-29 Thread Tom Rogers
Hi, I have never bothered with the cookie, I only delete the server side info. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Convert dates

2002-11-29 Thread Sturle
Is there a way to convert a date 2002-11-29 00:00:00:000to 29 November 2002 . Sturle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Convert dates

2002-11-29 Thread John W. Holmes
Is there a way to convert a date 2002-11-29 00:00:00:000to 29 November 2002 Yes. Try strtotime() and date() in PHP, or break the string apart. If this date is coming from MySQL, then look at the DATE_FORMAT() function that you can use in your query to format it. ---John Holmes... -- PHP

[PHP] How to access properties of objects within objects

2002-11-29 Thread Randall Perry
Can't figure out how to get at the properties of an object which itself is a property of another object. In sample code below neither the assignment of $mystring produces an error. ?php class Obj1 { function Obj1 ($string) { $this-string = $string; } } class Obj2 {

Re: [PHP] Detecting email bounces sent by the mail function?

2002-11-29 Thread John Nichel
To the best of my knowledge, there is no way to do this with the mail function. However, I check for bounces using Perl and a cron. I don't see why you couldn't use php to do the same thing though. Ade Smith wrote: Hello Is it possible to detect with PHP whether an email sent using the PHP

Re: [PHP] First PHP

2002-11-29 Thread John Nichel
Maybe if you're lucky, the father of PHP will reply to you. :) heikkikk wrote: Hello! I would like to know, Who made the first step to start programming PHP? So who is the father of PHP. Can anyone give me a link to proof it? -- =|---+---|= Heikki Kniivilä [EMAIL PROTECTED]

[PHP] [Fwd: imap Server support Quota]

2002-11-29 Thread EdwardSPL
---BeginMessage--- Hello, Does your imap server come from redhat ? If so, have you ever try IMP ( http://www.horde.org/imp ) and enable Quota function with imap server by using php code ? Would you mind to send me your solution ? Thank for your help ! Edward. ---End Message--- -- PHP

Re: [PHP] First PHP

2002-11-29 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Khalid El-Kary) wrote: http://www.php.net/manual/en/history.php#history.php First public announcement of PHP by Rasmus: http://groups.google.com/groups?selm=3r7pgp%24aa1%40ionews.io.org -- CC -- PHP General Mailing List (http://www.php.net/)

[PHP] Sessions not written to db on windows...

2002-11-29 Thread Gerard Samuel
I have a bit of code that uses sessions and stores session data in the database. Works flawlessly on FreeBSD 4.7/mySQL/PostgreSQL running php 4.2.3. When trying to run my code on Windows 2k with MSSQL and mySQL, its not working. The windows box is running php 4.1.2 (its a dev box). Here is the

Re: [PHP] Bad File Mode?

2002-11-29 Thread Steve Keller
At 11/28/2002 01:51 PM, Ernest E Vogelsinger wrote: ? $data = mtype=XMLDOCoutfile=true; $dataFile = http://www.healthtvchannel.org/courses/pay/data/test.xml;; $fileSize = filesize($dataFile); Ah. It is a local file, I was just using an absolute reference for it.

[PHP] YATS on OS X

2002-11-29 Thread Adam Atlas
I'm trying to compile the YATS template system for PHP on Mac OS X. It compiles without problems (one warning actually, but that's not the problem I'm having), but it gives me a static library as an archive file, instead of a shared library which I can install into my PHP installation. I'm not

Re: [PHP] Upload wont work, OS X

2002-11-29 Thread magnus nilsson
It works, partially. I can upload the file, but it's named array. On fredag, nov 29, 2002, at 16:28 Europe/Stockholm, Beth Gore wrote: Hi Magnus, Your problem was you weren't using the correct part of the $_FILES array when using copy(); Cut and Past This: if ($ok){ $res =

[PHP] Test links?

2002-11-29 Thread Rob Packer
First, I'd like to say that I'm not asking for anyone to write a script... how would I go about checking a MySQL database of links to see if any are down? I've had some varying results with all the methods I've tried, so would like to see if anyone has a proven method for doing this. Thanks,

Re: [PHP] Test links?

2002-11-29 Thread Jason Reid
fopen each link and see if it returns true or false (false meaning its down) Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: Rob Packer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 29, 2002 3:53 PM Subject: [PHP] Test links?

[PHP] Re: First PHP

2002-11-29 Thread Godzilla
Not to hard to find http://www.php.net/manual/en/history.php ~Tim Heikkikk [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! I would like to know, Who made the first step to start programming PHP? So who is the father of PHP. Can anyone give me a link

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-29 Thread Axis Computers
Marek, Thanks for your ideas, I was thinking in a complicated scheme using $fp = fopen (php://stdin, $hexkeynumber) ... but I wasn't sure if that is better ... I think your solution is much neatier ... then I just have to compare the entered code with an id in the mysql database - Original

Re: [PHP] array with session

2002-11-29 Thread Justin French
Are you on PHP = 4.1 ? Try this: ? session_start(); print_r($_POST['Image']); // should print out your //checkbox array $_SESSION['Image'] = $_POST['Image']; // instead of session register print_r($_SESSION['Image']);// should

php-general Digest 30 Nov 2002 00:18:12 -0000 Issue 1734

2002-11-29 Thread php-general-digest-help
php-general Digest 30 Nov 2002 00:18:12 - Issue 1734 Topics (messages 126465 through 126505): OpenSSL Encryption to a browser. 126465 by: Comunica2 s. coop. 126468 by: Dan Hardiker Re: Multidimensional arrays (more and more...) 126466 by: Ford, Mike

[PHP] Method for displaying downline

2002-11-29 Thread Daren Cotter
I need to display an entire downline (info about all members referred by another member). The query to actually get the info I need is fairly simple, but displaying it in a table is what's tripping me up. There are two tables: Affiliates and Referrals. Affiliates keeps track of all affiliate

Re: [PHP] How Do I install php on Apache 2.0

2002-11-29 Thread -[ Rene Brehmer ]-
Hi Adam Voigt, On 27 Nov 2002 11:44:49 -0500, you wrote about Re: [PHP] How Do I install php on Apache 2.0 something that looked like this: A. What does having Adobe installed matter? Where'd you get that?? B. Why are you trying to run 2.0? Apache 2.0 isn't even recommended for use with PHP on

Re: [PHP] First PHP

2002-11-29 Thread -[ Rene Brehmer ]-
Hi Khalid El-Kary, On Fri, 29 Nov 2002 14:18:15 +, you wrote about Re: [PHP] First PHP something that looked like this: hi, how about the manual? Works for me to learn it ... it's the only thing I've read on PHP besides the WebMonkey guide to get the Apache+PHP set up ... -- PHP General

[PHP] imap_open authentication failure

2002-11-29 Thread Dumdeedum
Hi, I'm using the following code: $x = imap_open({mail..com:110/pop3}INBOX, [EMAIL PROTECTED], ); echo $x ? YAY! : NO YAY!BR . implode(BR, imap_errors()); It works fine on my local server, but as soon as I try it on the live machine it gives me: Retrying CRAM-MD5 authentication after

[PHP] Method for displaying Downline

2002-11-29 Thread Daren Cotter
I need to display an entire downline (info about all members referred by another member). The query to actually get the info I need is fairly simple, but displaying it in a table is what's tripping me up. There are two tables: Affiliates and Referrals. Affiliates keeps track of all affiliate

RE: [PHP] Re: amp; in Query String

2002-11-29 Thread Malcolm Brownell
Looks fine in Opera 6.03 hth http://www.vogelsinger.at/test.php?par1=value1par2=value2par3=value3 Opera Version 6.03 Build 1107 Platform Win32 System Windows 98 Java Sun Java Runtime Environment 1.4 Testing the query string This is the full query string ($_SERVER['QUERY_STRING']):

[PHP] Method for displaying Downline

2002-11-29 Thread Daren Cotter
I need to display an entire downline (info about all members referred by another member). The query to actually get the info I need is fairly simple, but displaying it in a table is what's tripping me up. There are two tables: Affiliates and Referrals. Affiliates keeps track of all affiliate

[PHP] test for ascii or binary string

2002-11-29 Thread Jonathan Sharp
Is there a way to determine if a string has ascii or binary data in it? -js -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: test for ascii or binary string

2002-11-29 Thread Jonathan Sharp
Doh, so simple. I guess the correct form of the question would be how do I determine if a string has just a-zA-Z0-9 in it plus punctuation... thanks, -js Paul Chvostek wrote: On Fri, Nov 29, 2002 at 10:27:05PM -0600, Jonathan Sharp wrote: Is there a way to determine if a string has ascii or

Re: [PHP] test for ascii or binary string

2002-11-29 Thread Morgan Hughes
On Fri, 29 Nov 2002, Jonathan Sharp wrote: Is there a way to determine if a string has ascii or binary data in it? I've used this kind of approach in the past to determine which encoding to use on a string which may contain text or an image. Basically it uses addcslashes to escape

[PHP] string

2002-11-29 Thread Remon Redika
hi everyone.. how to get the part of string and make it into a variable.. sample : determine now, i want to take just mine or 4 word from right, or deter (for left function). and after i got it, i want to make the mine into $x variable my mind.. $x = mean help please... -- PHP General

[PHP] Re: string

2002-11-29 Thread Kyle Gibson
hi everyone.. how to get the part of string and make it into a variable.. sample : determine now, i want to take just mine or 4 word from right, or deter (for left function). and after i got it, i want to make the mine into $x variable my mind.. $x = mean help please... $x =

[PHP] PHP Javascript compatibilty

2002-11-29 Thread Wee Keat [Amorphosium]
Hi all, I'm developing a WYSIWYG editor using PHP and Javascript (for COM). However, I start having problems when I try to display the page using the .php extension. The Javascript is not working. However, when I save it to HTML, it worked fine. Can anyone please help me? Why is this so?

[PHP] Re: PHP Javascript compatibilty

2002-11-29 Thread Kyle Gibson
I'm developing a WYSIWYG editor using PHP and Javascript (for COM). However, I start having problems when I try to display the page using the .php extension. The Javascript is not working. However, when I save it to HTML, it worked fine. Can anyone please help me? Why is this so? What can I do

[PHP] About Speech

2002-11-29 Thread Ing. Raúl González Rodríguez
Hi. I need to know if it's possible generate a wav, mid or mp3 file from php. I really need create a sound file and send it to the user using http. Exist some tool to do this work? Someone can give me an idea? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Test links?

2002-11-29 Thread Jason Wong
On Saturday 30 November 2002 06:53, Rob Packer wrote: First, I'd like to say that I'm not asking for anyone to write a script... how would I go about checking a MySQL database of links to see if any are down? I've had some varying results with all the methods I've tried, so would like to see

Re: [PHP] Upload wont work, OS X

2002-11-29 Thread Jason Wong
On Saturday 30 November 2002 06:42, magnus nilsson wrote: It works, partially. I can upload the file, but it's named array. print_r($_FILES) to see what it contains and how you can use it. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web