[PHP] File Copy

2004-10-20 Thread Aidal
Hi NG. I'm experiencing some problems when trying to copy a file from one location to another on the web server. example: dir1/subdir1/some_image_name.jpg --> dir2/subdir2/some_new_image_name.jpg When I do this the file permissions changes and I'm no longer the owner of the file. I tried to u

Re: [PHP] str_replace problem

2004-10-20 Thread Silvio Porcellana
Chris Ditty wrote: Hi all. I'm trying to do a little code snippets page for a site I am working on. I figured it would be simple enough. I would do a str_replace and replace the various html codes with the ascii eqivulant. Unfortunately, it is not working as expected. Can anyone help with this

Re: [PHP] File Copy

2004-10-20 Thread Silvio Porcellana
Aidal wrote: Hi NG. I'm experiencing some problems when trying to copy a file from one location to another on the web server. example: dir1/subdir1/some_image_name.jpg --> dir2/subdir2/some_new_image_name.jpg When I do this the file permissions changes and I'm no longer the owner of the file. I t

Re: [PHP] File Copy

2004-10-20 Thread Aidal
ftp_chmod() is part of PHP 5 and I'm working with PHP 4.3.1. I tried the ftp_raw('CHMOD 777 filename.jpg'); doesn't work either though :( "Silvio Porcellana" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Aidal wrote: > > Hi NG. > > > > I'm experiencing some problems when trying to

Re: [PHP] File Copy

2004-10-20 Thread M. Sokolewicz
how about setting the correct umask. Or else su'ing to the correct user before moving it. Aidal wrote: ftp_chmod() is part of PHP 5 and I'm working with PHP 4.3.1. I tried the ftp_raw('CHMOD 777 filename.jpg'); doesn't work either though :( "Silvio Porcellana" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] File Copy

2004-10-20 Thread Aidal
ERR, I meant I tried ftp_exec(), ftp_raw() is a PHP 5 function too... "Aidal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ftp_chmod() is part of PHP 5 and I'm working with PHP 4.3.1. > > I tried the ftp_raw('CHMOD 777 filename.jpg'); doesn't work either though :( > > "Silvio Porc

Re: [PHP] File Copy

2004-10-20 Thread Chris Dowell
Aidal Could you post the relevant parts of your code so we have a little context to work in? You say you're copying a file from one location to another on the same server. If this is the case you are very unlikely to be in need of the ftp family of functions, which are only valid for use over a

Re: [PHP] File Copy

2004-10-20 Thread Silvio Porcellana
Chris Dowell wrote: Aidal Could you post the relevant parts of your code so we have a little context to work in? You say you're copying a file from one location to another on the same server. If this is the case you are very unlikely to be in need of the ftp family of functions, which are only

Re: [PHP] CPU usage @5% during 2 minutes

2004-10-20 Thread Marek Kilimajer
Janke Dávid wrote: 2004-10-20, sze keltezéssel 00:19-kor Ed Lazor ezt írta: How any rows are you pulling from the database? aprrox. 12.000 but there are only around 50-100 new rows at a maximum within a day, and there were almost as many before the problem appeared. You're creating a form with o

Re: [PHP] str_replace problem

2004-10-20 Thread Robin Vickery
On Wed, 20 Oct 2004 01:02:12 -0500, Chris Ditty <[EMAIL PROTECTED]> wrote: > Hi all. I'm trying to do a little code snippets page for a site I am > working on. I figured it would be simple enough. I would do a > str_replace and replace the various html codes with the ascii > eqivulant. Unfortun

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-20 Thread Janke Dávid
2004-10-20, sze keltezéssel 00:19-kor Ed Lazor ezt írta: > > >How any rows are you pulling from the database? > > aprrox. 12.000 but there are only around 50-100 new rows at a maximum > > within a day, and there were almost as many before the > > problem appeared. > > You're creating a form wit

[PHP] 1st day of the Week

2004-10-20 Thread Shaun
Hi, I am trying to use the strtotime function to get dates for the first and last days of a given week: '; echo date("Y-m-d", strtotime("sunday", strtotime("2004-10-18"))); ?> Using the code above works fine until the date input is a Monday then it outputs the date of the previous Monday. Doe

Re: [PHP] Mixing classes

2004-10-20 Thread Tomi Kaistila
Great! Really, if your purpose was to be helpful, you failed miserably. The helpful part would have been that you would've actually hinted as into _how_ it was possible. I'm not looking for ready solutions or ready scripts, but with messages like these you really only waste other peoples' time.

RE: [PHP] 1st day of the Week

2004-10-20 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent: 20 October 2004 11:35 > > I am trying to use the strtotime function to get dates for > the first and

[PHP] change server unix->win

2004-10-20 Thread Patrick Fehr
Hi I have a serious problem: The client want's to emigrate the webhosting from a unix server to a windows server. Now my biggest problem are the path's. Is there a way to fast convert all the /root-style directories into the windows standard \ ?? Thanks for your consideration, I have the strong fe

Re: [PHP] change server unix->win

2004-10-20 Thread Robert Cummings
On Wed, 2004-10-20 at 07:17, Patrick Fehr wrote: > Hi > I have a serious problem: > The client want's to emigrate the webhosting from a unix server to a windows > server. Now my biggest problem are the path's. > Is there a way to fast convert all the /root-style directories into the > windows stand

Re: [PHP] File Copy

2004-10-20 Thread Dusty Bin
Aidal, presumably, your server had the write to copy the file, otherwise the copy would have failed. Is the only problem that you don't have the correct permissions on the copied file?? if so check out . If you set the umask before you copy, y

[PHP] Re: File Copy

2004-10-20 Thread Dusty Bin
Aidal, I assume that you are using your server to copy the file, and since the copy apparently suceeds, your server must have read access to the source file. Check out . If you set the correct umask prior to your copy, your copied file should e

[PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
After some back and forth posts here I had finally thought my array issue was over, but! To review I have 30 form elements on a page 10 are skill[] 10 are sky[] 10 are slu[] I pass them as session variables $_SESSION['skills'] = $_POST['skill']; $_SESSION['skys'] = $_POST['sky']; $_SESSION['slu

[PHP] Re: File Copy

2004-10-20 Thread Dusty Bin
Aidal, since you are using the server to copy the file, and the copy succeeds, the server obviously has at least read access to the source. You just can't get the permissions right. Check out: . If you have access to your server or another *nix

Re: [PHP] CPU usage @5% during 2 minutes

2004-10-20 Thread Janke Dávid
HLP! This becomes more and more strange. Aftar I was really happy, that the code runs fast again, the customer sent an e-mail that is still slow. So I logged in into his network and everything was ok for me, but when they tried to use the program, I still saw (using top), t

RE: [PHP] Validation problem with array.

2004-10-20 Thread Graham Cossey
Not sure I really know where you have the problem, but I am assuming you are trying to construct the INSERT statement within your foreach loop. If so, why use $_POST["skill[]"] when you have $skill which is that current element being iterated? Did you read the foreach doc? http://uk2.php.net/manua

RE: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
My problem is not related to the insert or iteration. It's related to the validaton of those elements: skill[] skill[] etc. Clearer ? Stuart --- Graham Cossey <[EMAIL PROTECTED]> wrote: > Not sure I really know where you have the problem, > but I am assuming you are > trying to construct the INS

Re: [PHP] permission for file creating script

2004-10-20 Thread John Nichel
Padi wrote: Q: Why can't userX in groupY write on a file with chmod 0664 and chown userY:groupY? Summary: I use php 4.3.9 on an apache webserver I always got permission errors, when scripts tried to use mkdir() and the kind. So I chowned all files and folders to apache:apache and made my standard u

RE: [PHP] Validation problem with array.

2004-10-20 Thread Graham Cossey
Maybe you would like to post your validation code then. I (we) do not know where the line: (((isset($_POST["skill[]"]))?$_POST["skill[]"]:"")."",true,true,true,true,"" ,false,1); is being called. Have you thought about using an iteration as you have when constructing the INSERT statement? Have

RE: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
Believe it or not I had just thought of doing a foreach with the validation. I'll see how it goes. Stuart --- Graham Cossey <[EMAIL PROTECTED]> wrote: > Maybe you would like to post your validation code > then. > > I (we) do not know where the line: > > (((isset($_POST["skill[]"]))?$_POST["ski

Re: [PHP] Validation problem with array.

2004-10-20 Thread Brent Baisley
I think I might know what you are trying to do. You want to have a "name" associated with the skill (or skys or slus). You can use an associative array to "name" your array elements. In your form, you can change the array to be something like this: skills[cooking] skills[flying] skills[walking]

Re: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
Brent, Thank you , I can't do an associative because it part of a user input form. The values will be dependent on the users. I'm going to try and give each form element a index number skill[0], skill[1] since the foreach loop is doing that anyway. The reason I haven't posted the validation is

[PHP] relative paths with "require"

2004-10-20 Thread Joey Morwick
Hello, I'm experiencing a problem with PHP4. On the server where our code used to reside, the relative path used in an include started from the directory in which the file containing the require statement resided. On our new server, the relative paths seem to start from where the first php script

Re: [PHP] Mixing classes

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 13:41:16 +0300, Tomi Kaistila <[EMAIL PROTECTED]> wrote: > Really, if your purpose was to be helpful, you failed miserably. > The helpful part would have been that you would've actually hinted as > into _how_ it was possible. > > I'm not looking for ready solutions or ready scr

Re: [PHP] Automatic Form processor

2004-10-20 Thread Dan Joseph
> As Dan has already said, something like this is what you need: > > > foreach ( $_POST as $key => $value ) > > { > >if ( substr( $key, 0, 4 ) == "quest" ) > > echo "$value: $key\n"; > > } > > HOWEVER, this leaves your script wide open to security issues, because > you're placing all th

Re: [PHP] relative paths with "require"

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 09:30:20 -0400, Joey Morwick <[EMAIL PROTECTED]> wrote: > Hello, I'm experiencing a problem with PHP4. On the server where our code > used to reside, the relative path used in an include started from the > directory in which the file containing the require statement resided. O

Re: [PHP] Validation problem with array.

2004-10-20 Thread Brent Baisley
I thought you were using checkboxes based on your true/false. So the user is actually typing in skills? Not sure where you are going with skill[0], skill[1]. You are creating an associative array when you do that. In and input form, skill[0] and skill[a] are actually no different, aside from th

Re: [PHP] Validation problem with array.

2004-10-20 Thread Stuart Felenstein
Yes I just found that out :). Back to the drawing board!. Stuart --- Brent Baisley <[EMAIL PROTECTED]> wrote: > I thought you were using checkboxes based on your > true/false. So the > user is actually typing in skills? > > Not sure where you are going with skill[0], > skill[1]. You are creatin

Re: [PHP] CPU usage @5% during 2 minutes SOLVED

2004-10-20 Thread Janke Dávid
Hi all! After 2 weeks of sleepless nights and visiting the customer three times (once on saturday) the problem is solved. The thing was: The new, 20 year old administrator guy set all clients to use the local network via the proxy. And the proxy wasn't able to handle the approx. 1,5MB huge web pa

Re: [PHP] change server unix->win

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 13:17:08 +0200, Patrick Fehr <[EMAIL PROTECTED]> wrote: > I have a serious problem: > The client want's to emigrate the webhosting from a unix server to a windows > server. Now my biggest problem are the path's. > Is there a way to fast convert all the /root-style directories in

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-20 Thread Curt Zirzow
* Thus wrote Francisco M. Marzoa Alonso: > This code: > > > class TestClass { > public $myself; > > function __construct () { > $this->myself = $this; > } > } > > $TestObj = new TestClass (); > > if ( $TestObj->myself == $TestObj ) { > echo "They are same.\n"; > } Sin

Re: [PHP] str_replace problem

2004-10-20 Thread Philip Thompson
On Oct 20, 2004, at 1:02 AM, Chris Ditty wrote: Hi all. I'm trying to do a little code snippets page for a site I am working on. I figured it would be simple enough. I would do a str_replace and replace the various html codes with the ascii eqivulant. Unfortunately, it is not working as expecte

Re: [PHP] CPU usage @5% during 2 minutes

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 14:59:01 +0200, Janke Dávid <[EMAIL PROTECTED]> wrote: > HLP! In my experience the most common network slowdown issues involve overloaded isp DNS servers. I'd do a few nslookups and see how responsive their nameservers are. You can easily add 4-5 secon

Re: [PHP] CPU usage @5% during 2 minutes SOLVED

2004-10-20 Thread Matt M.
> The thing was: > The new, 20 year old administrator guy set all clients to use the local > network via the proxy. And the proxy wasn't able to handle the approx. > 1,5MB huge web pages. good that the problem is solved. Not sure if you know or not but you could probably cut the size of the page

Re: [PHP] change server unix->win

2004-10-20 Thread Francisco M. Marzoa Alonso
Just a point: this will be a problem if they have some forward slashes that are not specifying file paths, i.e. URLs in the code like http://www.whereveryouwant.com/ will be substituted by http:\\www.whereveryouwant.com\ Greg Donald wrote: On Wed, 20 Oct 2004 13:17:08 +0200, Patrick Fehr <[EMA

Re: [PHP] Mixing classes

2004-10-20 Thread Bruno B B Magalhães
Hi Tomy, I did the same thing! I´ve used a class called framework to encapsulate everything... here is what looks like: framework.inc.php http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework * @version 0.5-dev */

Re: [PHP] relative paths with "require"

2004-10-20 Thread Joey Morwick
Greg Donald wrote: > Did you check the open_basedir setting? That will make php act as you > described. We don't have open_basedir set, but our problem is slightly different. If you were to execute only a.php in my previous example, there would be no error since the current directory would be /

Re: [PHP] Mixing classes

2004-10-20 Thread Bruno B B Magalhães
Hi Tomy, I did the same thing! I´ve used a class called framework to encapsulate everything... here is what looks like: framework.inc.php http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework * @version 0.5-dev */

[PHP] wrapper

2004-10-20 Thread Stanislav Kuhn
Hi everybody, i'm trying open url by fopen or file_get_content but always receive error message failed to open stream: no suitable wrapper could be found i know only about one php variable has to be set allow_url_fopen = On and it is. I run it on two different servers on first it works there is ph

[PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Mag
Hi, I have a form where the user specifies a remote image so it can be made into a thumb, before that I am trying to make sure the image exists using this code: $chk_gallery = @fopen ($remote_image, "r"); if (!$chk_gallery) {echo "ERROR:Unable to fetch the remote image";exit;} fclose($chk_gal

[PHP] fopen by URL is disabled, is there another way of reading a remote webpage?

2004-10-20 Thread Chuck Barnett
Hi, my new server has fopen by url disabled. My ISP doesn't want to turn it on. So is there a way to do an equivilant function some other way? I need to read a remote webpage and manipulate it. Thanks, Chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] fopen by URL is disabled, is there another way of reading a remote webpage?

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 10:46:34 -0500, Chuck Barnett <[EMAIL PROTECTED]> wrote: > Hi, my new server has fopen by url disabled. My ISP doesn't want to turn it > on. So is there a way to do an equivilant function some other way? I need > to read a remote webpage and manipulate it. #!/usr/bin/php htt

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> which works great except I have been getting some 403 > access denied errors for some sites, checking I see > that they are protected by a htaccess file (that > checks the referrer) so i tried putting > > header('referer: domain') > > where domain is the parse_url['host'] of $remote_file > but

RE: [PHP] fputcsv() error message

2004-10-20 Thread Pablo Gosse
[snip] Fatal error: Call to undefined function: fputcsv() in /home/webdev/sites/tracking_site/scripts/report.php on line 19 Is there something that I am missing? The code that I had entered in: [/snip] http://ca.php.net/fputcsv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Regexp help

2004-10-20 Thread Chris Boget
What would the regex look like to accept *any* character for a value but the total length of the value can be no greater than 50 characters. The regex I am trying to use is as follows ^[\d\D\w\W\s\S.]{0,50}$ but it doesn't appear to be working... Any ideas? thnx, Chris -- PHP General Mailing

[PHP] parsing a string

2004-10-20 Thread Dan McCullough
Hey everyone Having a bit of trouble with something. I have a string which has known patterns. $string"CampusBob (Williams)~\toms more crap)~\blah blah blah)~\"; What I am looking for is Location which is Campus Locat

[PHP] Re: parsing a string

2004-10-20 Thread Greg Beaver
Dan McCullough wrote: Hey everyone Having a bit of trouble with something. I have a string which has known patterns. $string"CampusBob (Williams)~\toms more crap)~\blah blah blah)~\"; What I am looking for is Location which is Campus

RE: [PHP] fputcsv() error message

2004-10-20 Thread Steven
Yes, I know. That is the exact page where I got the code from. If you notice I copied and pasted what is on that page in my previous email. -- fputcsv (no version information, might be only in CVS) fputcsv -- Format line as CSV and write to file pointer Description int

[PHP] Re: parsing a string

2004-10-20 Thread M. Sokolewicz
Not sure what you want exactly, but here's a way using regexps to retrieve the strings seperatly: $string = 'CampusBob (Williams)~\toms more crap)~\blah blah blah)~\'; preg_match('#([^|]*)[|]+([^|]*)~[\]+([^\]*)~[\]+([^\]*)~[\]+#Ui', $string, $res); $campus = $re

[PHP] PHP on Windows

2004-10-20 Thread Jonathan Haddad
So I'm setting up a website that needs to run on a windows server. There are file uploads. What do I need to do to make the directory writable? I'm sure it's very obvious but when the time comes to do it it has to happen immediately. Thanks, Jon -- PHP General Mailing List (http://www.php.ne

Re: [PHP] fputcsv() error message

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 11:54:24 -0500, Steven <[EMAIL PROTECTED]> wrote: > Yes, I know. That is the exact page where I got the code from. If you > notice I copied and pasted what is on that page in my previous email. (no version information, might be only in CVS) The function is obviously still in

Re: [PHP] PHP on Windows

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 12:59:40 -0400, Jonathan Haddad <[EMAIL PROTECTED]> wrote: > So I'm setting up a website that needs to run on a windows server. > There are file uploads. What do I need to do to make the directory > writable? I'm sure it's very obvious but when the time comes to do it > it has

RE: [PHP] PHP on Windows

2004-10-20 Thread Jay Blanchard
[snip] So I'm setting up a website that needs to run on a windows server. There are file uploads. What do I need to do to make the directory writable? I'm sure it's very obvious but when the time comes to do it it has to happen immediately. [/snip] http://forums.devshed.com/archive/t-152240

[PHP] url

2004-10-20 Thread Dan McCullough
I have this old script I wrote 2-3 years back. I gets arguments from the url. index.php?area=blah The client moved the code to another server and some odd happened. Nothing seems to be parsing from the URL anymore. The top code is HTML THis code no longer seems to work and I am racki

Re: [PHP] PHP on Windows

2004-10-20 Thread bbonkosk
http://www.google.com/search?hl=en&q=Windows+directories+writable - Original Message - From: Jonathan Haddad <[EMAIL PROTECTED]> Date: Wednesday, October 20, 2004 12:59 pm Subject: [PHP] PHP on Windows > So I'm setting up a website that needs to run on a windows server. > > There are fi

Re: [PHP] PHP on Windows

2004-10-20 Thread Jonel Rienton
Hi, you might also wanna give the identity/username php is running under and give it ntfs write permission to the directory. It should be on the Properties of the directory and Security Tab. Regards, Jonel On 10/20/04 12:02 PM, "Greg Donald" <[EMAIL PROTECTED]> wrote: > On Wed, 20 Oct 2004 12:5

Re: [PHP] url

2004-10-20 Thread John Nichel
Dan McCullough wrote: I have this old script I wrote 2-3 years back. I gets arguments from the url. index.php?area=blah The client moved the code to another server and some odd happened. Nothing seems to be parsing from the URL anymore. The top code is HTML THis code no longer seems to

RE: [PHP] url

2004-10-20 Thread Neal Carmine
register_globals is most likely turned off on the new server (as it should be). do a phpinfo() to see. Or change the code to to use the super global arrays. neal -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 11:08 AM To: PHP Gener

Re: [PHP] url

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 10:07:38 -0700 (PDT), Dan McCullough <[EMAIL PROTECTED]> wrote: > I have this old script I wrote 2-3 years back. I gets arguments from the url. > index.php?area=blah > > The client moved the code to another server and some odd happened. Nothing seems to > be parsing from t

Re: [PHP] fopen by URL is disabled, is there another way of reading a remote webpage?

2004-10-20 Thread Jennifer Goodie
-- Original message from "Chuck Barnett" : -- > Hi, my new server has fopen by url disabled. My ISP doesn't want to turn it > on. So is there a way to do an equivilant function some other way? I need > to read a remote webpage and manipulate it. > > Thanks, > Chuck

Re: [PHP] url

2004-10-20 Thread Mike Smith
My guess is your client has the latest version of PHP (>4.2.0) whiile the old server had an older version (pre 4.2.0). register_globals = off in the php.ini http://us2.php.net/manual/en/ini.sect.data-handling.php#ini.register-globals Change to On Wed, 20 Oct 2004 10:07:38 -0700 (PDT), Dan McC

Re: [PHP] url

2004-10-20 Thread Janet Valade
Dan McCullough wrote: I have this old script I wrote 2-3 years back. I gets arguments from the url. index.php?area=blah The client moved the code to another server and some odd happened. Nothing seems to be parsing from the URL anymore. The top code is HTML THis code no longer seems to

RE: [PHP] fopen by URL is disabled, is there another way of readi ng a remote webpage?

2004-10-20 Thread Vail, Warren
CURL? http://www.php.net/manual/en/ref.curl.php Warren Vail -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 20, 2004 10:25 AM To: Chuck Barnett Cc: PHP General List Subject: Re: [PHP] fopen by URL is disabled, is there another way of read

Re: [PHP] Mixing classes

2004-10-20 Thread Tomi Kaistila
Hi all! I finally got what I was after, after numerous tips and suggestion. Thank you for your patience. Special thanks to Bruno Magalhães, Thomas Goyne, and Davy Obdam. Thanks again :-) -- developer & programmer me tomi kaistila home http://www.datamike.org gnupg 0xFA63E4C7 -- PHP General Maili

Re: [PHP] Re: parsing a string

2004-10-20 Thread Dan McCullough
I knew I shouldnt have abreviated the string. here is the string sorry I kinda flubbed on the last string "LocationCampus~\\n-\nNameBob Williams~\\n-\nAddress123 Main St~\\n-\n..." the ... is a very long list. how does this change the

[PHP] heredoc syntax

2004-10-20 Thread Adil
anyone know why heredoc syntax might not work with php5/apache installed. I can't get even the simplest strings in heredoc syntax to work and I've tried just cutting and pasting other peoples stuff in that syntax as well, and still no luck thx. Adil. -- PHP General Mailing List (http://www.php.

Re: [PHP] Regexp help

2004-10-20 Thread John Holmes
> From: "Chris Boget" <[EMAIL PROTECTED]> > Subject: [PHP] Regexp help > > What would the regex look like to accept *any* character > for a value but the total length of the value can be no greater > than 50 characters. The regex I am trying to use is as follows > > ^[\d\D\w\W\s\S.]{0,50}$ > >

[PHP] Re: heredoc syntax

2004-10-20 Thread M. Sokolewicz
Adil wrote: anyone know why heredoc syntax might not work with php5/apache installed. I can't get even the simplest strings in heredoc syntax to work and I've tried just cutting and pasting other peoples stuff in that syntax as well, and still no luck thx. Adil. works fine here... using a 5.0.2-CV

[PHP] Problem with php 4/5, segmentation fault

2004-10-20 Thread robert mena
Hi, I have a Linux Fedora Core2 system with apache 2.0.51 and php installed. Recently I 've noticed that some pages stopped working. Those pages while accessed does not output anything. After some tests I noticed that the page comes back to live if I remove the mysql_pconnect call. I've tried t

Re: [PHP] heredoc syntax

2004-10-20 Thread Janet Valade
Adil wrote: anyone know why heredoc syntax might not work with php5/apache installed. I can't get even the simplest strings in heredoc syntax to work and I've tried just cutting and pasting other peoples stuff in that syntax as well, and still no luck thx. Adil. Heredoc syntax is pretty rigid and

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-10-20 Thread GH
I guess this means I do not have pear... right? Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/var/www/garyhotko.com) in /var/www/garyhotko.com/html/Test/test.php on line 2 Warning: main(PEAR.php): failed to open stream: O

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-10-20 Thread Greg Donald
On Wed, 20 Oct 2004 15:01:56 -0400, GH <[EMAIL PROTECTED]> wrote: > I guess this means I do not have pear... right? You can download the PEAR files and put them most anywhere. They don't have to be in the standard location. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http:

Re: [PHP] Re: Best way to allow a user to indicate formatting to be displayed but stored.

2004-10-20 Thread Marek Kilimajer
GH wrote: I guess this means I do not have pear... right? This rather means the server is not configured right. Ask your hosting company to include /usr/share/pear/ in open_basedir, I don't see any reason they shouln't. If they won't anyway install pear in your own webspace and set include_path

Re: [PHP] Re: parsing a string

2004-10-20 Thread Dan McCullough
I tried the print_r on $res. The preg_match does the first set fine. So I get: Campus Bob (Williams) the second one starts - Address123 Main St - CityOxford and so on [EMAIL PROTECTED] wrote: preg_match('#([^|]*)[|]+([^|]*)~[\\]+(([^\\]*)~[\\]+)+#Ui', $string, $res

[PHP] Send variable in include()

2004-10-20 Thread Pete
I'm trying to send a variable an include that is recieve from another page: - navi.php- http://www.example.com/view.php?offset=0\";>Test - view.php - I recieve $offset with avalue of "0" nicely, "echo ("$offset");" will show a value. Now a do this: include 'http://www.example.com/guestbook.php?o

Re: [PHP] str_replace problem

2004-10-20 Thread Chris Ditty
Thanks all for the tips. Was able to get it working like I wanted. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] heredoc syntax

2004-10-20 Thread Matthew Weier O'Phinney
* Janet Valade <[EMAIL PROTECTED]>: > Adil wrote: > >> anyone know why heredoc syntax might not work with php5/apache installed. I >> can't get even the simplest strings in heredoc syntax to work and I've tried >> just cutting and pasting other peoples stuff in that syntax as well, and >> still no

Re: [PHP] Send variable in include()

2004-10-20 Thread John Nichel
Pete wrote: I'm trying to send a variable an include that is recieve from another page: - navi.php- http://www.example.com/view.php?offset=0\";>Test - view.php - I recieve $offset with avalue of "0" nicely, "echo ("$offset");" will show a value. Now a do this: include 'http://www.example.com/guest

[PHP] Re: heredoc syntax

2004-10-20 Thread Matthew Weier O'Phinney
* Adil <[EMAIL PROTECTED]>: > anyone know why heredoc syntax might not work with php5/apache installed. I > can't get even the simplest strings in heredoc syntax to work and I've tried > just cutting and pasting other peoples stuff in that syntax as well, and > still no luck I use heredocs pretty

Re: [PHP] Re: heredoc syntax

2004-10-20 Thread Rory Browne
What OS are you using? On windows, you may have problems with the \r\n newline system. I read somewhere that the heredoc syntax requires the use of unix-style \n's Are you getting any error messages. If it didn't work you should get a syntax error. If so what was it? On Wed, 20 Oct 2004 20:46:54

Re: [PHP] Mac OS X and Editor

2004-10-20 Thread Brent Baisley
BBEdit, of course. I use it for just about all my coding, not just php. Not free, but a free fully functional demo is available. I forget if the demo is a certain number of launches or a time limit. I have looked into Zend Studio and Eclipse, but they are a bit slow on a laptop. On Oct 20, 2004

Re: [PHP] Mac OS X and Editor

2004-10-20 Thread James McGlinn
Hi Jonel, Hi guys, I just like to ask those using Macs here as to what editor and/or IDE they are using for writing PHP codes. I'm using Zend Studio (ZDE) - it works as well as any I've tried. It's significantly faster than Eclipse too (on a G4 PowerBook 1.33Ghz/512MB RAM). James McGlinn Proje

[PHP] Announce:ASPA 1.1

2004-10-20 Thread Anakreon
Hello. I'd like to announce the release of version 1.1 of ASPA. ASPA is an ASP to PHP translator. It uses syntax and schematic analysis in order to produce PHP code of equivalent functionality with the original ASP code. It supports both JS and VB script. For more info see:http://storm.cs.unipi.g

RE: [PHP] Mac OS X and Editor

2004-10-20 Thread Michael Sims
Jonel Rienton wrote: > Hi guys, I just like to ask those using Macs here as to what editor > and/or IDE they are using for writing PHP codes. I don't personally use Mac OS X, but let me throw in a recommendation for jEdit (www.jedit.org). It's Java based, hence cross-platform, and extremely power

Re: [PHP] Mac OS X and Editor

2004-10-20 Thread Larry E . Ullman
Hi guys, I just like to ask those using Macs here as to what editor and/or IDE they are using for writing PHP codes. BBEdit is generally consider to be one of the best (note: I said "one of the best", not "best", so let's not start about how emacs, vi, and vim are better) text editors available

[PHP] Re: Mac OS X and Editor

2004-10-20 Thread Daniel Schierbeck
Jonel Rienton wrote: Hi guys, I just like to ask those using Macs here as to what editor and/or IDE they are using for writing PHP codes. Thanks and regards to all. Jonel I use the Eclipse IDE (www.eclipse.org) with phpEclipse (www.phpeclipse.org) or Xored Trustudio (www.xored.com) on Windows (hey

Re: [PHP] Mac OS X and Editor

2004-10-20 Thread Daniel Schierbeck
James McGlinn wrote: I'm using Zend Studio (ZDE) - it works as well as any I've tried. It's significantly faster than Eclipse too (on a G4 PowerBook 1.33Ghz/512MB RAM). Hmm, maybe (have you tried out Eclipse 3.0?), but I still find the interface of Eclipse superior to Zend Studio's (that's just

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> Nope, no PEAR allowedany other options? curl, Is that available to you? http://us2.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Mag
> > which works great except I have been getting some > 403 > > access denied errors for some sites, checking I > see > > that they are protected by a htaccess file (that > > checks the referrer) so i tried putting > > > > header('referer: domain') > > > > where domain is the parse_url['host'] o

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Robby Russell
On Wed, 2004-10-20 at 09:53 -0700, Mag wrote: > > > which works great except I have been getting some > > 403 > > > access denied errors for some sites, checking I > > see > > > that they are protected by a htaccess file (that > > > checks the referrer) so i tried putting > > > > > > header('refer

Re: [PHP] remote file existance when protected by a .htaccess

2004-10-20 Thread Matt M.
> > Nope, no PEAR allowedany other options? also http://us2.php.net/fsockopen check the user comments for setting referer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mac OS X and Editor

2004-10-20 Thread Jonel Rienton
Hi guys, I just like to ask those using Macs here as to what editor and/or IDE they are using for writing PHP codes. Thanks and regards to all. Jonel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Moving uploaded image tmp file problem

2004-10-20 Thread Dave Grant
Hello, I wonder if someone has ran into a problem similar to or related to this before. I have a rather large form that, among other things, allows the user to upload 2 images, one small, the other slighly larger. They upload just fine, they show up in the $_FILES array, and I do error checkin

[PHP] A better way to do this in php???

2004-10-20 Thread bclem
I need to find the exact time of day using "minutes since midnight". What is the easiest and/or better way to do this in php? This is how I'm doing it now. // $iMinutes is the total number of minutes since midnight/12am // 0 = midnight/12am // 1439 = 11:59pm $iMinutes = 1230; if ($iMinutes < 0

  1   2   >