[PHP] what kind of weird problem is this?

2002-06-19 Thread Joshua Alexander
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

Re: [PHP] what kind of weird problem is this?

2002-06-19 Thread Rasmus Lerdorf
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

Re: [PHP] SQL Statement

2002-06-19 Thread w . w . w
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

RE: [PHP] what kind of weird problem is this?

2002-06-19 Thread Martin Towell
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

Re: [PHP] what kind of weird problem is this?

2002-06-19 Thread Clay Loveless
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

Re: [PHP] what kind of weird problem is this?

2002-06-19 Thread Joshua Alexander
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

Re: [PHP] what kind of weird problem is this?

2002-06-19 Thread Rasmus Lerdorf
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

Re: [PHP] what kind of weird problem is this?

2002-06-19 Thread Joshua Alexander
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 --

[PHP] where are project ?

2002-06-19 Thread RoyD
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

[PHP] Re: PHP and SSI

2002-06-19 Thread Shashwat Nagpal
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.

Re: [PHP] Setting my.cnf [client] values in PHP

2002-06-19 Thread Clay Loveless
[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

[PHP] apache security

2002-06-19 Thread Josep R. Raurell
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

[PHP] error messages

2002-06-19 Thread Shashwat Nagpal
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

Re: [PHP] error messages

2002-06-19 Thread Philip Olson
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

Re: [PHP] SQL Statement

2002-06-19 Thread èdy kurniawan
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

Re: [PHP] Small CGI Serve

2002-06-19 Thread BB
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

[PHP] help with some class problem

2002-06-19 Thread Uros Gruber
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

RE: [PHP] catch the client OS user logon from php script

2002-06-19 Thread John Holmes
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

RE: [PHP] catch the client OS user logon from php script

2002-06-19 Thread Brian McGarvie
$_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

Re: [PHP] catch the client OS user logon from php script

2002-06-19 Thread Clay Loveless
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],

[PHP] parse text

2002-06-19 Thread sonjaya
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

[PHP] parse text

2002-06-19 Thread sonjaya
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

[PHP] previous, current and next while looping

2002-06-19 Thread Wilbert Enserink
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

[PHP] Re: parse text

2002-06-19 Thread Henrik Hansen
[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

[PHP] Forum with php

2002-06-19 Thread Martin Thoma
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

RE: [PHP] catch the client OS user logon from php script

2002-06-19 Thread Brian McGarvie
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

RE: [PHP] parse text

2002-06-19 Thread Brian McGarvie
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...

Re: [PHP] catch the client OS user logon from php script

2002-06-19 Thread Clay Loveless
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

[PHP] Re: parse text

2002-06-19 Thread BB
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

[PHP] Re: Forum with php

2002-06-19 Thread BB
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

RE: [PHP] shtml problem

2002-06-19 Thread savaidis
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

[PHP] real IP?

2002-06-19 Thread savaidis
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

Re: [PHP] Forum with php

2002-06-19 Thread 1LT John W. Holmes
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