RE: [PHP] Not found regex

2008-08-04 Thread Wei, Alice J.
From: Manoj Singh [EMAIL PROTECTED] Sent: Monday, August 04, 2008 10:44 AM To: php-general@lists.php.net Subject: [PHP] Not found regex Hello All, I have to create the regular expression to allow all the file extensions except the specified extension. Suppose I want to allow

RE: [PHP] Please, I need help with curl and php

2008-07-29 Thread Wei, Alice J.
Hi, I´m making a little application with php and curl, but I´m a newby with curl. Please help me with the next script. I used to use this in order to make a connection with an specific site on the console ms-dos (windows), how can i translate this into php code? curl -x proxy_url:proxy_port -U

RE: [PHP] Please, I need help with curl and php

2008-07-29 Thread Wei, Alice J.
is in the same directory as your PHP file) $myorder[keyfile] = realpath(123456.pem); I hope this helps. Alice 2008/7/29 Wei, Alice J. [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] Hi, I´m making a little application with php and curl, but I´m a newby with curl. Please help me with the next

[PHP] Trailing Spaces Problem

2008-07-18 Thread Wei, Alice J.
Hi, I have a code here as the following: ?php $string=1 0 70.208 61.613 1.424 3.689 61.404 0.000 0.000 0.000 0.000 0.000; $data= explode(\t, $string); echo 1: . $data[0] . 2: . $data[1] . 3: . $data[2] . 4: . $data[3] . 5:

RE: [PHP] Trailing Spaces Problem

2008-07-18 Thread Wei, Alice J.
@lists.php.net Subject: Re: [PHP] Trailing Spaces Problem Thiago H. Pojda wrote: On Fri, Jul 18, 2008 at 11:41 AM, Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, Is there some way that I can have it so that it can print out: 1: 1 2:0 3: 70.208 4. 61.613 5. 1.424 I tried using \s for trailing

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
There was a problem\n; } // close the connection ftp_close($conn_id); Thanks in advance. Alice -Original Message- From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 2:28 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
and have received no errors. I don't know if I should put the user_name and user_pass from this file to the httpd.conf, though. Currently, this is not set. Thanks in advance. Alice Wei, Alice J. wrote: Hi Alice... I just caught/saw this thread. I'm asuming you haven't found/solved what you're

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
on the client end have all the files transferred back to the different user directories after the back end has some data processing. The client side only sees what is on the server, and not anything from the Linux from my understanding. Alice -Original Message- From: Wei, Alice J. [mailto

[PHP] Copying Multiple Files from One Server to Another Server

2008-07-16 Thread Wei, Alice J.
Hi, I am running into a problem here with handling the files. My client wants me to copy all the files to one server over to another server. Currently, I use a very slow way that has to handle my code by writing in and out files manually as in the following: $lines3 =

[PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
Hi, I have a snippet of code here: shell_exec(tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data); $file1=http:/www.mysite.com/test/$id/data.tar; $file2=http://www.mysite2.com/test/$id/.tar;; copy($file1,$file2); I got the following error in the access log of the server:

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
Hi, I have a snippet of code here: shell_exec(tar cvf /var/www/html/test/$id/data.tar /var/www/html/test/$id/data); $file1=http:/www.mysite.com/test/$id/data.tar; $file2=http://www.mysite2.com/test/$id/.tar;; copy($file1,$file2); I got the following error in the access log of the

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
this port on my remote and my local machine. I do have ssh, which is port 22 open. Thanks in advance. Alice -regards... -Original Message- From: Boyd, Todd M. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 2:28 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
-Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I have reinstalled

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Robert Cummings [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:16 PM To: Wei, Alice J. Cc: Peter Ford; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote: This portion

RE: [PHP] mkdir permission errors

2008-07-15 Thread Wei, Alice J.
From: Robert Cummings [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 12:16 PM To: Wei, Alice J. Cc: Peter Ford; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Tue, 2008-07-15 at 08:16 -0400, Wei, Alice J. wrote

[PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
Hi, Guys: I have a very strange incident here that may seem very stupid. Since the power went out last night, I have restarted my server. However, now the permission is never working right. I have set the permission of my htdocs folder iof my Apache server to 0755, and then started

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
University Bloomington [EMAIL PROTECTED] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:07 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:01 -0400, Wei, Alice J

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
[EMAIL PROTECTED] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:21 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:11 -0400, Wei, Alice J. wrote: Hi, The apache

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:35 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:23 -0400, Wei, Alice J. wrote: Hi, Rob: This is the output: root 31232 0.0

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:42 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors On Mon, 2008-07-14 at 15:37 -0400, Wei, Alice J. wrote: Hi, Rob: Here is the updated

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Robert Cummings [EMAIL PROTECTED] Sent: Monday, July 14, 2008 3:59 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
] From: Wolf [EMAIL PROTECTED] Sent: Monday, July 14, 2008 4:37 PM To: Wei, Alice J. Cc: Robert Cummings; php-general@lists.php.net Subject: RE: [PHP] mkdir permission errors Wei wrote: Hi, Rob: I forgot to mention that I have been using yum install. I have

RE: [PHP] mkdir permission errors

2008-07-14 Thread Wei, Alice J.
This is the output I have got from using your script. I have made a following quick change: [EMAIL PROTECTED] var]# chown -R root:root . Not surprisingly, I am still not able to make a new directory using PHP with the HTTP. Could there be anything else I missed? I knew who you were when

[PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
Hi, I wonder if anyone on the list could tell me how to append the files as I am writing in them. I have a file that has no more than five characters per line, and I would like to keep its spacing between the lines. Right now I have the set up so that it could write in the first line, but

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
: [PHP] fwrite() Append Files Wei, Alice J. wrote: Hi, I wonder if anyone on the list could tell me how to append the files as I am writing in them. I have a file that has no more than five characters per line, and I would like to keep its spacing between the lines. Right now I have

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Jim Lucas [EMAIL PROTECTED] Sent: Friday, June 27, 2008 12:45 PM To: Wei, Alice J. Cc: Per Jessen; php-general

RE: [PHP] fwrite() Append Files

2008-06-27 Thread Wei, Alice J.
From: Wolf [EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:18 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] fwrite() Append Files Wei, Alice J. wrote: Hi, Right now I enforced the file to read in through HTTP-Request and output

RE: Re: [PHP] exec() Error

2008-06-26 Thread Wei, Alice J.
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 5:07 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: Re: [PHP

RE: [PHP] Re: exec() Error

2008-06-25 Thread Wei, Alice J.
Science Indiana University Bloomington [EMAIL PROTECTED] From: Shawn McKenzie [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 10:43 PM To: php-general@lists.php.net Subject: [PHP] Re: exec() Error Wei, Alice J. wrote: Hi, I have got a task from my client

RE: [PHP] Re: exec() Error

2008-06-25 Thread Wei, Alice J.
, Todd M. [EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 10:10 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] Re: exec() Error -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 9:02 AM To: Shawn McKenzie; php-general

RE: [PHP] exec() Error

2008-06-25 Thread Wei, Alice J.
___ From: Per Jessen [EMAIL PROTECTED] Sent: Wednesday, June 25, 2008 3:47 PM To: php-general@lists.php.net Subject: Re: [PHP] exec() Error Wei, Alice J. wrote: I have got a task from my client asking me to build something that allows

RE: Re: [PHP] exec() Error

2008-06-25 Thread Wei, Alice J.
, 2008 2:48 PM To: php-general@lists.php.net Subject: Re: [PHP] exec() Error Wei, Alice J. wrote: I have got a task from my client asking me to build something that allows the variables in the PHP file passed to another PHP file or a file in a different computer

[PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Hi, Guys: Here is a strange scenario that I am attempting to do. I am trying to extract some information from an external source on a different server, and then include some of the external calculations as I am running scripts on a local machine. Below is my script snippet: // Get

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jay Blanchard [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:10 PM To: Wei, Alice J.; php-general@lists.php.net Subject: RE: [PHP] Include Problem [snip] foreach ($lines2 as $line_num = $line2) { echo pLine #b{$line_num}/b : . htmlspecialchars

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Jim Lucas [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:32 PM To: Wei, Alice J. Cc: Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem Wei, Alice J. wrote: From: Jay Blanchard

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:51 PM To: Jim Lucas Cc: Wei, Alice J.; Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:59 PM To: Wei, Alice J. Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net Subject: Re: [PHP] Include Problem On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. [EMAIL PROTECTED] wrote

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:37 PM To: Wei, Alice J. Cc

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:53 PM To: php-general@lists.php.net; Wei, Alice J. Subject: RE: [PHP] Include Problem If you are trying to include() a remote file via HTTP, the remote server will (most likely

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
Alice, If you simply need to execute a remote PHP script and pass variables, you could do it behind-the-scenes with cURL or AJAX, and pass the variables in the url (i.e., http://www.mysite.com/script.php?param=value). cURL is capable of retrieving the page (read: the results of the executed

RE: [PHP] Include Problem

2008-06-24 Thread Wei, Alice J.
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Boyd, Todd M. [EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 4:55 PM To: Wei, Alice J

[PHP] exec() Error

2008-06-24 Thread Wei, Alice J.
Hi, I have got a task from my client asking me to build something that allows the variables in the PHP file passed to another PHP file or a file in a different computer language to perform some operations on another remote machine. According to my client, he calls this behind the

[PHP] mkdir() Cannot Create Directories

2008-06-17 Thread Wei, Alice J.
Hi, I have a code here that I am intending to create new directories by creating a parent and then proceed on to create the children one by one. I am trying to create directories in the server I am running my script from as shown in the snippet below. My problem is that although the code

RE: [PHP] mkdir() Cannot Create Directories

2008-06-17 Thread Wei, Alice J.
== Alice Wei MIS 2009 School of Library and Information Science Indiana University Bloomington [EMAIL PROTECTED] From: Daniel Brown [EMAIL PROTECTED] Sent: Tuesday, June 17, 2008 2:54 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir

RE: [PHP] extension=mssql.so vs. ;extension=php_mssql.dll

2008-06-16 Thread Wei, Alice J.
=mssql.so vs. ;extension=php_mssql.dll Wei, Alice J. wrote: Hi, I am not sure what is exactly the problem with my configurations while I am trying to configure Apache, PHP and FreeTDS throughout my attempts to install these packages into my Linux. It appears that I am doing everything correctly

[PHP] extension=mssql.so vs. ;extension=php_mssql.dll

2008-06-15 Thread Wei, Alice J.
Hi, I am not sure what is exactly the problem with my configurations while I am trying to configure Apache, PHP and FreeTDS throughout my attempts to install these packages into my Linux. It appears that I am doing everything correctly as I am going through listservs, forums and online

RE: [PHP] PHP Runs But Does NOT Connect to MSSQL Server

2008-06-13 Thread Wei, Alice J.
PM To: php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does Not Display on Linux On Wed, 11 Jun 2008 22:03:53 -0400 Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, I am currently using a Linux box with Fedora to run my PHP scripts, which I have seen in the download page at http

RE: [PHP] PHP Runs But Does NOT Connect to MSSQL Server

2008-06-13 Thread Wei, Alice J.
Maruszeczka [EMAIL PROTECTED] Sent: Friday, June 13, 2008 10:51 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does NOT Connect to MSSQL Server On Fri, 13 Jun 2008 10:32:22 -0400 Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, Greg: I have just run the command [EMAIL PROTECTED] php-5.2.6

RE: [PHP] PHP Runs But Does NOT Connect to MSSQL Server

2008-06-13 Thread Wei, Alice J.
[EMAIL PROTECTED] Sent: Friday, June 13, 2008 12:31 PM To: php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does NOT Connect to MSSQL Server On Fri, 13 Jun 2008 10:41:54 -0500 Boyd, Todd M. [EMAIL PROTECTED] wrote: -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-12 Thread Wei, Alice J.
to install another package, and I am assuming that I can download it from somewhere, this is something I can try. Where did you get your package from? Alice -Original Message- From: DeadTOm [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 11:15 PM To: Wei, Alice J. Cc: php-general

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-12 Thread Wei, Alice J.
] From: DeadTOm [EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 11:15 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does Not Display on Linux With localhost I was assuming that the files resided on your local machine, my

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-12 Thread Wei, Alice J.
Science Indiana University Bloomington [EMAIL PROTECTED] From: Thijs Lensselink [EMAIL PROTECTED] Sent: Thursday, June 12, 2008 10:44 AM To: php-general@lists.php.net Subject: RE: [PHP] PHP Runs But Does Not Display on Linux Quoting Wei, Alice J. [EMAIL

[PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Hi, I am currently using a Linux box with Fedora to run my PHP scripts, which I have seen in the download page at http://www.php.net/downloads.php that We do not distribute UNIX/Linux binaries. Most Linux distributions come with PHP these days. What I am wondering is, if I can run my

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Windows machine. Alice -Original Message- From: DeadTOm [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 10:29 PM To: Wei, Alice J.; php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does Not Display on Linux Do you have php-mysql installed? In ubuntu for php5 the package

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
@lists.php.net Subject: Re: [PHP] PHP Runs But Does Not Display on Linux On Wed, 11 Jun 2008 22:03:53 -0400 Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, I am currently using a Linux box with Fedora to run my PHP scripts, which I have seen in the download page at http://www.php.net/downloads.php

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
of error even if I don't have it installed, right? Or, am I missing something here? Alice -Original Message- From: DeadTOm [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 10:46 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does Not Display

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Hi, -Original Message- From: DeadTOm [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 10:58 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does Not Display on Linux OK, I see now. When you open the script from your browser are you accessing

[PHP] Reiterative Copy() in a Directory Alternative

2008-06-10 Thread Wei, Alice J.
Hi, I have a scenario here where I wanted to read through a directory and copy all the files into another directory out on the server somewhere. It appears that I cannot do reiterative copying from the files to another folder, according to the error I keep seeing: PHP Warning: