Re: [PHP] Re: Postnuke Anyone ?

2002-05-04 Thread Ricardo Fitzgerald
How about some code? Here is the code ?php include 'includes/pnAPI.php'; pnInit(); include 'includes/legacy.php'; pnThemeLoad(); # includes the mainfile functions and the header junk if (!isset($mainfile)) { include(mainfile.php); } include(header.php); # When submit starts db connection

[PHP] Displaying contents of MySQL Table {!?}

2002-05-04 Thread Liam MacKenzie
Hi all, got a problem here... This bit of script works, but it displays the results the wrong way. I have to scroll to the end of the page to see the last bit of data entered into the database, I want the last bit of data entered to be displayed first. ? $usr = lanolot; $pwd = ...; $db =

Re: [PHP] Displaying contents of MySQL Table {!?}

2002-05-04 Thread Jason Wong
On Friday 03 May 2002 15:08, Liam MacKenzie wrote: Hi all, got a problem here... This bit of script works, but it displays the results the wrong way. Computers are never wrong. They just do what they are told. I have to scroll to the end of the page to see the last bit of data entered

Re: [PHP] Secure user authentication

2002-05-04 Thread The_RadiX
Pedro Pontes wrote: with a SIMPLE equals test. So if a user happens to get that crypted value of the password (from a temporary file on the server, for example), then all the little devil has to do is to create a dummy session user object, or in your case, array, set its password value to the

[PHP] How to save records from MySQL in separate files?

2002-05-04 Thread Yura
I need all the records in my database saved as separate html files on the disk how can I do this with PHP? Youri God is our provider http://www.body-builders.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Javascript function

2002-05-04 Thread Morten Nielsen
Hi Is it possible to call a function in a javascriptpage from a PHP page? I have a function, which I use when the user press a button. I would like to call this function just by typing the name. Is that possible? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To

[PHP] ob_start(ob_gzhandler) and require_once

2002-05-04 Thread bob
can ob_start(ob_gzhandler) function be nested ? after echo 'test' , does it continue to includes and evaluates c.php? for example: a.php ?php require_once main.php; .. include b.php; ? b.php ?php require_once main.php; ... echo 'test'; include c.php; ? c.php ?php

[PHP] Re: How to save records from MySQL in separate files?

2002-05-04 Thread David Robley
In article 3CD3C8A3.19104.5190C40@localhost, [EMAIL PROTECTED] says... I need all the records in my database saved as separate html files on the disk how can I do this with PHP? Youri God is our provider http://www.body-builders.org/ Use a suitable query to select the

[PHP] Php Sessions

2002-05-04 Thread Daniel Svanbäck
Hi I have a problem. I can't send the session_id to the next page. It worked before (when I had an old version of php, now I have 4.2.0). It can send the session_id() if it's a link, but not a header(). If it is a header I have to do this: define('MYSID', session_name().'='.session_id());

[PHP] Re: Apache-2.0.35 + 4.2.0RC4: not seeing index.php

2002-05-04 Thread vins
I'm guessing that you've set the default directory index in the conf file for apache2 as follows. Directory Index index.html index.php ??? If I'm right, then change that to Directory Index index.html Directory Index inde.php Every new index add a new directive on a new line. Works for me.

[PHP] Pear on Windows

2002-05-04 Thread Luke van Blerk
Hi Can someone please refer me to some information on how to install Pear on windows. The manual seems to cover unix only. Thanks Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pear on Windows

2002-05-04 Thread David Robley
In article 000201c1f355$a7baee20$a8f103c4@luke, [EMAIL PROTECTED] says... Hi Can someone please refer me to some information on how to install Pear on windows. The manual seems to cover unix only. Thanks Luke Strong odds are that you already have it on your system. Look in the

[PHP] Frames

2002-05-04 Thread Morten Nielsen
Hi, I got a page with 2 frames. In the first one I have an IMG. Is it possible to get the URL from the second frame? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Frames

2002-05-04 Thread Maxim Maletsky \(PHPBeginner.com\)
Yes, But this is a JavaScript problem. Please ask elsewhere or look at the Google. Also, take a look here: http://developer.irt.org/script/script.htm Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Morten

RE: [PHP] Javascript function

2002-05-04 Thread Maxim Maletsky \(PHPBeginner.com\)
Is it possible to call a function in a javascriptpage from a PHP page? Javascriptpage? Do you mean using JavaScript to call a PHP function? NO, it is not. Because PHP is SERVER-SIDE and JavaScript is CLIENT-SIDE. You can do vice versa though. Sincerely, Maxim Maletsky Founder, Chief

[PHP] 2 Syntax Questions

2002-05-04 Thread Miva Guy
I'm very new to PHP. I've scanned the manual for these two, but I can't quite find the answers: 1. Is the following legal? INPUT TYPE=hidden NAME=user_id VALUE=? echo $user_id ? Or is it necessary to do this? ? echo(INPUT TYPE=\hidden\ NAME=\user_id\ VALUE=\.$user_id.\); ? 2. If I use

Re: [PHP] 2 Syntax Questions

2002-05-04 Thread Jason Wong
On Saturday 04 May 2002 19:37, Miva Guy wrote: I'm very new to PHP. I've scanned the manual for these two, but I can't quite find the answers: Wouldn't it have been quicker to just try it for yourself? 1. Is the following legal? INPUT TYPE=hidden NAME=user_id VALUE=? echo $user_id ?

Re: [PHP] getting pages with FILE

2002-05-04 Thread jyrgen
On 3 May 02, at 12:16, Miguel Cruz wrote: On Fri, 3 May 2002 [EMAIL PROTECTED] wrote: i'm using FILE to read a page via HTTP and construct an array of HTML lines. After that i modify the page and echo it out. this all works great. The web server delivers pages depending on browser

Re: [PHP] getting pages with FILE

2002-05-04 Thread Jason Wong
On Saturday 04 May 2002 20:06, [EMAIL PROTECTED] wrote: never heard of cURL ? is it a extension for PHP ? google curl ? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

[PHP] need help on ereg statement

2002-05-04 Thread Andy
Hi there, I am trying to validate a password. Only characters in the alphabet and numbers should be allowed. Somehow my statement does not work at all :-( if (ereg(^[A-Za-z0-9],$new_passw)) echo 'invalid'; Can anybody help on that? Thanx in advance, Andy -- PHP General Mailing List

Re: [PHP] need help on ereg statement

2002-05-04 Thread Trond Arve Nordheim
On Sat, May 04, 2002 at 02:42:34PM +0200, Andy wrote: if (ereg(^[A-Za-z0-9],$new_passw)) if (!preg_match(/^[a-zA-Z0-9]*$/, $new_passw)) { echo invalid; } preg-power! :) -- Trond Arve Nordheim - This message is ROT13-encrypted twice for extra security. -- PHP General Mailing List

Re: [PHP] Re: I-worm/Klez and a GIF query/question

2002-05-04 Thread Hugh Bothwell
R [EMAIL PROTECTED] wrote in message 001501c1f369$060a52a0$0a6da8c0@lgwezec83s94bn">news:001501c1f369$060a52a0$0a6da8c0@lgwezec83s94bn... Hey, Thanks for replying, Do you by any chance have the code or functions that i can use to do this? even to output on jpeg should be ok. Cheers, -Ryan

[PHP] questions about a self-made mini chat

2002-05-04 Thread Duncan
Hi there, i have some questions to solve some problems, i recently encountered with my self made mini chat script. Ok, i use the meta-refresh in the main chat-messages frame to update the frame every few seconds. In windows OS, you always get that click sounds whenever it refreshes the frame.

[PHP] Re: Apache-2.0.35 + 4.2.0RC4: not seeing index.php

2002-05-04 Thread David Jackson
Vins -- Thanks very much for your reply, I think your really close to the answer. Remember were talking about an ISP/hosting company (I actualy don't work for them) using virtual hosting. Wouldn't a DirectiveIndex in the VitualHost /VituralHost section of the httpd.conf override the system

[PHP] Variable scope

2002-05-04 Thread George Nicolae
I have the following code: ? function a($var_a) { b(); } function b() { global $var_a; echo $var_a; } a(hello word!); ? why function b() don't echo anything? can I resolve this problem without calling b($var_a)? Best regards, George Nicolae IT Manager ___ PaginiWeb.com -

[PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread David Jackson
Greeting --- I was handed a broken form that contain: IF (cond): . ELSEIF: .. ENDIF: My Questions are: 1. Is this type of IF: code block valid in PHP4.x.x? 2. Shouldn't it be -- IF (cond): ELSE: or maybe IF (cond): ELSEIF (cond): ELSE: -- PHP General Mailing List

Re: [PHP] Re: I-worm/Klez and a GIF query/question

2002-05-04 Thread Hugh Bothwell
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Saturday 04 May 2002 04:58, Hugh Bothwell wrote: NOTE that for someone sufficiently persistent, they could still pattern-match the generated image to retrieve the number and auto-register that way. (I could write

Re: [PHP] questions about a self-made mini chat

2002-05-04 Thread Jason Wong
On Saturday 04 May 2002 21:23, Duncan wrote: Hi there, i have some questions to solve some problems, i recently encountered with my self made mini chat script. Ok, i use the meta-refresh in the main chat-messages frame to update the frame every few seconds. In windows OS, you always get

[PHP] What about XSLT in PHP 4.2?

2002-05-04 Thread Olexandr Vynnychenko
Some months ago I used Sablotron in PHP 4.0.6. What should I do now with PHP 4.2.0? There is no Sablotron. php_xslt.dll is placed into 'experimental' directory. Manual says: This extension is different than the sablotron extension distributed with versions of PHP prior to PHP 4.1, currently

Re: [PHP] Variable scope

2002-05-04 Thread Jason Wong
On Thursday 14 March 2002 21:53, George Nicolae wrote: I have the following code: ? function a($var_a) { b(); } function b() { global $var_a; echo $var_a; } a(hello word!); ? why function b() don't echo anything? Because $var_a has not, at any point, been defined in the global

[PHP] Slow in retriveing webpage

2002-05-04 Thread Joseph Then
Hi! I want to grab a webpage and I use the file() function to grab it. The URL in the file() function works OK when I typed it in my address bar. The speed is OK. $fcontents = file (http://www.website.com/cgi-bin/cgifunction/webpage.cgi;); However, when I use the above code and tried to run

Re: [PHP] Re: I-worm/Klez and a GIF query/question

2002-05-04 Thread Jason Wong
On Saturday 04 May 2002 22:18, Hugh Bothwell wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Saturday 04 May 2002 04:58, Hugh Bothwell wrote: NOTE that for someone sufficiently persistent, they could still pattern-match the generated image to retrieve

[PHP] PHP compared to JSP

2002-05-04 Thread Paras Mukadam
Sorry if this is repeated, but I didn't see my query in the news group so reposting it ! --- Dear all, How is PHP similar to / different than JSP ? I mean, in JSP the page is compiled the first time it runs on the web-browser, then the next time it finds the

RE: [PHP] PHP compared to JSP

2002-05-04 Thread Matt Friedman
JSP does not ever run in the browser. JSP is a server side technology designed to compete with ASP. PHP is similar in that it too is a server side language and can be embedded into html pages. Java tends to be considerably slower than PHP but the Java folks have made great strides towards

RE: [PHP] Slow in retriveing webpage

2002-05-04 Thread Matt Friedman
Grab the file using a script that is run by Cron, assuming your are on a Linux type system. Grab it every 5 minutes or something. Store/cache it on your web server. Then when you need the file in your other script, grab it from the place where you've cached it. You're script can then get the

Re: [PHP] php_network_getaddresses

2002-05-04 Thread Julian
Try just pinging www.nancies.org from the command line. $ ping nancies.org PING nancies.org (207.8.144.57): 56 data bytes 64 bytes from 207.8.144.57: icmp_seq=0 ttl=64 time=0.047 ms 64 bytes from 207.8.144.57: icmp_seq=1 ttl=64 time=0.043 ms 64 bytes from 207.8.144.57: icmp_seq=2 ttl=64

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Paras Mukadam
Thanks for that ! But my question still remains the same ... does PHP alone (without ZEND) compile code into some .compiled_PHP file so that the user loading same page for 2nd time gets better response than the 1st time? Regards, Paras. Matt Friedman [EMAIL PROTECTED] wrote in message

Re: [PHP] php_network_getaddresses

2002-05-04 Thread Pag
nancies is local, so I'm not suprised that the pings came back ok. We did put up a firewall about a week ago that blocks pings from the outside though. Since everything is local though, I'm not sure why we would have this problem. I have this problem too, i mean, the same warning

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Luc Saint-Elie
At 11:07 04/05/2002 -0500, Paras Mukadam wrote: Thanks for that ! But my question still remains the same ... does PHP alone (without ZEND) compile code into some .compiled_PHP file so that the user loading same page for 2nd time gets better response than the 1st time? Hello, Both have nothing

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Pag
But my question still remains the same ... does PHP alone (without ZEND) compile code into some .compiled_PHP file so that the user loading same page for 2nd time gets better response than the 1st time? No, it doesnt. Every time a user accesses a page that has PHP, the page will be

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Pag
Does PHP compile : NO Does the user loading same page for 2nd time gets better response : YES it can if caching is provided On a side not..isnt caching a bit like going against why PHP was built in the first place? I mean, information may get a bit out of date if we get a page on

Re: [PHP] Variable scope

2002-05-04 Thread George Nicolae
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Thursday 14 March 2002 21:53, George Nicolae wrote: I have the following code: ? function a($var_a) { b(); } function b() { global $var_a; echo $var_a; } a(hello word!); ? why function

[PHP] Re: Postnuke Anyone ?

2002-05-04 Thread Kirk Babb
Ricardo, I have noticed several things from just a quick look at your code: 1. If your not able to post any data/receive any variables from your form when the submit button is clicked, you could have register_globals set to Off. Here is a example form used for that situation: form name=form1

[PHP] Message isn't received in form mailer

2002-05-04 Thread Rodrigo
Hi guys, I'm trying to send the contents of a form thru the php script under this message, but I'm not receiving the message itself, I just receive the message in blank. Just with the subject and the from. Does anybody know what the problem is? Thanks for the help, Rodrigo ?php

[PHP] gettext

2002-05-04 Thread Gerard Samuel
Hi all. Im trying to get gettext working. It is compiled in php 4.1.2 on a FreeBSD-4.5 p4 box. In the root of the webserver I have - ?php // User language here putenv(LANG=fr); putenv (LC_ALL=fr); // Specify location of translation tables

[PHP] PHP 4.2.0 and the GET method URLs

2002-05-04 Thread Dylan Fitzgerald
Hello- I recently installed PHP 4.2.0 and Apache2, and everything finally seems to be working nicely...except for GET method (which I believe it http://sitename/pagename.php?var=valuevar=valuevar=value; perhaps that's POST, sue me...). The variables simply aren't passed to the PHP script.

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Jess Planck
In PHP programming this can be a complex issue. An excellent example of caching or re-handling data is the Smarty Template Engine, http://www.phpinsider.com/php/code/Smarty/ . It may seem a rather redundant idea to cache and create scripts in PHP which is already part of the HTML documents,

[PHP] Sessions

2002-05-04 Thread Alex Francis
Newbie question I have installed PHP 4.1.2 on a Windows 2000 for test purposes. I have never used sessions before and am having difficulty with them. I am using session_start(); and get the following error. Warning: open(/tmp\sess_51d4849918d3ffe4d2cc70013d678f6b, O_RDWR) failed: No such

Re: [PHP] Variable scope

2002-05-04 Thread Jason Wong
On Friday 15 March 2002 00:34, George Nicolae wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Thursday 14 March 2002 21:53, George Nicolae wrote: I have the following code: ? function a($var_a) { b(); } function b() { global

Re: [PHP] Message isn't received in form mailer

2002-05-04 Thread Jason Wong
On Sunday 05 May 2002 00:39, Rodrigo wrote: Hi guys, I'm trying to send the contents of a form thru the php script under this message, but I'm not receiving the message itself, I just receive the message in blank. Just with the subject and the from. Does anybody know what the problem is?

Re: [PHP] questions about a self-made mini chat

2002-05-04 Thread Duncan McLord
Thanks for the reply. Oh, i just tried Opera 5.x and it messed up my whole script... lol, actually, for no reason it added about 10 login entries to the database, some matched the current one, others were from earlier logins with Opera. I think this might be related to the cache, so i need to

Re: [PHP] Sessions

2002-05-04 Thread Stuart Dallas
On 4 May 2002 at 18:22, Alex Francis wrote: Warning: open(/tmp\sess_51d4849918d3ffe4d2cc70013d678f6b, O_RDWR) failed: No such file or directory (2) Does the directory it's trying to write to exist? Seeing as you've posted this question, I'll assume that you don't understand the error

php-general Digest 4 May 2002 17:42:38 -0000 Issue 1325

2002-05-04 Thread php-general-digest-help
php-general Digest 4 May 2002 17:42:38 - Issue 1325 Topics (messages 96019 through 96071): Re: Postnuke Anyone ? 96019 by: Ricardo Fitzgerald 96061 by: Kirk Babb Displaying contents of MySQL Table {!?} 96020 by: Liam MacKenzie 96021 by: Jason Wong Re:

Re: [PHP] Sessions

2002-05-04 Thread Alex Francis
You'r right of course, the directory didn't exist. Working alright now. -- Alex Francis Cameron Design 35, Drumillan Hill Greenock PA16 0XD Tel 01475 798106 [EMAIL PROTECTED] http://www.camerondesign.co.uk This message is sent in confidence for the addressee only. It may contain legally

RE: [PHP] How to save records from MySQL in separate files?

2002-05-04 Thread John Holmes
Get your data, and write it to a file with fopen()/fwrite() ---John Holmes... -Original Message- From: Yura [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 2:40 AM To: [EMAIL PROTECTED] Subject: [PHP] How to save records from MySQL in separate files? I need all the

RE: [PHP] Javascript function

2002-05-04 Thread John Holmes
No. PHP is server side, Javascript is client side and their code does not mix. ---John Holmes... -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 2:42 AM To: [EMAIL PROTECTED] Subject: [PHP] Javascript function Hi Is it possible

Re: [PHP] Variable scope

2002-05-04 Thread Miguel Cruz
On Thu, 14 Mar 2002, George Nicolae wrote: ? function a($var_a) { b(); } function b() { global $var_a; echo $var_a; } a(hello word!); ? why function b() don't echo anything? Because $var_a has not, at any point, been defined in the global scope. how i declare

Re: [PHP] getting pages with FILE

2002-05-04 Thread Miguel Cruz
On Sat, 4 May 2002 [EMAIL PROTECTED] wrote: It identifies itself along these lines: HTTP-User-Agent: PHP/4.1.2 thank you. now is there a way to modify the above identification, say something like HTTP-User-Agent: Netscape 4 (Mozilla etc... I haven't really checked, but I suspect the

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Ilia A.
Caching is not going against PHP as long as whenever the file is changed of the 1st access it would be cached, rather then caching php scripts based on some arbitrary timer. Ideally the caching script would on the 1st access of the script convert the script to binary code which can then be

Re: [PHP] php_network_getaddresses

2002-05-04 Thread Miguel Cruz
On Sat, 4 May 2002, Julian wrote: Try just pinging www.nancies.org from the command line. $ ping nancies.org PING nancies.org (207.8.144.57): 56 data bytes 64 bytes from 207.8.144.57: icmp_seq=0 ttl=64 time=0.047 ms 64 bytes from 207.8.144.57: icmp_seq=1 ttl=64 time=0.043 ms 64 bytes from

Re: [PHP] php_network_getaddresses

2002-05-04 Thread Julian
$ ping nancies.org PING nancies.org (207.8.144.57): 56 data bytes 64 bytes from 207.8.144.57: icmp_seq=0 ttl=64 time=0.047 ms 64 bytes from 207.8.144.57: icmp_seq=1 ttl=64 time=0.043 ms 64 bytes from 207.8.144.57: icmp_seq=2 ttl=64 time=0.036 ms 64 bytes from 207.8.144.57: icmp_seq=3

RE: [PHP] Sessions

2002-05-04 Thread John Holmes
Yes, modify your php.ini file to tell PHP where to write the session to. It's trying to write it to /tmp, which is either not a valid file, or PHP doesn't have permissions to write a file there. ---John Holmes... -Original Message- From: Alex Francis [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Message isn't received in form mailer

2002-05-04 Thread John Holmes
$Mensagem = $coments; Where is $coments coming from? Why do you assign a variable to a variable, without changing anything? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread Miguel Cruz
On Sat, 4 May 2002, David Jackson wrote: Greeting --- I was handed a broken form that contain: IF (cond): . ELSEIF: .. ENDIF: My Questions are: 1. Is this type of IF: code block valid in PHP4.x.x? I think it is, but I've never heard of anyone using it. One teensy

RE: [PHP] PHP 4.2.0 and the GET method URLs

2002-05-04 Thread John Holmes
Have you tried using $_GET[name] to get the value? ---John Holmes... -Original Message- From: Dylan Fitzgerald [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 9:53 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP 4.2.0 and the GET method URLs Hello- I recently

Re: [PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread David Jackson
Miguel -- Thanks for you reply, the if (ops) else is the only one could find listed in the docs. and you right that's the why normal people do it, but this devoloper used to be a COBAL programer which explain it. Thanks again, David On Sat, 4 May 2002, David Jackson wrote: Greeting ---

Re: [PHP] Message isn't received in form mailer

2002-05-04 Thread David Jackson
Jason -- This ain't pretty (and probly not even correct) but it works: David -- Mail Call PHP html headtitlehello mail/title/head body pre ?php $From = $_POST['from']; $Two = $_POST['two']; $Subject = $_POST['sub_ject']; $Comments = $_POST['comments']; echo

RE: [PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread John Holmes
Alternative methods are listed here: http://www.php.net/manual/en/control-structures.alternative-syntax.php ---John Holmes... -Original Message- From: David Jackson [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 1:28 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Michael Kimsal
Ilia A. wrote: Caching is not going against PHP as long as whenever the file is changed of the 1st access it would be cached, rather then caching php scripts based on some arbitrary timer. Ideally the caching script would on the 1st access of the script convert the script to binary code

[PHP] php beginner

2002-05-04 Thread Paras Mukadam
I'm using this simple command in my PHP script : echo My Name is . $myName . \n; I'm invoking the php page by the command http://localhost/testing/test.php?myName=Paras I'm getting eoor : Notice: Undefined variable: myName in c:\apache\htdocs\testing\test.php on line 12 My Name is Please

[PHP] Re: php beginner

2002-05-04 Thread Julio Nobrega
echo My Name is . $_GET['myName'] . \n; Specify where myName is from! It's coming from GET method, in other (simplistic) words, from the url. -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br Paras Mukadam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
Heya folks, I've got a little problem here, maybe you can help me out. $HTTP_SERVER_VARS[HTTP_REFERER] is supposed to point to the referring webpage, if it exists. As is $_SERVER[HTTP_REFERER] and $HTTP_REFERER itself. However, it seems that I do not have this variable available on my

[PHP] SSH

2002-05-04 Thread Kyle Gibson
I am curious as to how I would go about executing SSH command line operations through PHP. Say for instance the command ftpwho, which would return a list of users connected to a FTP server, along with what they are doing, etc. I've tried to open a socket to my SSH server, along with the

[PHP] Re: Javascript function

2002-05-04 Thread Hugh Bothwell
Morten Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Is it possible to call a function in a javascriptpage from a PHP page? I have a function, which I use when the user press a button. I would like to call this function just by typing the name. Is

[PHP] RE: SSH

2002-05-04 Thread Insomniac Admin
Hi, man ssh Do that, you'll see there is a -c command, and also read up on using RSA key authentication, so that the password doesn't have to be entered for that host. BE WARNED - if you use RSA key auth, then any process under the login account you specify it for (it will probably have to be

[PHP] global variables

2002-05-04 Thread Jule
Hey, i'm just wondering if there is another way to write global variables to a global.php, now i just the whole fopen etc script, where i open a file and write the sctring $number_right = [whatever number it is] to the file, but is there a different way to write it to the file with one simple

[PHP] help !!!

2002-05-04 Thread Yoel Benitez Fonseca
H! Excuse me, but I need help. Somebody can give me a link from where I can download the version 1.0 of the Delphi. Thank you in advance. Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread John Holmes
Have you tried looking at a phpinfo() page and seeing what variables are available? Make a page with just the following line in it and load it up through your web server. ?phpinfo()? ---John Holmes... -Original Message- From: Kyle Gibson [mailto:[EMAIL PROTECTED]] Sent: Saturday,

RE: [PHP] global variables

2002-05-04 Thread John Holmes
This is simpler than cookies?? Anyway, that's how you have to do it. Fopen(), fwrite(), fclose()...not any way simpler that I know of. ---John Holmes... -Original Message- From: Jule [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 6:23 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
Have you tried looking at a phpinfo() page and seeing what variables are available? Make a page with just the following line in it and load it up through your web server. ?phpinfo()? Yes. That is how I know of WREFERER. Do you know what it is? If you want, you can look at my phpinfo

[PHP] Re: » PHP Installation Problems «

2002-05-04 Thread David Jackson
Vins -- Let me see if I can return the favor. Here's what the seem to work for me with PHP4.2.0: form.php // Depending on wheather your using POST or GET $var_name1 = $_POST['form_var_name']' // or $var_name2= $_GET['form_var_name']' echo $var_name1; echo $var_name2; Also I

Re: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
Whoops. It wont show unless you come from somewhere else... Go here and click the link: http://www.plaguenet.com/wreferer.php Thanks, Kyle Gibson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SSH

2002-05-04 Thread Kyle Gibson
Thanks, I'll try what you suggested. -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is --enable-track-vars still needed?

2002-05-04 Thread David Jackson
Is I still recommended that config be run with the --enable-track-vars flag? Or has this been deprieciated? Recently? Does the chagnes to global vars come in to play here? TIA, David Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson
My firewall prevented me from seeing the variable in action. Ignore this. -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML to mysql - from msql to html

2002-05-04 Thread Mantas Kriauciunas
Hey PHP General List, I have hare a little problem. Well i have in the page TEXTAREA thingy and there i wrote text like that(between lines): -- foo bar more foo bar -- now i do msql_query(UPDATE.); and it sets into the database with

[PHP] Re: HTML to mysql - from msql to html

2002-05-04 Thread Kyle Gibson
You entered data into a text area field that was entered into a mysql row. Then you tried to print it out. Try this: $content = str_replace(\n,br,$row[row_name]); echo $content; -Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] HTML to mysql - from msql to html

2002-05-04 Thread John Holmes
www.php.net/nl2br ---John Holmes... -Original Message- From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 11:27 PM To: PHP General List Subject: [PHP] HTML to mysql - from msql to html Hey PHP General List, I have hare a little problem. Well i

Re: [PHP] Is this valid: IF:.. ELSE: ENDIF:

2002-05-04 Thread Jason Wong
On Sunday 05 May 2002 04:20, Miguel Cruz wrote: On Sat, 4 May 2002, David Jackson wrote: Greeting --- I was handed a broken form that contain: IF (cond): . ELSEIF: .. ENDIF: My Questions are: 1. Is this type of IF: code block valid in PHP4.x.x? I think

RE: [PHP] help !!!

2002-05-04 Thread Matt Friedman
Try www.php.net. Oh, no that's for php. I might know if this was a Delphi list. Hrm... Matt Friedman Web Applications Developer -Original Message- From: Yoel Benitez Fonseca [mailto:[EMAIL PROTECTED]] Sent: Saturday May 4, 2002 10:23 PM To: [EMAIL PROTECTED] Subject: [PHP] help !!!

[PHP] Tailing a log file {!?}

2002-05-04 Thread Liam MacKenzie
Hi guys, just a simple question, how would I go about displaying the last 100 lines of a log file? I know that on the command line it's: tail -n 100 access_log Is there a PHP function to do this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: