[PHP] Downloading a part of a file

2004-09-07 Thread Octavian Rasnita
Hi all, Please tell me how can I fetch an html document from a web page, let's say starting from the character 1000, and get the text until the caracter 5000. In fact, I want to use the GET or POST method, and to also send to the server the HTTP header: Range: bytes=1000-5000 Thanks. Teddy

[PHP] Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-07 Thread Monty
I've been reading for the last three days about character encodings and such, but, have still been unable to figure out what I think should be a simple solution. All I want to do is take curly or smart quotes that have been pasted or entered into a form field and convert those into straight

RE: [PHP] Regex for Validating URL

2004-09-07 Thread Burhan Khalid
-Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 11:59 AM Hi all, yeah, i know, i did do quite a bit of searching but I just cant find it... Does anyone have the regex to make sure an http address is full and without error? like

[PHP] anyone using? ROS pdf class? help: addTextWrap

2004-09-07 Thread Louie Miranda
I need help about this PHP Class, i only have a small problem. But i could not get it to work. $pdf-addTextWrap(10,30,100,8,WALA NGA DIBA OK NA ATA E? Sana naman no Ok na!!!,left,0); i have this text, at line 100 it was truncated. thats ok, but the remainder of the string is not being listed.

[PHP] unzipping

2004-09-07 Thread Mag
Hi, Anybody know of a good class, tutorial or something easy to let me unzip a file on my server? E.g: I have 3 uploaded zip files named a,b,c I want to unzip them into 3 diff folders while preserving their file structure. Thanks in advance. Mag = -- - The faulty interface lies between

Re: [PHP] Downloading a part of a file

2004-09-07 Thread zareef ahmed
Hi Rasnita, What you excatly want to do? if you just want to get a remote file. You can use normal file functions like fopen, fget, fgets, file_get_contents etc. with a url. http://in.php.net/manual/en/ref.filesystem.php and if you want to send headers to a server using curl can be a

Re: [PHP] unzipping

2004-09-07 Thread zareef ahmed
HI Mag ! look at it http://www.phpclasses.org/browse/package/945.html zareef ahmed --- Mag [EMAIL PROTECTED] wrote: Hi, Anybody know of a good class, tutorial or something easy to let me unzip a file on my server? E.g: I have 3 uploaded zip files named a,b,c I want to unzip them into

Re: [PHP] unable to use pear

2004-09-07 Thread Marek Kilimajer
zareef ahmed wrote: Hi, Make sure you have installed the pear and double check your included path in your php.ini . As per your message it seems that your pear should be in c:\php4\pear . Check for it and revert back. Also check if HTML_Template_IT package is installed, not all packages are

[PHP] Fwd: [ilugd] PHP and World Pay

2004-09-07 Thread zareef ahmed
--- Pushpendra Tiwari [EMAIL PROTECTED] wrote: Date: 7 Sep 2004 08:25:04 - From: Pushpendra Tiwari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [ilugd] PHP Help nedded urgently..! Dear Friends, Hi..! I am PHP Programmer. I want to know that has any body implemented

Re: [PHP] Problem with SSH output when called from apache

2004-09-07 Thread Jason Wong
On Tuesday 07 September 2004 08:16, Chandu Nannapaneni wrote: I want to capture the output of a certain remote command ( issued But when called from apache .. It's not giving any ouput. Does the logs on the ssh server indicate a successful login? [EMAIL PROTECTED] is well configured for ssh

Re: [PHP] converting seconds since unix epoc to date array

2004-09-07 Thread Wouter van Vliet
beware of dates before 1969. That problem mostly occurs on windows systems, and in fact it's dates before 1 jan 1970 0:00 - php on windows will issue a warning if you try to use dates like that Can anyone tell me how to convert a date stored in the format -MM-DD to an integer of

Re: [PHP] Regex for Validating URL

2004-09-07 Thread Wouter van Vliet
On Tue, 7 Sep 2004 10:58:48 +0300, Burhan Khalid [EMAIL PROTECTED] wrote: -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 11:59 AM Hi all, yeah, i know, i did do quite a bit of searching but I just cant find it... Does anyone have

[PHP] gzip

2004-09-07 Thread Matthew Oatham
Hi, I have a file on my server that I want to compress in a php page i.e take file.txt and add it to the archive file.zip. How the hell do I do it using gzip cant understand the manual, or is there another way to create a zip file or other compressed file. cheers matt

[PHP] Dynamic Class Methods

2004-09-07 Thread Mathieu Dumoulin
I'm trying to setup a function from user code inside a defined object or a class definition but it doesnt seem to work. Am i doing it right? Is there something i need to know... is it even possible? I know create_function can be used to create a function and it returns the ident to run the

RE: [PHP] Re: Unable to open word document.

2004-09-07 Thread Gryffyn, Trevor
Another thing to keep in mind is that Office products can run invisible. Sometimes you'll get COM failures and can't understand why and it turns out that Word or Excel or whatever is still running, just not visible. Pull up your Task Manager and look for the process and kill it. The property in

[PHP] Re: remote script execution

2004-09-07 Thread Matthew Weier O'Phinney
* Sean Smith [EMAIL PROTECTED]: Scenario Server 1 is a LAMP webserver. Server 2 is an email server. I have a php script on Server 2 that creates user accounts and echos the UID, GID, and HOME. It works great when your logged into Server 2 and run it from the CLI. What I'm trying to do

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Wouter van Vliet
On Tue, 7 Sep 2004 09:37:44 -0400, Mathieu Dumoulin [EMAIL PROTECTED] wrote: I'm trying to setup a function from user code inside a defined object or a class definition but it doesnt seem to work. Am i doing it right? Is there something i need to know... is it even possible? I know

Re: [PHP] unzipping

2004-09-07 Thread raditha dissanayake
Mag wrote: Hi, Anybody know of a good class, tutorial or something easy to let me unzip a file on my server? well you could just use `unzip filename` but make sure you update your zip installation because some older versions had some vulnerabilities. -- Raditha Dissanayake.

RE: [PHP] Dynamic Class Methods

2004-09-07 Thread Dan Joseph
Fatal error: Call to undefined function: b() in /home/tech/web/testboard/implements.php on line 21 $a-b(); You don't have a function b() defined in class cls_a. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ERROR

2004-09-07 Thread Jorge
? session_start(); //echo session_id(); if (!isset($_SESSION['Id'])){ echo(scripttop.location.href='../portada.php';/script); } ? Can somebody helps me ? the error is that login don' t access and I don't found the error.

Re: [PHP] Multi-User Text-Editing

2004-09-07 Thread Daniel Schierbeck
Okay, i got the general idea, now it all comes down to the actual writing. I'm making a function that compares two strings (the one in the source i read used an exec() call, but i'd like to do it all in PHP) per-line. This poses some difficulties. Here's the scenario: I want to determine

Re: [PHP] ERROR

2004-09-07 Thread Wouter van Vliet
? session_start(); //echo session_id(); if (!isset($_SESSION['Id'])){ echo(scripttop.location.href='../portada.php';/script); } ? Can somebody helps me ? the error is that login don' t access and I don't found the error. Jorge, can

Re: [PHP] Multi-User Text-Editing

2004-09-07 Thread Wouter van Vliet
?php $str1 = NEWTXT Once there was a Bar It was red It had some Foo Underneath its Foobar NEWTXT; $str2 = OLDTXT Once there was a Bar It had some Foo Underneath its Foobar OLDTXT;

[PHP] Underscores within echo statements

2004-09-07 Thread Neil Freeman
Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look in the manual and archives but couldn't find any reference to it. ?php echo _(Username) ? Thanks, Neil This communication is confidential to the intended recipient(s).

Re: [PHP] Underscores within echo statements

2004-09-07 Thread John Holmes
From: Neil Freeman [EMAIL PROTECTED] Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look in the manual and archives but couldn't find any reference to it. ?php echo _(Username) ?

FW: [PHP] Dynamic Class Methods

2004-09-07 Thread Dan Joseph
I am not nearly as stupid as you are. You're the one who can't get it to work, not me. -Dan Joseph -Original Message- From: Mathieu Dumoulin [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 10:56 AM To: 'Dan Joseph' Subject: RE: [PHP] Dynamic Class Methods ... are u stupid?

Re: [PHP] Underscores within echo statements

2004-09-07 Thread Marek Kilimajer
Neil Freeman wrote: Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look in the manual and archives but couldn't find any reference to it. ?php echo _(Username) ? see gettext extension Thanks, Neil Could you turn this

Re: [PHP] gzip

2004-09-07 Thread Matt M.
I have a file on my server that I want to compress in a php page i.e take file.txt and add it to the archive file.zip. How the hell do I do it using gzip cant understand the manual, or is there another way to create a zip file or other compressed file. have you looked at

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Curt Zirzow
* Thus wrote Mathieu Dumoulin: I'm trying to setup a function from user code inside a defined object or a class definition but it doesnt seem to work. Am i doing it right? Is there something i need to know... is it even possible? I know create_function can be used to create a function and it

RE: [PHP] Dynamic Class Methods

2004-09-07 Thread Jay Blanchard
[snip] ...stupid... [/snip] Mathieu, calling one of the better contributors on this list stupid is a quick way to earn your way into the 'ignored' group. He tried to help you and you flame him? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Underscores within echo statements

2004-09-07 Thread Neil Freeman
Marek Kilimajer wrote: *** This Email Has Been Virus Swept *** Neil Freeman wrote: Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look

Re: FW: [PHP] Dynamic Class Methods

2004-09-07 Thread John Nichel
Mathieu Dumoulin wrote: ... are u stupid? Next time read the whole mail before posting a reply and you'll know why i'm sending you back a flame. Mathieu Dumoulin Groupimage Communications (http://www.groupimage.com/) T: (514) 353-9595 // F: (514) 353-9550 // C: (514) 880-1442 Mathieu, did you

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread John Nichel
Jay Blanchard wrote: [snip] ...stupid... [/snip] Mathieu, calling one of the better contributors on this list stupid is a quick way to earn your way into the 'ignored' group. He tried to help you and you flame him? We have an 'ignored' group? Where do I sign up? ;) -- John C. Nichel ÜberGeek

Re: [PHP] Multi-User Text-Editing

2004-09-07 Thread Michal Migurski
Okay, i got the general idea, now it all comes down to the actual writing. I'm making a function that compares two strings (the one in the source i read used an exec() call, but i'd like to do it all in PHP) per-line. This poses some difficulties. Here's the scenario: Tavi Wiki just calls out

[PHP] Re: array_merge changed behaviour in Php5??

2004-09-07 Thread I2eptileX
I don't get it, this is a real problem for me. This is a backward incompatibility that brakes a lot of things. You are allways whining about not being able to change the strange parameters from functions due to backwards incompatibility. There a simple alias function would do the trick, and make

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Alex Hogan
Keep in mind the above is still in beta, but will allow you to add/remove/redefine methods of objects at runtime. You'll have to excuse me form my ignorance, but why would you want to add, remove or redefine methods of objects at runtime? I understand object overloading, but are you talking

[PHP] PHP for 'Calculate the statistics for a line'

2004-09-07 Thread Eugene Voznesensky
I am looking for PHP imlementation of the Statistics calculation for a line. It should have the same functionality like Excel LINEST. [From Excel Help: LINEST:Calculates the statistics for a line by using the least squares method to calculate a straight line that best fits your data, and returns

Re: [PHP] Re: array_merge changed behaviour in Php5??

2004-09-07 Thread Jim Grill
Can you at least explain me why it has been changed, before I go and change 150 lines of code, please? Yours Sincerely Sebastian Sebastian, Version 5 is what you would call a Major Version change. This is like comparing MySQL 4.x to MySQL 3.x. An insert statement that would result in

[PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Steve Brown
I'm using PHP to write some backup scripts. One of the scripts uses PHP to connect via FTP to a server, download some scripts and tar them up. I'm getting intermittent segmentation faults with this script, and I'm not sure what to report to troubleshoot this. Can someone tell me what would be

Re: [PHP] More on the credit card fraud

2004-09-07 Thread Matt M.
The fraudulent orders that I receive on my site come with email addresses of eight random alphanumerics @yahoo.com. preg_match('/[EMAIL PROTECTED]/', $email) should do the trick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Instant private messenger

2004-09-07 Thread Manuel Lemos
Hello, On 09/06/2004 06:31 PM, Phpu wrote: I wanna create an instant private messenger for users who are online on my site. Foe example: I have a list with online users. I select the user which i wanna send an message. A popup window will apear, i write the message and click send. To that user

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Matthew Weier O'Phinney
* Alex Hogan [EMAIL PROTECTED]: Keep in mind the above is still in beta, but will allow you to add/remove/redefine methods of objects at runtime. You'll have to excuse me form my ignorance, but why would you want to add, remove or redefine methods of objects at runtime? I understand object

[PHP] Announcement: Smarty template engine 2.6.4 released

2004-09-07 Thread Monte Ohrt
Hi, This is a bug fix and minor feature release. Have fun, -Monte Homepage: http://*smarty*.php.net/ http://smarty.php.net/ ChangeLog: http://*smarty*.php.net/misc/NEWS http://smarty.php.net/misc/NEWS Download: http://*smarty*.php.net/download.php http://smarty.php.net/download.php -- PHP

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Alex Hogan
[snip] I can think of some good reasons -- the one that readily leaps to mind is a plugin architecture. [/snip] OK.., Duh.., that hit me like a brick. It may take some time but eventually the light will come on. ;-) I don't know why but, plugins never crossed my mind in php development. Until

Re: [PHP] remote script execution

2004-09-07 Thread Sean Smith
Warren, I use ssh on all of my servers for logging in remotely. My next question would be, how do I connect to the remote server to run commands through PHP? Do I need to setup a socket or something? Could you provide me a pseudo sample or maybe point me to some docs. I've never had to do

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Jim Grill
I'm using PHP to write some backup scripts. One of the scripts uses PHP to connect via FTP to a server, download some scripts and tar them up. I'm getting intermittent segmentation faults with this script, and I'm not sure what to report to troubleshoot this. Can someone tell me what would

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Steve Brown
1) Environment a) OS b) PHP Version c) CLI or web-based d) Are you running php as an apache module? I'm runnning PHP 4.3.8 in CLI on Redhat 9 in this particular case. PHP compiled with --enable-ftp (among other things). PHP is installed as an Apache2 module, but (obviously

RE: [PHP] remote script execution

2004-09-07 Thread Vail, Warren
Ignoring PHP for a moment; to execute a string of commands on a remote machine using ssh you would execute the following; Promptssh -l user ps -ef|grep edit;cd /usr/local/bin;ls -la Which would result in showing any edit processes, followed by a listing of the contents of the /usr/local/bin

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Greg Donald
On Tue, 2004-09-07 at 15:21, Steve Brown wrote: The random nature leads me to believe that this is some sort of harmful interaction between this server and the FTP server. The FTP server is a Windows-based host. An almost identical script runs just fine while connecting to other servers. I

Re: [PHP] Re: array_merge changed behaviour in Php5??

2004-09-07 Thread Curt Zirzow
* Thus wrote I2eptileX: I don't get it, this is a real problem for me. This is a backward incompatibility that brakes a lot of things. You are allways whining about not being able to change the strange parameters from functions due to backwards incompatibility. There a simple alias function

Re: [PHP] More on the credit card fraud

2004-09-07 Thread Curt Zirzow
* Thus wrote Brian Dunning: The fraudulent orders that I receive on my site come with email addresses of eight random alphanumerics @yahoo.com. consider blocking any free address: hotmail, gmx.net, etc.. Of course gmail is an exception, who would want to get that one revoked ;) - Brian PS

[PHP] Is ob_gzhandler interfering with dynamic zipping???

2004-09-07 Thread Thomas Hochstetter
Hi there, Still sitting on this problem of not being able to dynamically zip a bunch of files together, to output them as a Save Dialog box for downloading. I am using the rather old pclzip classes for the zipping part (still wrestle with the server admin to get Archive_xxx stuff from PEAR

[PHP] Re: Is ob_gzhandler interfering with dynamic zipping???

2004-09-07 Thread Torsten Roehr
Thomas Hochstetter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, Still sitting on this problem of not being able to dynamically zip a bunch of files together, to output them as a Save Dialog box for downloading. I am using the rather old pclzip classes for the zipping

[PHP] referencing a class

2004-09-07 Thread Jed R. Brubaker
Quick question here. Has anyone run into trouble with a variable reference to a class object? Here is the code: $_SESSION['database'] = new Database; $this-db = $_SESSION['database']; Everything goes screwy after a call like this. Thanks in advance! -- PHP General Mailing List

[PHP] mail() from addess problems

2004-09-07 Thread Josh Close
When I'm using mail() to send an email, the user is always From: Apache [EMAIL PROTECTED] How would I get this to change? I didn't see anything in php.ini or httpd.conf. I've found it's not possible to do a header rewrite with postfix either. -Josh -- PHP General Mailing List

Re: [PHP] mail() from addess problems

2004-09-07 Thread Greg Donald
On Tue, 2004-09-07 at 16:52, Josh Close wrote: When I'm using mail() to send an email, the user is always From: Apache [EMAIL PROTECTED] How would I get this to change? I didn't see anything in php.ini or httpd.conf. I've found it's not possible to do a header rewrite with postfix either.

Re: [PHP] mail() from addess problems

2004-09-07 Thread Matt M.
How would I get this to change? I didn't see anything in php.ini or httpd.conf. I've found it's not possible to do a header rewrite with postfix either. There is examples in the manual http://us2.php.net/mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] mail() from addess problems

2004-09-07 Thread Josh Close
Thanks. -Josh On Tue, 07 Sep 2004 16:55:24 -0500, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 2004-09-07 at 16:52, Josh Close wrote: When I'm using mail() to send an email, the user is always From: Apache [EMAIL PROTECTED] How would I get this to change? I didn't see anything in

[PHP] create a zip file

2004-09-07 Thread Matthew Oatham
Hi, I have been trying to find a way of creating a zip file. I have a file on my server that I want to compress I have had a look at gzip but cant work out what to do. Can someone point me to a function or an example of how to do this. thanks matt

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Jim Grill
I'm runnning PHP 4.3.8 in CLI on Redhat 9 in this particular case. PHP compiled with --enable-ftp (among other things). PHP is installed as an Apache2 module, but (obviously since this is CLI), Apache isn't involved here. All other scripts work fine (CLI and web-based). Server is a dual MP

[PHP] Problem compiling PHP5

2004-09-07 Thread Paul Reinheimer
Hi, I am attempting to compile PHP with the following command: ./configure --with-mysql=/usr/local/mysql --with-apxs=/etc/httpd/bin/apxs --with-gd --with-png --with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf --with-jpeg-dir=/usr/local/lib/jpeg-6b/

[PHP] Byte size of text?

2004-09-07 Thread John Smith
What's the most accurate way to get the byte count of some text? Is strlen() accurate with Unicode, ASCII, etc.? John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General Mailing

Re: [PHP] Problem compiling PHP5

2004-09-07 Thread Curt Zirzow
* Thus wrote Paul Reinheimer: Hi, I am attempting to compile PHP with the following command: ./configure --with-mysql=/usr/local/mysql --with-apxs=/etc/httpd/bin/apxs --with-gd --with-png --with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf

[PHP] Re: Problem compiling PHP5

2004-09-07 Thread Paul Reinheimer
Taking the /lib/ portion of the configure command changes the error to configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information. Which (assuming it means that it needs libXpm.so AND libX11.so) means I might have a lead to follow. thanks paul

Re: [PHP] Problem compiling PHP5

2004-09-07 Thread Jim Grill
Hi, I am attempting to compile PHP with the following command: ./configure --with-mysql=/usr/local/mysql --with-apxs=/etc/httpd/bin/apxs --with-gd --with-png --with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf --with-jpeg-dir=/usr/local/lib/jpeg-6b/

Re: [PHP] Problem compiling PHP5

2004-09-07 Thread Jim Grill
* Thus wrote Paul Reinheimer: Hi, I am attempting to compile PHP with the following command: ./configure --with-mysql=/usr/local/mysql --with-apxs=/etc/httpd/bin/apxs --with-gd --with-png --with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf

Re: [PHP] Re: Problem compiling PHP5

2004-09-07 Thread Jim Grill
Taking the /lib/ portion of the configure command changes the error to configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information. Which (assuming it means that it needs libXpm.so AND libX11.so) means I might have a lead to follow.

[PHP] Re: Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-07 Thread Monty
Anyone! I'm out of online resources and answers. I guess this isn't possible to do... I've been reading for the last three days about character encodings and such, but, have still been unable to figure out what I think should be a simple solution. All I want to do is take curly or smart

[PHP] Re: Problem compiling PHP5

2004-09-07 Thread Paul Reinheimer
This isnt an NFS mount, should be a pretty plain rhel install. Config.log says: ... configure:30359: checking for jpeg_read_header in -ljpeg configure:30642: checking for png_write_image in -lpng configure:31022: checking for XpmFreeXpmImage in -lXpm configure:31041: gcc -o conftest -g -O2

[PHP] Re: Problem compiling PHP5

2004-09-07 Thread Paul Reinheimer
Okay My /usr/X11R6/lib/ has the same files, however, it doesnt have any symbolic links or files ending in .so, ie lrwxrwxrwx1 root root 14 Sep 7 13:03 libXpm.so.4 - libXpm.so.4.11 -rwxr-xr-x1 root root56220 Aug 22 09:22 libXpm.so.4.11 So when I compile with

[PHP] PHP OOP Question

2004-09-07 Thread ed . lazor
Is it bad practice for a class to have a variable and method of the same name? For example: class product { var $Name; function Name() { return stripslashes($this-Name); } } Thanks, -Ed This message was

[PHP] Re: Problem compiling PHP5

2004-09-07 Thread Paul Reinheimer
(I wish this was a forum, so I could edit/update posts) Trying the symbolic link trick in /usr/X11R6/LIB (from .so.4 - .so) doesnt cut it. PHP needs some of the header files (.h), which are not present anywhere but that /usr/local/lib/xpm-linux directory (which someone correctly surmised I had

Re: [PHP] Re: Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-07 Thread Jennifer Goodie
-- Original message from Monty : -- Anyone! I'm out of online resources and answers. I guess this isn't possible to do... I've been reading for the last three days about character encodings and such, but, have still been unable to figure out what I think should

[PHP] Auth class----MySQL user

2004-09-07 Thread Pahlevanzadeh Mohsen
Dears,My code is : ? function Login() { echo xxx; echo form method=\post\ action=\.$_SERVER['PHP_SELF']. \\; echo input type=\text\ name=\u\ br /; echo input type=\password\ name=\p\ br /; echo input type=\submit\; echo /form; } $username=$_POST['u']; $password=$_POST['p']; echo

Re: [PHP] Re: Problem compiling PHP5

2004-09-07 Thread Jim Grill
(I wish this was a forum, so I could edit/update posts) Trying the symbolic link trick in /usr/X11R6/LIB (from .so.4 - .so) doesnt cut it. PHP needs some of the header files (.h), which are not present anywhere but that /usr/local/lib/xpm-linux directory (which someone correctly surmised I

Re: [PHP] Re: Problem compiling PHP5

2004-09-07 Thread Paul Reinheimer
(i apologize for the direct reply copy of this message, I'm still getting used to gmail) I've seen the readme before, and it specifies: On Linux, if you do not use ELF yet you'd better get the binary distribution available from sunsite. Because it's really a pain to build a shared lib and the

Re: [PHP] create a zip file

2004-09-07 Thread raditha dissanayake
Matthew Oatham wrote: Hi, I have been trying to find a way of creating a zip file. I have a file on my server that I want to compress I have had a look at gzip but cant work out what to do. Can someone point me to a function or an example of how to do this. Check the messages within the last

Re: [PHP] Byte size of text?

2004-09-07 Thread raditha dissanayake
John Smith wrote: What's the most accurate way to get the byte count of some text? Is strlen() accurate with Unicode, ASCII, etc.? if you are working with non ASCII characters you might want to install the mulitbyte string extension. -- Raditha Dissanayake.

Re: [PHP] Web functional testing tools?

2004-09-07 Thread Doug Kearns
On Thu, Aug 26, 2004 at 04:19:51PM +0100, Geoff Caplan wrote: Doug, snip I'm fairly new to this field, so I'm still feeling my way, but I guess my requirements are similar to anyone else building a fairly complex ecommerce application: fill and submit forms using the full range of HTML

Re: [PHP] Re: Problem compiling PHP5

2004-09-07 Thread Paul Reinheimer
WHOHOO! up2date -i XFree86-devel ./configure --with-mysql=/usr/local/mysql --with-apxs=/etc/httpd/bin/apxs --with-gd --with-png --with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf --with-jpeg-dir=/usr/local/lib/jpeg-6b/ --with-freetype-dir=/usr/local/lib/freetype-2.1.9/

Re: [PHP] Dinamic generate PDF : which way ? (classes, docbook)

2004-09-07 Thread robert mena
Thanks. I'll check it out. My main concern is that what seems great about using those php classes to generate the pdf directly is the possibilite to pull data from mysql (or other db) and generate an up-to-date report. But since this is not the case seems a lot of work just to generate a simple

[PHP] Upload not working...

2004-09-07 Thread Deependra b. Tandukar
I tried this form to upload a file. html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / /head body form action=./upload.php method=post input type=file name=userfile input type=submit value=upload /form /body /html with the following code:

[PHP] array

2004-09-07 Thread John Taylor-Johnston
I'm reading data. Can I open a connection within a connection and write data to another $db.$table or do I have to write my data to an array. In an array, how do I do this? I've looked at array_push, but don't think this is what I want? $authors = array();

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Rasmus Lerdorf
On Tue, 7 Sep 2004, Jim Grill wrote: If any of the output from gdb give you a hint what the problem could be (ftp functions or something) research each of the functions you are using on the PHP site reading the user added comments. Look for any mention of a possible segfault. Search the PHP

Re: [PHP] Re: Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-07 Thread Rasmus Lerdorf
Are you certain these curly quotes are actually coming in and not being munged by the client sending them? If they are coming in, and they are actually in Unicode, which unicode sequence are they represented by. If you could save the raw data you are getting to a file and make that file

Re: [PHP] Upload not working...

2004-09-07 Thread raditha dissanayake
Deependra b. Tandukar wrote: I tried this form to upload a file. form action=./upload.php method=post ... This very code works in my home computer. I tried this with my local server at my office and my web server, both give the same message what is the wrong with it. Suprised that it worked at

Re: [PHP] Upload not working...

2004-09-07 Thread zareef ahmed
--- Deependra b. Tandukar [EMAIL PROTECTED] wrote: I tried this form to upload a file. html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / /head body form action=./upload.php method=post you should define enctype input