[PHP] Re: exclude_once(); ?

2004-05-10 Thread Matthias H. Risse
or if your PHP versions is prior to 4.3.0 use ini_set('include_path', '.:/path'): http://de3.php.net/manual/en/function.ini-set.php Yes that was my idea, too. Probably its best to kick there whole include-path and substitute it with my own. Lets hope it has nothing to do with the auto_append

Re: [PHP] PHP /\ UML

2004-05-10 Thread Matthias H. Risse
thanks. i just dislike the idea of usingdesktop apps bound to a single gui. why the hell we need this in times of java/awt/swing, .net, xul and other funky technologies? any more ideas? /m -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] no value for upload_tmp_dir

2004-05-10 Thread Marvin Cummings
Sorry if this kind of an easy but can someone advise me on how to add a value for upload_tmp_dir? I have php4.3.4 installed on a w2k3 server running postnuke and mysql5. I notice in phpinfo.php that upload_tmp_dir says no value even though the directory is defined in the php.ini file. This is

Re: [PHP] Remove cahracters in string

2004-05-10 Thread John W. Holmes
Mike Mapsnac wrote: I search on php.net and couldn't find the function. I need a function that will remove characters in the string until it reached the pattern and remove characters in the string after another pattern. The program reads huge file, and remove unnessary data. So I need to

[PHP] Re: readdir and opendir

2004-05-10 Thread greg
Vincent Dupont wrote: Simple question : do readdir and opendir support opening HTTP urls ?? RTFM ! No it doesn't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: readdir and opendir

2004-05-10 Thread Vincent DUPONT
Thank you greg. Do you know if they support remote drive from Windows, like \\servername\dir\. I'm having huge problems to list files and dirs on the remote server ( with opendir, readdir) while i can easily read or write a file on the same server using fread, fopen. From the bugs reports

Re: [PHP] thumbnail problems

2004-05-10 Thread Marek Kilimajer
Ninti Systems wrote: I've searched the archives on this and, while I have turned up some tips, they don't seem to solve my problem. I an building a website for an indigenous organisation where jpg images are uploaded, resized to a standard format, and thumbnails also generated at the same time (so

[PHP] system command?

2004-05-10 Thread Jas
Anyone know what this wouldn't work? I have tried using a couple of functions defined at http://us2.php.net/manual/en/ref.exec.php and none seem to have the desired effect. ?php $tailed = shell_exec('tail -f /path/to/log'); //$tailed = exec('tail -f /path/to/log'); //$tailed = system('tail -f

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[snip] Anyone know what this wouldn't work? I have tried using a couple of functions defined at http://us2.php.net/manual/en/ref.exec.php and none seem to have the desired effect. ?php $tailed = shell_exec('tail -f /path/to/log'); //$tailed = exec('tail -f /path/to/log'); //$tailed =

Re: [PHP] system command?

2004-05-10 Thread Adam Voigt
I believe when you add the -f flag, the tail command doesn't exit, it just keeps printing as data is appended to the log, did you try dropping the -f flag? On Mon, 2004-05-10 at 10:15, Jas wrote: Anyone know what this wouldn't work? I have tried using a couple of functions defined at

RE: [PHP] system command?

2004-05-10 Thread Daniel Purdy
[snip] Anyone know what this wouldn't work? I have tried using a couple of functions defined at http://us2.php.net/manual/en/ref.exec.php and none seem to have the desired effect. ?php $tailed = shell_exec('tail -f /path/to/log'); //$tailed = exec('tail -f /path/to/log'); //$tailed =

[PHP] Upgrading SAPI from 4.2.2 to 4.3.6 on RH9 with Apache 2

2004-05-10 Thread Tom
Hi. I'm trying to upgrade a server (up2date RedHat9) - which is running Apache 2 (default!) and PHP 4.2.2 - to PHP 4.3.6. It is the SAPI version (running as an Apache module). I have downloaded the tar.gz, exploded that and run ./configure --disable-cgi --with-apxs2=/var/share/Apache/apxs.pl

Re: [PHP] system command?

2004-05-10 Thread John Nichel
Jas wrote: Anyone know what this wouldn't work? I have tried using a couple of functions defined at http://us2.php.net/manual/en/ref.exec.php and none seem to have the desired effect. ?php $tailed = shell_exec('tail -f /path/to/log'); //$tailed = exec('tail -f /path/to/log'); //$tailed =

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[snip] It is now... but it still doesn't work. I have tried passthru(), exec(), shell_exec() system() trying to tail -f a log file into a textarea box and I get nothing or the output is put in the headers and stops the rest of the page from loading. I am at a loss. Jay Blanchard wrote:

Re: [PHP] Re: readdir and opendir

2004-05-10 Thread Ryan A
On 5/10/2004 3:21:14 PM, greg ([EMAIL PROTECTED]) wrote: Vincent Dupont wrote: Simple question : do readdir and opendir support opening HTTP urls ?? RTFM ! No it doesn't. DUDE! Anger management!!! ;-p Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] system command?

2004-05-10 Thread Jas
I didn't sent off list, always to php.general in reply to whatever message thread I am in. In any event, I have tried safe mode = On and safe mode = Off with the 4 commands I listed in my last thread and my actual code is using an echo = textarea$tailed/textarea; I even tried to remove the -f

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[snip] I didn't sent off list, always to php.general in reply to whatever message thread I am in. In any event, I have tried safe mode = On and safe mode = Off with the 4 commands I listed in my last thread and my actual code is using an echo = textarea$tailed/textarea; ?php $tailed =

RE: [PHP] Re: Problems with very special characters

2004-05-10 Thread Wouter van Vliet
Hi, Thanks for your suggestion. The problem appeared to be in the AddDefaultCharSet directive. It was set to UTF-8, and for the characters to be displayed it should've been set to iso-8859-1. Wouter (wonder why redhat uses UTF-8 encoding, if it causes this many problems ... ) -Original

Re: [PHP] Re: Active PHP Sessions

2004-05-10 Thread Paul Higgins
I'm not sure if this is the right place to post this (if not, I would appreciate being directed to the correct place). I looked into adodb and got it running. However, it mentions the ability to execute a function when a session expires. I would like to know where I write this function.

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[snip] I didn't sent off list [/snip] I am in an relatively crappy mood this day, you may want to NOT refute something I have said and in essence call me a liar. You'll get little help that way. P.S. Stop top posting too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] system command?

2004-05-10 Thread Adam Voigt
lol On Mon, 2004-05-10 at 11:16, Jay Blanchard wrote: [snip] I didn't sent off list [/snip] I am in an relatively crappy mood this day, you may want to NOT refute something I have said and in essence call me a liar. You'll get little help that way. P.S. Stop top posting too. -- Adam

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[snip] ?php $tailed = shell_exec('tail /path/to/log'); print = textarea$tailed/textarea; ? [/snip] I forgot to take out the = ?php $tailed = shell_exec('tail /path/to/log'); print = textarea$tailed/textarea; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Save page

2004-05-10 Thread Mike Mapsnac
Hello I' m writing php script that will request page and save it locally. The page URL will be parameter (example: http://www.pagetoget.com/thispage.html). How php can request such page and save it locally on the file? Thanks _

Re: [PHP] Save page

2004-05-10 Thread Serhan D. Kiymaz
I think you have to write apache rules to handle the request (search for ReWriteRule) and an index.php can save the file regards Mike Mapsnac wrote: Hello I' m writing php script that will request page and save it locally. The page URL will be parameter (example:

Re: [PHP] Save page

2004-05-10 Thread Brandon Holtsclaw
try something like $handle = fopen (http://www.pagetoget.com/thispage.html;, rb); $contents = ; do { $data = fread($handle, 1024); if (strlen($data) == 0) { break; } $contents .= $data; } while(true); fclose ($handle); then you have all text from the .html page in

Re: [PHP] PHP /\ UML

2004-05-10 Thread Martin Hjort Eriksen
Try Umbrello http://www.blinkenlights.de/arcade/index.en.html /Martin Eriksen Matthias H. Risse wrote: Hi, I wonder if anyone here is aware of UML Tools for PHP? I know of ArgoUML whichs PHP-codegenerator seems to be very beta. Maybe there are or are planned and well intergrated plugins for

Re: [PHP] PHP /\ UML

2004-05-10 Thread Martin Hjort Eriksen
This time with the correct URL http://uml.sourceforge.net /Martin Eriksen Martin Hjort Eriksen wrote: Try Umbrello http://www.blinkenlights.de/arcade/index.en.html /Martin Eriksen Matthias H. Risse wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Save page

2004-05-10 Thread Curt Zirzow
* Thus wrote Mike Mapsnac ([EMAIL PROTECTED]): Hello I' m writing php script that will request page and save it locally. The page URL will be parameter (example: http://www.pagetoget.com/thispage.html). How php can request such page and save it locally on the file? $ch = curl_init();

Re: [PHP] Save page

2004-05-10 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Mike Mapsnac ([EMAIL PROTECTED]): Hello I' m writing php script that will request page and save it locally. The page URL will be parameter (example: http://www.pagetoget.com/thispage.html). How php can request such page and

RE: [PHP] LOBs

2004-05-10 Thread Fidencio Monroy
sorry, the specifications are php 4.3.6RC1 as a CGI on apache 1.3 using oci functions and connecting to an 8.1.7.4.1 oracle database Thanks -Original Message- From: Fidencio Monroy [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 12:29 AM To: (PHP General List) Subject: [PHP] LOBs

[PHP] rounding average to one decimal point

2004-05-10 Thread Adam Williams
Hi, I have a randon group of numbers I need the average of. When I add them up and divide by how many there are and print the result, I get a lot of decimal places. The number comes out to look like 29.3529411765, but I don't need that many decimal places. rounding to one decimal place will

Re: [PHP] rounding average to one decimal point

2004-05-10 Thread Richard Davey
Hello Adam, Monday, May 10, 2004, 7:03:36 PM, you wrote: AW Hi, I have a randon group of numbers I need the average of. When I add AW them up and divide by how many there are and print the result, I get a AW lot of decimal places. The number comes out to look like 29.3529411765, AW but I don't

Re: [PHP] rounding average to one decimal point

2004-05-10 Thread Daniel Clark
How about round() echo round(1.95583, 2); // 1.96 echo round(1241757, -3); // 1242000 http://www.phpbuilder.com/manual/function.round.php Hi, I have a randon group of numbers I need the average of. When I add them up and divide by how many there are and print the result, I get a lot of

Re: [PHP] rounding average to one decimal point

2004-05-10 Thread Adam Williams
On Mon, 10 May 2004, Richard Davey wrote: Hello Adam, Monday, May 10, 2004, 7:03:36 PM, you wrote: AW Hi, I have a randon group of numbers I need the average of. When I add AW them up and divide by how many there are and print the result, I get a AW lot of decimal places. The number

[PHP] Accessing the values of objects

2004-05-10 Thread John Nichel
Hi, OOP is not my strong suit, and I'm trying to work with someone else's code, but am having trouble accessing a value. Let's say I have an object called $bob, and doing a print_r on $bob produces this Array ( [one] = this [two] = that [three] = Array

RE: [PHP] Accessing the values of objects

2004-05-10 Thread Michael Sims
John Nichel wrote: OOP is not my strong suit, and I'm trying to work with someone else's code, but am having trouble accessing a value. Let's say I have an object called $bob, and doing a print_r on $bob produces this Array ( Are you sure $bob is an object? It says above that it's

Re: [PHP] Accessing the values of objects

2004-05-10 Thread Richard Davey
Hello John, Monday, May 10, 2004, 7:18:04 PM, you wrote: JNOOP is not my strong suit, and I'm trying to work with someone else's JN code, but am having trouble accessing a value. Let's say I have an JN object called $bob, and doing a print_r on $bob produces this JN Array [snip] That

Re: [PHP] Accessing the values of objects

2004-05-10 Thread John Nichel
Michael Sims wrote: John Nichel wrote: OOP is not my strong suit, and I'm trying to work with someone else's code, but am having trouble accessing a value. Let's say I have an object called $bob, and doing a print_r on $bob produces this Array ( Are you sure $bob is an object? It says

[PHP] How to find path for PHP script

2004-05-10 Thread Tom Chubb
Does anyone know a quick way to find the full path on a shared hosting plan to use in an include file? Thanks, Tom

Re: [PHP] How to find path for PHP script

2004-05-10 Thread Richard Davey
Hello Tom, Monday, May 10, 2004, 7:32:16 PM, you wrote: TC Does anyone know a quick way to find the full path on a shared hosting plan TC to use in an include file? Take a peek at this (upload to your host first of course!) ?php echo phpinfo(); ? It'll tell you exactly what you need to

Re: [PHP] How to find path for PHP script

2004-05-10 Thread Daniel Clark
What about: $_SERER['PATH_TRANSLATED'] http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.server Does anyone know a quick way to find the full path on a shared hosting plan to use in an include file? Thanks, Tom -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] How to find path for PHP script

2004-05-10 Thread Daniel Clark
oops. $_SERVER[] What about: $_SERER['PATH_TRANSLATED'] http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to find path for PHP script

2004-05-10 Thread John W. Holmes
From: Daniel Clark [EMAIL PROTECTED] Does anyone know a quick way to find the full path on a shared hosting plan to use in an include file? What about: $_SERER['PATH_TRANSLATED'] If you note my message from yesterday, I was having some trouble with this variable on certain

[PHP] To pack(), or not to pack()

2004-05-10 Thread René Fournier
Hi, I'm developing a PHP program that must send data, over a socket connection, to a server. The server requires the data in a particular format, e.g.: FORMAT: 3-byte delimiter - Message Length (N = 4 bytes) - Message Type (4 bytes) - Message Body (N - 4 bytes) - 3-byte Delimiter SAMPLE

[PHP] Check for parse errors right after edit

2004-05-10 Thread David Yee
Hi- what's the best way to automatically check for parse errors after editing a php script with vi or vim? I suppose that php -l name_of_script can be ran after exiting, but I wouldn't want that command to be ran after running vim everytime. Or maybe there's a plugin for vim that will do this?

Re: [PHP] How to find path for PHP script

2004-05-10 Thread Daniel Clark
Thanks John. From: Daniel Clark [EMAIL PROTECTED] Does anyone know a quick way to find the full path on a shared hosting plan to use in an include file? What about: $_SERER['PATH_TRANSLATED'] If you note my message from yesterday, I was having some trouble with this variable on

[PHP] 0 == null ?

2004-05-10 Thread Justin Palmer
Hi, Does 0(zero) really equate to null? if( 0 == null ) { echo 'true'; } else echo 'false'; Result echo's: true This can not be right, can it? I have never heard of such a thing. As far as I recall from any language null is of no value equaling nothing? So how can it equal 0? Any

Re: [PHP] 0 == null ?

2004-05-10 Thread Robert Cummings
On Mon, 2004-05-10 at 15:17, Justin Palmer wrote: Hi, Does 0(zero) really equate to null? if( 0 == null ) { echo 'true'; } else echo 'false'; Result echo's: true This can not be right, can it? I have never heard of such a thing. As far as I recall from any language null

[PHP] unsigned long int

2004-05-10 Thread René Fournier
I don't know C, but I was wondering if it is possible to: 1. Define 32-bit integer in PHP, called $val (max value of $val); 2. Assign the value of 10 to $val. 3. Pack $val to a binary variable ($bin_var); ...such that $val is only equal to 10, but it is occupying 32-bits of data... (In case you

RE: [PHP] Accessing the values of objects

2004-05-10 Thread Michael Sims
John Nichel wrote: Michael Sims wrote: John Nichel wrote: Are you sure $bob is an object? It says above that it's an array. If $bob were an object, print_r() should give objectname Object instead of Array. Nah, that's just my bad typing without thinking. When I print_r($bob), it does

RE: [PHP] 0 == null ?

2004-05-10 Thread Alex Hogan
Does 0(zero) really equate to null? if( 0 == null ) { echo 'true'; } else echo 'false'; Result echo's: true This can not be right, can it? I have never heard of such a thing. As far as I recall from any language null is of no value equaling nothing? So how can it equal

RE: [PHP] 0 == null ?

2004-05-10 Thread Justin Palmer
Hi Robert, Thanks. Regards, Justin Palmer -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 12:22 PM To: [EMAIL PROTECTED] Cc: PHP-General Subject: Re: [PHP] 0 == null ? On Mon, 2004-05-10 at 15:17, Justin Palmer wrote: Hi, Does

[PHP] PHP 5 Documentation

2004-05-10 Thread Fidencio Monroy
Does PHP 5 documentation exist? I have not found it in php.net. can someone send link please? Tnx

[PHP] Re: PHP 5 Documentation

2004-05-10 Thread Rainer Müller
Fidencio Monroy wrote: Does PHP 5 documentation exist? I have not found it in php.net. can someone send link please? Tnx There is only one documentation with version numbers for each function. http://www.php.net/docs.php Rainer -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] To pack(), or not to pack()

2004-05-10 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): Hi, I'm developing a PHP program that must send data, over a socket connection, to a server. The server requires the data in a particular format, e.g.: FORMAT: 3-byte delimiter - Message Length (N = 4 bytes) - Message Type (4 bytes) -

Re: [PHP] Check for parse errors right after edit

2004-05-10 Thread Curt Zirzow
* Thus wrote David Yee ([EMAIL PROTECTED]): Hi- what's the best way to automatically check for parse errors after editing a php script with vi or vim? I suppose that php -l name_of_script can be ran after exiting, but I wouldn't want that command to be ran after running vim everytime. Or

[PHP] thumbnails of images

2004-05-10 Thread John
is there any code or function out there that gives you a thumbnail of an image in the size and compression means you specify?? ive been looking, but found nothing, youd think thered be a function -- ** Free Nokia Ringtones US http://www.ring-tones.us

Re: [PHP] Accessing the values of objects

2004-05-10 Thread John Nichel
Michael Sims wrote: John Nichel wrote: Michael Sims wrote: John Nichel wrote: Are you sure $bob is an object? It says above that it's an array. If $bob were an object, print_r() should give objectname Object instead of Array. Nah, that's just my bad typing without thinking. When I

Re: [PHP] PHP 5 Documentation

2004-05-10 Thread Martin Hjort Eriksen
Fidencio Monroy wrote: Does PHP 5 documentation exist? I have not found it in php.net. can someone send link please? Tnx http://www.zend.com/php5/zend-engine2.php /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5 Documentation

2004-05-10 Thread Curt Zirzow
* Thus wrote Fidencio Monroy ([EMAIL PROTECTED]): Does PHP 5 documentation exist? I have not found it in php.net. There isn't any php5 documentation that is seperated from php4. There is a possibility that this will happen in the future. To see a some information about whats different about

[PHP] PHP graphing tool?

2004-05-10 Thread Amanda Hemmerich
Is there a PHP tool or module out there that would be good for creating line or bar graphs? I'm looking for something I can pass numbers to and it will just graph those numbers. Any recommendations? Thanks! Amanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SOLVED Re: [PHP] using cookies

2004-05-10 Thread David T-G
Hi, all -- ...and then David T-G said... % % I guess I need a primer on cookie usage. I've read the manual regarding [snip] All has become clear, or at least only murky :-) I was having trouble wrapping my head around how to start cookies (a la sessions) and then check to see if I had a

Re: [PHP] PHP graphing tool?

2004-05-10 Thread Adam Voigt
http://www.aditus.nu/jpgraph/ On Mon, 2004-05-10 at 16:10, Amanda Hemmerich wrote: Is there a PHP tool or module out there that would be good for creating line or bar graphs? I'm looking for something I can pass numbers to and it will just graph those numbers. Any recommendations?

Re: [PHP] PHP graphing tool?

2004-05-10 Thread Amanda Hemmerich
Also, the cheaper, the better, and free is best! Thanks again. On Mon, 10 May 2004, Adam Voigt wrote: http://www.aditus.nu/jpgraph/ On Mon, 2004-05-10 at 16:10, Amanda Hemmerich wrote: Is there a PHP tool or module out there that would be good for creating line or bar graphs? I'm

[PHP] Re: thumbnails of images

2004-05-10 Thread Torsten Roehr
John [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there any code or function out there that gives you a thumbnail of an image in the size and compression means you specify?? ive been looking, but found nothing, youd think thered be a function --

Re: [PHP] Accessing the values of objects

2004-05-10 Thread John W. Holmes
From: John Nichel [EMAIL PROTECTED] Yeah, I get an empty value for the object I'm working with (quite a bit bigger than the example I posted) when I try to retrive the individual value, but the print_r of the object shows that it has value. I thought my syntax was wrong, but I guess I have

Re: [PHP] PHP graphing tool?

2004-05-10 Thread Torsten Roehr
Amanda Hemmerich [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Also, the cheaper, the better, and free is best! Older versions are available for free but may not be used commercially: http://www.aditus.nu/jpgraph/jpdownload.php Regards, Torsten Thanks again. On Mon, 10 May

RE: [PHP] Re: thumbnails of images

2004-05-10 Thread Edward Peloke
won't the gd library do this? http://www.php.net/manual/en/function.exif-thumbnail.php if there is a better function..I am interested in it also as I have to do this something this week for a project. Thanks, Eddie -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] Re: thumbnails of images

2004-05-10 Thread Torsten Roehr
Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] won't the gd library do this? http://www.php.net/manual/en/function.exif-thumbnail.php if there is a better function..I am interested in it also as I have to do this something this week for a project. Thanks, Eddie

Re: [PHP] unsigned long int

2004-05-10 Thread Marek Kilimajer
René Fournier wrote: I don't know C, but I was wondering if it is possible to: 1. Define 32-bit integer in PHP, called $val (max value of $val); 2. Assign the value of 10 to $val. 3. Pack $val to a binary variable ($bin_var); ...such that $val is only equal to 10, but it is occupying 32-bits of

[PHP] Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
I search on php.net and couldn't find the function. I need a function that will remove characters in the string until it reached the pattern and remove characters in the string after another pattern. The program reads huge file, and remove unnessary data. So I need to remove characters before

[PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
Mike Mapsnac [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I search on php.net and couldn't find the function. I need a function that will remove characters in the string until it reached the pattern and remove characters in the string after another pattern. The program reads

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
Below is string let's name it A. ttPhiladelphiaFirstadate05Oct2004tt I want to get string B. That looks like PhiladelphiaFirstadate05Oct2004 No characters before Philadelphia and after 20004 From: Torsten Roehr [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Torsten Roehr
Mike Mapsnac [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Below is string let's name it A. ttPhiladelphiaFirstadate05Oct2004tt I want to get string B. That looks like PhiladelphiaFirstadate05Oct2004 No characters before Philadelphia and after

Re: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Mike Mapsnac
No. It just an example From: Torsten Roehr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Remove cahracters in string Date: Mon, 10 May 2004 22:49:27 +0200 Mike Mapsnac [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Below is string let's name it A.

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Rick Fletcher
Below is string let's name it A. ttPhiladelphiaFirstadate05Oct2004ttt ttt I want to get string B. That looks like PhiladelphiaFirstadate05Oct2004 No characters before Philadelphia and after 20004 Is the character you want to remove ('t')

[PHP] Re: PHP graphing tool?

2004-05-10 Thread Kim Steinhaug
You will find a couple on phpclasses.org, also a few on sourceforge.net Some googling and youll find a few more. Ive been down the same road, finally youll see that accually there are no free ones usable for your project (atleast I had a real hard time finding some). There are some really great

RE: [PHP] Re: Remove cahracters in string

2004-05-10 Thread Rick Fletcher
For this example I would have suggested: ?php $str = PhiladelphiaFirstadate05Oct2004; $str = trim( $str, t ); print( $str ); // outputs PhiladelphiaFirstadate05Oct2004 ? Cheers, Rick t is not static character. My example isn't correct Correct

[PHP] Regex Help

2004-05-10 Thread hitek
Greetings list, I have been given a list of products, and I need some help building a regular expression to split the category from the sub category. Example: CamerasDigital_CannonXLRshot -Original entry in list Cameras Digital Cannon XLRshot -Desired result. I can use str_replace() for the

Re: [PHP] Regex Help

2004-05-10 Thread Curt Zirzow
* Thus wrote hitek ([EMAIL PROTECTED]): Greetings list, I have been given a list of products, and I need some help building a regular expression to split the category from the sub category. Example: CamerasDigital_CannonXLRshot -Original entry in list Cameras Digital Cannon XLRshot

[PHP] Binary to ASCII

2004-05-10 Thread René Fournier
When reading from a Socket Server, my Socket Client retrieves data that includes ASCII and binary data: while(($buf = socket_read($socket,128,PHP_BINARY_READ)) !== false) { $data .= $buf; if(preg_match(/ENX/, $data)) break; } echo RESPONSE: .$data.\n; The output looks

Re: [PHP] Regex Help

2004-05-10 Thread hitek
Curt, That's perfect. Works like a charm. Thanks, Keith At 03:54 PM 5/10/2004, Curt Zirzow wrote: * Thus wrote hitek ([EMAIL PROTECTED]): Greetings list, I have been given a list of products, and I need some help building a regular expression to split the category from the sub category.

Re: [PHP] Binary to ASCII

2004-05-10 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): When reading from a Socket Server, my Socket Client retrieves data that includes ASCII and binary data: while(($buf = socket_read($socket,128,PHP_BINARY_READ)) !== false) { $data .= $buf; if(preg_match(/ENX/, $data)) break;

Re: [PHP] Binary to ASCII

2004-05-10 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Ren Fournier ([EMAIL PROTECTED]): //I would Assume that that was packed with something like this: $string = 'The system is up and running.'; $pck = pack('a3iia*a3', 'STX', strlen($string), 38, $string, 'ENX'); echo $pck, \n; IIRC,

Re: [PHP] $_SESSION - Learning

2004-05-10 Thread apur kurub ver.1
there must be session_start() before your code have you check the $row-user, is it have value?? rgds [xm] http://amadarum.e-tics.net/nigritude-ultramarine.php - Original Message - From: Ross Bateman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 10, 2004 12:24 PM Subject:

AW: [PHP] page_title ... Erik Gjertsen

2004-05-10 Thread Shahed, Raja
Erik Gjertsen wrote html head title ? echo $page_title; ? /title /head body ?php $page_title = Welcome; ? h1 Now you see it /h1 /body /html Rev. Raja shahed -Ursprüngliche Nachricht- Von: Erik Gjertsen [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 8. Mai 2004

[PHP] LOBs

2004-05-10 Thread Fidencio Monroy
Hi, in the documentation there are several examples about updating LOB columns, but i have not found some example retrieving and working with this kind of data. I will be thankful if you can send an example to me how to do it; by example to write this data to a file. Thanks in advance.

[PHP] open remote file: password problem under SMB

2004-05-10 Thread Vincent DUPONT
Hi, I need to open files on a remote computer (from windows to windows) The path is like \\servername\share\file.txt The SMB protocol is supported in PHP and ususally works very well on simple LAN networks (see http://be2.php.net/manual/en/wrappers.php) The default user is the user running the

[PHP] Re: exclude_once(); ?

2004-05-10 Thread Torsten Roehr
Matthias H. Risse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi again! Question: Does anyone know of a possibility to exclude files which have been included _before_ my script starts on the fly (e.g. at the first lines after the entrypoint) ? Reasons: This ISP of my

[PHP] Complicated sql for search query ?

2004-05-10 Thread Dave Carrera
Hi List, I think this a complicated sql query but I am sure one of you gurus will show me how easy this is. I am doing a search script an have it finding multiple words and highlighting those words. Now my issue is how do I order each row from my result so that if the row has word1 and word2

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-10 Thread Craig Donnelly
If returning a floating point variable, cast it back to an (int) hth Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Cheers for all ideas/suggetions so far.. I've made a little progres... Visit this URL: http://www.risk.sungard.com/secure.php?secure=126807.714285714

[PHP] Re: Complicated sql for search query ?

2004-05-10 Thread Torsten Roehr
Dave Carrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi List, I think this a complicated sql query but I am sure one of you gurus will show me how easy this is. I am doing a search script an have it finding multiple words and highlighting those words. Now my issue is how do I

[PHP] Uploading and directory permissions

2004-05-10 Thread Mario
Hi all For few years now I've been creating custom CMSs and I've been having an images folder with permissions 777 so the PHP script can upload images through the CMS. You can imagine what the problem is... although I never had someone deleting images (low profile sites usually), couple of days

Re: [PHP] Complicated sql for search query ?

2004-05-10 Thread Marek Kilimajer
Something like: select , IF(title_keywords like \%$word1%\ or body_keywords like \%$word1%\, 1, 0) + IF(title_keywords like \%$word2%\ or body_keywords like \%$word2%\, 1, 0) as relevance .. ORDER BY relevance I hope you get the point. Dave Carrera wrote: Hi List, I think this a

[PHP] readdir and opendir

2004-05-10 Thread Vincent DUPONT
Simple question : do readdir and opendir support opening HTTP urls ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: thumbnail problems

2004-05-10 Thread Alireza Balouch
just turn on the error report on php and look for errors.. and if you use @ in front of any method, take it away.. I think you've got some error on your script that dosent show Ninti Systems [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've searched the archives on this and, while

[PHP] PHP with imap support

2004-05-10 Thread James Tusini
I'm trying to re-compile php with imap, but all I've got so far is a huge headache. I have a working installation of courier-imap + I installed the imap-devel rpm but the configure script fails and the last line says: checking whether IMAP works... no configure: error: build test failed. Please

RE: [PHP] Re: form submission logic

2004-05-10 Thread Jay Blanchard
[snip] This is more of a HTML than a PHP question, but anyway: It doesn't matter where you put the buttons as long as they are INSIDE the form-tag and have different names. [/snip] Actually you can name them all the same thing and then have PHP process the form via a switch/case statment. input

Re: [PHP] Uploading and directory permissions

2004-05-10 Thread James E Hicks III
On Monday 10 May 2004 05:20 am, Mario wrote: Anyways I was wondering if there is a way to upload through PHP without having write permission to all. Is there a way maybe, for the script, to change permission to write before the upload and then take it off? or anything else I can do to protect

RE: [PHP] Uploading and directory permissions

2004-05-10 Thread Jay Blanchard
[snip] For few years now I've been creating custom CMSs and I've been having an images folder with permissions 777 so the PHP script can upload images through the CMS. ... Anyways I was wondering if there is a way to upload through PHP without having write permission to all. Is there a way maybe,

  1   2   >