php-windows Digest 5 Mar 2004 05:33:15 -0000 Issue 2150
Topics (messages 23056 through 23064):
unlink command on a windows server
23056 by: Brent
23057 by: Charles P. Killmer
Sending arguments to a SP in PHP
23058 by: Harpreet K. Singh
23059 by: Gerardo Rojas
23060 by: Harpreet K. Singh
PHP compiler
23061 by: William CANDILLON
PHP Fatal error: Call to undefined function: array()
23062 by: Jim MacDiarmid
23063 by: Frank M. Kromann
Re: session problems
23064 by: Sudeep Sarath
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi, wondering if anyone else has problems with the 'unlink' command.
Keeps saying Permission denied when i try to use it. The server
is a win nt box.
thanks heaps.
--- End Message ---
--- Begin Message ---
Make sure that the user php is running as has permission to delete files
from that directory. Usually IUSR_machinename
Charles
-----Original Message-----
From: Brent [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 9:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] unlink command on a windows server
Hi, wondering if anyone else has problems with the 'unlink' command.
Keeps saying Permission denied when i try to use it. The server is a win
nt box.
thanks heaps.
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I am using PHP and sql server 2000.
I have a stored procedure which takes 3 arguments. The first argument is a
string and the rest 2 are integers.
For some reasons the call to the stored procedure is being trimmed.
My call is as follows
$oldquery="select var1,var2,var3,var4..... from table order by var1";
$query="exec limitselect '". $oldquery ."',". $limit .",". $offset;
i try to print the sql command
echo "<br>".$query;
It prints out a trimmed string
exec limitselect 'select origin
is theri a limit to what one can send to a sp call
Please help i am totally confused.
Thanks
--- End Message ---
--- Begin Message ---
Why do you only have single ticks around the value of $oldquery?
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-----Original Message-----
From: Harpreet K. Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 2:56 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Sending arguments to a SP in PHP
I am using PHP and sql server 2000.
I have a stored procedure which takes 3 arguments. The first argument is a
string and the rest 2 are integers.
For some reasons the call to the stored procedure is being trimmed.
My call is as follows
$oldquery="select var1,var2,var3,var4..... from table order by var1";
$query="exec limitselect '". $oldquery ."',". $limit .",". $offset;
i try to print the sql command
echo "<br>".$query;
It prints out a trimmed string
exec limitselect 'select origin
is theri a limit to what one can send to a sp call
Please help i am totally confused.
Thanks
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Because it is a string
The first variable is a sql statement which is a string
the call to the SP is as follows
exec limitselect 'select var1, var2, var3 from table1 order by var1',10,100
----- Original Message -----
From: "Gerardo Rojas" <[EMAIL PROTECTED]>
To: "Harpreet K. Singh" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 4:00 PM
Subject: RE: [PHP-WIN] Sending arguments to a SP in PHP
Why do you only have single ticks around the value of $oldquery?
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-----Original Message-----
From: Harpreet K. Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 2:56 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Sending arguments to a SP in PHP
I am using PHP and sql server 2000.
I have a stored procedure which takes 3 arguments. The first argument is a
string and the rest 2 are integers.
For some reasons the call to the stored procedure is being trimmed.
My call is as follows
$oldquery="select var1,var2,var3,var4..... from table order by var1";
$query="exec limitselect '". $oldquery ."',". $limit .",". $offset;
i try to print the sql command
echo "<br>".$query;
It prints out a trimmed string
exec limitselect 'select origin
is theri a limit to what one can send to a sp call
Please help i am totally confused.
Thanks
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Heya ^^
I wanna know if there are a way to "compile" our own php script ?
Regards.
StorM
--- End Message ---
--- Begin Message ---
I'm getting the above error when either attempting to print or assign
the value of a array element to a variable, after using preg_match().
=== Watch for text wrapping ===
$URL_Filter =
"/\s+Trav[0-9]\.([a-zA-Z0-9\:\/\/\.]+)\.\.[a-z0-9]+\sHAS\s([0-9]+)\sspac
es?/";
foreach ($outArray as $line){
$out = array();
if ( preg_match( "/spaces?/", $line) > 0) {
preg_match( $URL_Filter, $line, $out); //Parse Space
URL and Space Count
//print "<pre>";
//print_r($out);
//print "</pre><br>";
//reset($out);
print $out(1); <-- Error occurs here
print $out(2);
// if ( $SpaceCount >= 1 ){
// echo $SpaceUrl;
// for ($i=0; $i >= $SpaceCount; i++ )
// print $i;
// }
}
}
Anyone know what's going on here?
Thanks,
Jim
--- End Message ---
--- Begin Message ---
Hi Jim,
Array inexes uses [] and not (). Try this
print $out[1];
print $out[2];
You might also want to start at index 0.
- Frank
> I'm getting the above error when either attempting to print or assign
> the value of a array element to a variable, after using preg_match().
>
> === Watch for text wrapping ===
>
> $URL_Filter =
>
"/\s+Trav[0-9]\.([a-zA-Z0-9\:\/\/\.]+)\.\.[a-z0-9]+\sHAS\s([0-9]+)\sspac
> es?/";
> foreach ($outArray as $line){
> $out = array();
> if ( preg_match( "/spaces?/", $line) > 0) {
> preg_match( $URL_Filter, $line, $out); //Parse Space
> URL and Space Count
> //print "<pre>";
> //print_r($out);
> //print "</pre><br>";
> //reset($out);
> print $out(1); <-- Error occurs here
> print $out(2);
> // if ( $SpaceCount >= 1 ){
> // echo $SpaceUrl;
> // for ($i=0; $i >= $SpaceCount; i++ )
> // print $i;
> // }
> }
> }
>
> Anyone know what's going on here?
>
> Thanks,
> Jim
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi carlos,
First let me make some assumptions here. The server u are using is
Apache..right???..If not i would recommend you to go for that.
Ok ..Now if you see a folder like D:\Php\.....in your system, i am sure that php may
have already installed in ur system or might have installed earlier then
uninstalled....Never mind...
If u can run php files from ur system i assume that php is installed some where...may
be in your system or any other sytem in the network.
First u do onething...Inorder to find the actual path of the session.save_path u write
a simple script like <?php echo phpinfo(); ?>
This script is supposed to give all the configuration details of the php installed. Go
to the session section of that output page and look out for the path of the
session.save_path. It may be something like /tmp or d:/tmp or someting like that.
If you have installed the phpserver on another system "ORION"..Note the directory
where server is installed and configure the session.save_path of the php file as:
\\ORION\d\php\tmp if it is there.
I use the path as c:\program files\apache group\apache\htdocs\tmp b'cause i have made
the temp directory in the root of the apache server ( i.e \htdocs\). It is where all
the session files are stored.
Oops......!!!!!! a lengthy mail.....sorry.
Got any idea. ?????
Check whether it works or not..
.......SuDeEp......
carlos castillo <[EMAIL PROTECTED]> wrote:
HI,
Youre rigth the php server is another pc on the net, so can you give
some example of how configure the session.save_path, maybe something
like
/ORION/D:/PHP/tmp
ORION = Php Server.
I really aprecciate your help.
Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]
____________________________________
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico
____________________________________
-----Mensaje original-----
De: Sudeep Sarath [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 04 de marzo de 2004 0:50
Para: [EMAIL PROTECTED]
Asunto: Re: [PHP-WIN] session problems
Hi Dear,
First of all let me warn u that sessions in PHP need to be handled very
carefully. It is very sensitive. Now to your problem....If there is an
error with session.save_path u need to configure the php.ini file. If u
are using a remote server to run ur php files then the path of
session.save_path cannot be like D:\PHP\temp. U have to mention the
absolute path of your server......To verify this make a php file with
script and run that. See the path of
session.save_path.
...SuDeEp....
carlos castillo wrote:
Hi, i have the followin problem, i have a site that use sessions,
sometimes when i want to write on the session i get the followin error:
Warning: Unknown(): The session id contains invalid characters, valid
characters are only a-z, A-Z and 0-9 in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (D:\PHP\tmp) in
Unknown on line 0
I see the folder D:\PHP\tmp and there is the session file, so i dont
know whats the problem, also the script works ok, the problem is that at
the end of the html show the warnings.
Any clue?, thanks.
Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]
____________________________________
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico ____________________________________
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yahoo! India Insurance Special: Be informed on the best policies,
services, tools and more.
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and
more.
--- End Message ---