I just installed the php 4.2.1 from entropy.ch and when running this script:
?php
$test = just about anything;
echo this was justa test;
?
I get this error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in
/Library/WebServer/Documents/west.php on line 3
Anyone know what
Are you using a broken editor of some sort? All I can think of here is
that your spaces aren't really spaces. Try an od -c on that file from
your prompt.
-Rasmus
On Wed, 19 Jun 2002, Joshua Alexander wrote:
I just installed the php 4.2.1 from entropy.ch and when running this script:
?php
this is the problem:
$query = Select OSUSER
From v$session
Where USERNAME = (Select USER From DUAL)
And AUDSID =(Select USERENV('SESSIONID') From DUAL);
1.
mysql does NOT support subselects!
2.
delete the in front of FROM
3.
you have to quote v$session: v\$session
start with a short query
Doing a search on php.net for T_CONSTANT_ENCAPSED_STRING comes up with this
page:
http://www.php.net/manual/en/tokens.php
This then leads to:
http://www.php.net/manual/en/language.types.string.php#language.types.string
.syntax
I have no idea how to interpret all this, but try changing ?php to
Sounds like you're using Mac OS X, if you got PHP from entropy.ch ... Make
sure you do NOT use TextEdit to edit/create your PHP scripts. Grab a copy of
BBEdit Lite instead from www.barebones.com. You'll be glad you did!
-Clay
From: Joshua Alexander [EMAIL PROTECTED]
Date: Wed, 19 Jun 2002
Thanks, I didn't know about od
000 ? p h p \n \n $ t e s t 312 = 312
020j u s t a b o u t a n y t h
040i n g ; \n \n e c h o t h i
060s w a s j u s t
Well, 312 is not a space. Please use a text editor that knows what a
space is. The other lines look fine, but your $test312=312 stuff
there is bogus.
-Rasmus
On Wed, 19 Jun 2002, Joshua Alexander wrote:
Thanks, I didn't know about od
000 ? p h p \n \n $ t e s t
Opening the file in vi shows that BBEdit is, for some reason, using
\xca where the spaces should be. Off to BareBones.com I go...
Well, 312 is not a space. Please use a text editor that knows what a
space is. The other lines look fine, but your $test312=312 stuff
there is bogus.
-Rasmus
--
where i find the free project web site that i search , especially with PHP
and database web site ?? because iam a freelance programmer , i need more
project ?
Roy Daniel , ST
IT Developer System - PT BERCA COMPUTEL
My E-mail : [EMAIL PROTECTED]
and : [EMAIL PROTECTED] / [EMAIL PROTECTED]
My
no you can't use SSI in your PHP files, but u can use commands like
include(); to include a file in ur program, and other functions for
different uses. to know more go through php.net.. it's the best resource.
Cheers!
Shashwat Nagpal
Web Developer IS Executive,
DIREM Marketing Services Pvt.
[Sorry about replying to my own thread here]
I've looked in php_mysql.c in the PHP source distribution, and it looks like
the mysql. php.ini variables that are recognized are hard-coded.
Okay ... Is there any other way to get PHP to pick up these three values?
My understanding of how the
Hello. I think nobody had send this warnig to the list. Sorry if you
already nows.
This text is from the apache web:
SECURITY ADVISORY
Versions of the Apache web server up to and including 1.3.24 and 2.0 up
to and including 2.0.36 contain a bug in the routines which deal with
invalid
Hi! I did some code, and I am getting warning messages everywhr, I know thr
is a code for it, can u help me? I forgot that msg.
keep in mind, I don't have the xs to php.ini... pls. tell me the settings
for the code file itself..
thanks.
--
_
Shashwat
Try the error_reporting function, which is also
a PHP directive in php.ini
http://www.php.net/manual/en/features.error-handling.php
http://www.php.net/error_reporting
Although you should just fix the errors ;)
Regards,
Philip Olson
On Wed, 19 Jun 2002, Shashwat Nagpal wrote:
Hi! I did
Sorry... michi..
I've ignored your advice to quote the script as :
3.
you have to quote v$session: v\$session
-
yeah.. the script is work when I change the script right below :
$query = Select OSUSER
From v\$session
Where USERNAME = (Select USER From DUAL)
And AUDSID =(Select
Because that's how they get there!
Analysis Solutions [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hail, BB:
On Tue, Jun 18, 2002 at 12:37:29PM +0100, BB wrote:
Having finally found out how to pass the Environment vars onto PHP, I am
stumpted to find
Hi!
i'm making some modular aplication. I have one base class for
example:
class Main {
function loadmod($name,$mod) {
$mod = new $name; // load module
}
}
In module class i want to use some properties from main
module, but i don't know how to solve this. But i don't want
extend
Look at a phpinfo(); page. All of the variables you can get are shown
there. Look for the one you want.
---John Holmes...
-Original Message-
From: èdy kurniawan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 4:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] catch the client
$_ENV[OS]
(see MANUAL for more that you can capture!)
-Original Message-
From: èdy kurniawan [mailto:[EMAIL PROTECTED]]
Sent: 19 June 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] catch the client OS user logon from php script
Dear PHP-ers,
How can I capture my client
Edy,
If you're referring to the OS a visitor to your site is using (not the OS
your PHP is running on, which you probably know), you'd want:
$_SERVER[HTTP_UA_OS]
-Clay
From: Brian McGarvie [EMAIL PROTECTED]
Date: Wed, 19 Jun 2002 09:54:39 +0100
To: èdy kurniawan [EMAIL PROTECTED],
i want read some tex like this
here contens file text
1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ
1. i want read from first left until eight caracter (12345678 --
caracter i cant read )
it can be use fread
2. i want read 5 from nine (9) caracter from left ( 0ABCD --the
caracter must i
i want read some tex like this
here contens file text
1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ
1. i want read from first left until eight caracter (12345678 --
caracter i cant read )
it can be use fread
2. i want read 5 from nine (9) caracter from left ( 0ABCD --the
caracter must i
Hi all,
I'm doing this query and looping through the results:
$result_ID_ID=mysql_query($gallery_list_query) OR die(mysql_error());
$counter=0;
while ($queryresult_IDresult=mysql_fetch_array($result_ID_ID))
{
$result_array['$counter']=$queryresult_IDresult;
if
[EMAIL PROTECTED] (Sonjaya) wrote:
i want read some tex like this
here contens file text
1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ
1. i want read from first left until eight caracter (12345678 --
caracter i cant read )
it can be use fread
2. i want read 5 from nine
Hello! I saw a lot of forums (or boards) which looks almost the same and
they are done in php. Is there a free forum-software in php?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
does... $_SERVER[HTTP_UA_OS] exist?
I can't see that ne where and when I try to use it t's blank...
Also... I was using that as an example to put him on the right track... afterall
nuthing is learnt if your given it on a plate...
if you want the exact OS, you need to extract it from
You could do it using the substring it you ALWAYS for each line want the characters at
that exact location.
$moo = 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ;
$partition = substr($moo, 9, 5);
this would return 5 characters from position 9 in the string which would be:
0ABCD
hope this helps...
This is funny -- I see $_SERVER[HTTP_UA_OS] in the output of phpinfo(),
and naturally assumed it was part of the $_SERVER superglobal array.
This definitely isn't the first time I've seen a discrepancy between what
phpinfo() shows in terms of server/apache/environment variables, and what
you can
At a guess, without trying it out
$fp = fopen(your file) or echo Cant open your file;
$tmp = fread($fp,1024);
preg_match(/(.{8}).(.{5})/,$tmp,$matches);
then $matches[1] will have the first part
and $matches[2] will have the second
note: $matches[0] = whole preg'd text
Sonjaya [EMAIL
PHPBB
Use google to search :o)
Martin Thoma [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello! I saw a lot of forums (or boards) which looks almost the same and
they are done in php. Is there a free forum-software in php?
Martin
--
PHP General
For a strange reason iframes DOESN'T work with shtml.
(doen't pass the var ip = '!--#echo var=REMOTE_ADDR--';
as parameter with a FORM/POST to a php script. It shows is but it doesn't
pass it!)
I had to change them to FRAMEs.
Makis
-Original Message-
From: Analysis
using the ip
var ip = '!--#echo var=REMOTE_ADDR--';
in shtml script I get one IP address NOT the same with this one that gives
me the IP query program and it is allways the same (I have dynamic access
so my IP must vary)
I think it is the IP of my host.
Can't I get my real IP number?
Thanks
http://phorum.org
- Original Message -
From: Martin Thoma [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 19, 2002 5:43 AM
Subject: [PHP] Forum with php
Hello! I saw a lot of forums (or boards) which looks almost the same and
they are done in php. Is there a free
33 matches
Mail list logo