Re: [PHP] print html code

2003-07-02 Thread Leif K-Brooks
Jim Lucas wrote: well, tell me. What browser follows the standards 100% ?? Most likely none. That doesn't mean you should violate the standards for absolutley no reason, though! Future browsers will most likely drop plaintext. -- The above message is encrypted with double rot13 encoding.

Re: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Leif K-Brooks
jwulff wrote: How would I calculate if a $number is a multiple of $spacer? if(int($number / $spacer) == ($number / $spacer)){ echo It's a multiple!; }else{ echo Nope!; } -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be

Re: [PHP] Email troubles

2003-06-30 Thread Leif K-Brooks
Sparky Kopetzky wrote: I'm getting this error while sending email with mail(): Warning: mail(): SMTP server response: 550 5.7.1 [EMAIL PROTECTED]... Relaying denied in (path to my program) How do I turn relaying on?? That has nothing to do with PHP, it's your SMTP server. I'm guessing you're

Re: [PHP] Securing PHP code

2003-06-29 Thread Leif K-Brooks
The INI file should be: [mysql_info] host=spore.org uid=myuserid passwd=mypassword Also, you'll probably want to do: $INI = parse_ini_file(/home/revref/mysql.ini); Doug Essinger-Hileman wrote: I am just beginning to use php and mysql together (I'm new to both). I am having trouble getting

Re: [PHP] Passing form value into another form value?

2003-06-29 Thread Leif K-Brooks
Miranda, Joel Louie M wrote: This is what I have made, im not sure if its correct. --- form action method=GET name= enter name: input type=text name=namebr enter email: input type=text name=email ?php $value_name = $_post['name'] $value_email = $_post['email'] ? brbr input type=submit

Re: [PHP] include question

2003-06-27 Thread Leif K-Brooks
Blake Schroeder wrote: Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: !--#include virtual= /cgi-bin/something.pl?data=something-- You can't use SSI in PHP. PHP is not SSI. You can do something similar though, www.php.net/virtual. -- The

Re: [PHP] Trouble reading POST data that is not associated with avalue.

2003-06-27 Thread Leif K-Brooks
Marcus Akre wrote: Hi. I'm currently developing a system that accepts http requests containing xml data. A third-party application delivers the xml data in the post part of the http request. The post data is however not associated with any name. So it cannot be indexed as normal with

Re: [PHP] @import

2003-06-27 Thread Leif K-Brooks
Brian V Bonini wrote: Can anyone make this work with Mozilla? style type=text/css xml:lang=en lang=en @import url(site.css.php); /style No matter what I try , header(Content-type: text/css) or ini_set to will not output anything other then text/html This has nothing to do with PHP. -- The

Re: [PHP] Largest Member of Array

2003-06-26 Thread Leif K-Brooks
John Wulff wrote: How would i find the value of the largest number in this array? $example_data = array( array(Mar-99,100,2000,5945.33,1234,10), array(Feb-99,908,3454,4764.90,4321,50), array(Jan-99,542,8000,13365.52,6012,60) ); www.php.net/max -- The above message is encrypted with double rot13

Re: [PHP] PHP Certification

2003-06-26 Thread Leif K-Brooks
Stevie Peele wrote: I am new to this list. Does this list also provide help with PHP? Not sure what your post has to do with this thread, but what do you mean by also? What else does the list do? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to

Re: [PHP] session_regenerate_id() - Call to undefined function

2003-06-26 Thread Leif K-Brooks
D. R. Hansen wrote: I am getting a Call to undefined function when invoking session_regenerate_id(). No typos -- I've checked. Fatal error: Call to undefined function: session_regenerate_id() in /path_to_my_script/resetsession.php3 on line 5 Running PHP 4.3.1 on RH 8.0 and Apache 2

Re: [PHP] quotes

2003-06-25 Thread Leif K-Brooks
Lso . wrote: Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i have a page that displays this information in a series of text fields. I have done this so you can alter the information in the fields hit

Re: [PHP] quotes

2003-06-25 Thread Leif K-Brooks
Lso . wrote: Thanks everyone. Honestly I tried so many things that Im not sure exactly what combinations I tried. The textfield trick works, and I so sick of looking at this script Im moving on. Ill try something else the next time around. Thanks again for all of the excellent fast help!!

[PHP] highlight_file() in XHTML Strict?

2003-06-24 Thread Leif K-Brooks
I want to use highlight_file() in XHTML Strict. Is there any way to change PHP to use span class=string (and other classes) and use a stylesheet to colour it? If not, any other suggestions? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it

Re: [PHP] Using variables from includes

2003-06-24 Thread Leif K-Brooks
Ben wrote: Ok, I'm sort of a beginner at this, so cut me some slack. :-) Ok, I have an if then statement that after you click a link it looks like this: blah?page=pagename It looks something like this: ?php if(!$page) { include (http://www.site.com/home.php;); } else{ include

Re: [PHP] Using variables from includes

2003-06-24 Thread Leif K-Brooks
Ben wrote: How would I do this then? include('foo.php'); -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Using variables from includes

2003-06-24 Thread Leif K-Brooks
Ben wrote: But how would I go about using the IF THEN statement but allowing the page to see the variables. Not sure if I know what you mean, but: if($foo == 'bar'){ include('foo.php'); } -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it

Re: [PHP] PHP cached data when using browser back button

2003-06-24 Thread Leif K-Brooks
Ow Mun Heng wrote: Hi All, How can I prevent the browser from sending in cached data after the user pressed the 'back' button and re-inputted data. Eg: Originall I enter 3 isbn numbers, submitted it, then the user presses the 'back' button to re-input 1 new data and then re-submits the

Re: [PHP] Defining Super Globals

2003-06-23 Thread Leif K-Brooks
Denis 'Alpheus' Cahuk wrote: Can some1 tell me how can I define Super Globals (like the Application Scope in ASP)? You can't. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General

Re: [PHP] House for rent - Good price

2003-06-23 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: Hello all mailing list, House for rent - Good price, :), bye. URL : http://www.geocities.com/rapogo Can someone PLEASE unsubscribe the spammer? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted

Re: [PHP] Mod_L33T ANYONE! (Virtual Hosts ) alternative READ if youUSE Virtual Hosts

2003-06-22 Thread Leif K-Brooks
Mark Clarkstone wrote: hey everyone do any of you people use mod_l33t? I do it rocks you can have about 1000 sites on your comp with their own domain your ram won't even go down 1mb. its easy to setup its very cool email me or post if you want of info 1) This has absolutley nothing to do with

Re: [PHP] reference a function in a class from array_walk()

2003-06-21 Thread Leif K-Brooks
Thomas Hochstetter wrote: Hi guys. I want to call this generic echo function within a class, but have trouble referencing the output function with $this- . Any suggestions? Maybe there is a better solution to this? This is within a class: [snip] # generic WALK functions function

Re: [PHP] Why Fatal Error ?

2003-06-19 Thread Leif K-Brooks
Tony Arcucci wrote: Why this error ( Linux Redhat 8.0, PHP 4.2.2): Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1048576 bytes) in /var/www/html/xpai/xmail.class on line 71 Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 131

Re: [PHP] Multiple Submission of the Same Form

2003-06-19 Thread Leif K-Brooks
Miranda, Joel Louie M wrote: Hello, Any ideas on this? I have a form some users try and try to reload and it floods my mailbox This is one of the most asked questions, right behind OMG! MY VARIABLES DONT PASS111. Search the archives. -- The above message is encrypted with double rot13

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Leif K-Brooks
Vernon wrote: The point is I don't know how to do that. That's why I was asking. :) But it's a javascript question, not a PHP question. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. --

Re: [PHP] .htaccess files

2003-06-18 Thread Leif K-Brooks
Steve Marquez wrote: Hello everyone, Could someone point me in the direction of some info on .htaccess files? Could someone send me one, tell me where to put it in my server? I hope this is not a stupid question. I am running Apache on a Mac with Jaguar OSX. This has nothing to do with PHP. --

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Leif K-Brooks
Vernon wrote: Missing the point all tighter. The point now is merely that courtesy goes a long way. Why some one needs to respond in such a fashion is beyond me. I think it's pretty simple, if I'm posting to a php group, then obviously I'm using php. Also very simple, yet again, is if you don't

Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Leif K-Brooks
Lars Torben Wilson wrote: I have no idea where you folks have gotten the idea that asking how to get Javascript to interact with PHP would be particularly off-topic here. Were it the vile transgression this thread has made it out to be, we probably wouldn't have included the answer in the FAQ.

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorizedusers to download document)

2003-06-16 Thread Leif K-Brooks
Mishari wrote: Hi All I built a MySQL table for all authorized users and their password , when user correctly enter his username and password he can access to a PHP site that contains a link to all document he need When he click on one of the document to he can download it, the URL will appear

Re: [PHP] functions, opinion...

2003-06-16 Thread Leif K-Brooks
Dan Joseph wrote: Hi, Just kind of curious what people think. In your opinion, should a function avoid output? What I mean by that, is should a function on do something without having echo or printf commands in it? This is something I've been thinking about lately to improve my

Re: [PHP] AOL and PHP

2003-06-14 Thread Leif K-Brooks
Most likely, you're using some HTML that AOL doesn't like. It's definitley a client-side issue, in any case. rml wrote: I have recently created a site that has some PHP in it. It works fine in all browsers except AOL. I can see some of the PHP page in AOL except the one that fetches

Re: [PHP] $command actions

2003-06-14 Thread Leif K-Brooks
$command = isset($HTTP_POST_VARS['action'] and $HTTP_POST_VARS['action'] == data_input) ? check : display; Daniel J. Rychlik wrote: I have a line of code in my form that I am trying to get to work. $action = ($HTTP_POST_VARS['action'] == data_input) ? check : display; I recieved undefined

Re: [PHP] $command actions

2003-06-14 Thread Leif K-Brooks
Whoops! $command = isset($HTTP_POST_VARS['action']) and $HTTP_POST_VARS['action'] == data_input) ? check : display; Daniel J. Rychlik wrote: I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')'; - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: Daniel J

Re: [PHP] SELECT MULTIPLE form variable?

2003-06-14 Thread Leif K-Brooks
You need to name it formfield[], not formfield. Noel Wade wrote: Hi all, So I was under the impression that an HTML form SELECT MULTIPLE item would return an array with all of the selected items. This array can then be used with any of the standard PHP array functions, yes? I have 1 HTML page

Re: [PHP] php editor?

2003-06-14 Thread Leif K-Brooks
I reccomend you don't talk about cracking Zend software on a list owner by Zend... Ryan A wrote: but you can make it a free version if you want ;-p -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the

Re: [PHP] manually unserializing session data

2003-06-14 Thread Leif K-Brooks
http://us3.php.net/manual/en/function.session-decode.php Andrew Warner wrote: How do you manually unserialize session data? Using unserialize() on session data from a sessions table is not working for me. I have modified the gc function of my MySQL session handler to save data from expired

[PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
The following function converts minutes to years, monthes, weeks, days, hours, minutes. For instance, 61 minutes would become 1 hour, one minute. Before I use it, I want to make sure there are no stupid mistakes. I can't find any, can any of you? function min2ymwdhm($min){ $a = array();

Re: [PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
Already have, and it seems to work fine. Fairly hard to test though, since the human brain has a hard time converting number of minutes into years/monthes/weeks/days/hours/minutes. Alex Earl wrote: Why not just try it? Alex -- The above message is encrypted with double rot13 encoding.

Re: [PHP] Pipe $var to a shell command

2003-06-13 Thread Leif K-Brooks
If $myoutput is foo, it will attempt to get input from a file named foo. Use command | $myoutput instead. Tim T wrote: I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec(command $myoutput) however this is not quite right. Anybody have

Re: [PHP] Question on SELECT

2003-06-13 Thread Leif K-Brooks
$query = 'select * from table where fieldname in(\''. implode('\',\'',$myArray) . '\')'; Roy W wrote: I have a bunch of variables stuffed in myArray() I want to run a MySQL SELECT statement ($query= ..) where it will access only those records in the database WHERE table.fieldname is found

Re: [PHP] Saving

2003-06-13 Thread Leif K-Brooks
Use the optional second argument to imagejpeg(). www.php.net/imagejpeg Monil Chheda wrote: Can any one guide me as to how can I save dynamically generated .JPEG images on the server ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
Unfortunatley, an equation to do what this script does would be as hard to come up with, and as likely not to work. That's why I want a second (human) opinion. PHP4 Emailer wrote: I'm gonna go out on a limb here, but isn't that why the human brain made calculators? ;) Good luck with the

Re: [PHP] array

2003-06-12 Thread Leif K-Brooks
Nothing as far as I can tell. It works fine for me. Diana Castillo wrote: If I write a code like this, $room_type=array(); $room_type[0][0]=4; echo BRvalue in array is .$room_type[0][0]; yet I dont get any results out, what did i do wrong? -- The above message is encrypted with double

Re: [PHP] make a variable not exist?

2003-06-12 Thread Leif K-Brooks
And won't generate a notice. Alex Earl wrote: You can unset the variable www.php.net/unset but also I would recommend using if(!isset($variable)) instead of just if(!$variable) its a little more clear as to what you are really trying to see I think. Alex -- The above message is encrypted

Re: [PHP] Gettnig PHP code out of a DB?

2003-06-12 Thread Leif K-Brooks
www.php.net/eval Ben Houlton wrote: Is there a way to get PHP script/code out of a DB? Becasue, when I enter PHP code into the textbox and hit submit, and go check the page it has nothing there with ?php xxx ? and just shows the code, e.g. include(menu.php); without the ? ? tags, the code

Re: [PHP] Gettnig PHP code out of a DB?

2003-06-12 Thread Leif K-Brooks
*sigh* Just do: eval($msg); Ben Houlton wrote: I use echo $msg; eval(\$msg = \$msg\;); echo $msg; and it comes up with include(menu.php); on the live page Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] www.php.net/eval Ben Houlton wrote

Re: [PHP] string question

2003-06-11 Thread Leif K-Brooks
Put quotes around the value attribute of your input tag, for example input type=hidden name=x value=A.B. XYZ / Mukta Telang wrote: Hi, if a string is: $x=A.B. XYZ; and if I post it as a hidden form control and echo $_POST['x'] then I get: A.B. and not A.B. XYZ ! What should I

Re: [PHP] Re: Help with a UBB Code style parser...

2003-06-11 Thread Leif K-Brooks
Even better, try my BBCode class. Much more flexible. http://www.phpclasses.org/browse.html/package/951.html Manuel Lemos wrote: Hello, You may want to try this class: Class: UBBCode http://www.phpclasses.org/ubb -- The above message is encrypted with double rot13 encoding. Any unauthorized

Re: [PHP] Eval or $$ are they the same or is $$ safer

2003-06-11 Thread Leif K-Brooks
Use $$ unless you need to use eval. Easier to read, faster to process. Also safer if you don't validate form data. Jason Lehman wrote: Is $$ the same as eval or is it different and my main question is, is it safer to use to for processing form data? -- The above message is encrypted with

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
That's plain wrong. This is the /world wide/ web, not the IE users' club. Either stop that BS or keep off of the internet! Miles Thompson wrote: We limited our users to using IE -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
And it's my choice to tell him to go to hell. chris sherwood wrote: if they choose to limit to ie thats their choice ... -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
Standards-compliant HTML can be written just as cheaply and easily as IE-compliant HTML. If I chose to make my restraunt inaccessible to wheel chairs, I would have to face the consquences. chris sherwood wrote: That's true but how would you feel if you made some choices and then had people

Re: [PHP] checking is session_start is already set

2003-06-11 Thread Leif K-Brooks
if(!session_id()){ //Session not started } [EMAIL PROTECTED] wrote: dumb question but how can i check if i have loaded the session_start function without actually checking for a particular session variable , i need to know as to prevent it being called twise within my DB class which is seperate

Re: [PHP] Eval or $$ are they the same or is $$ safer

2003-06-11 Thread Leif K-Brooks
$$ is perfectly explained in the variable variables section. Shawn McKenzie wrote: Can you expand on this? I haven't found a ref to the $$ except for variable variables. $$ What does it do? How is it used? Thanks! Shawn Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

Re: [PHP] Session not working?

2003-06-09 Thread Leif K-Brooks
Use a browser that displays errors properly, like Mozilla. Frank Keessen wrote: Hi, It's pointing towards the booking.php (which is the 'sender' page..) Exact error message: The Page cannot be displayed.. So it's no 404.. I think.. Frank - Original Message - From: Emma Jane Hogbin

Re: [PHP] reading/writing the value of an UL/LI text value

2003-06-09 Thread Leif K-Brooks
This has nothing to do with PHP! Bruce Douglas wrote: Hi. I have a question regarding the DOM model. Does anyone know how to write to the UL/LI text value using the DOM model. I more or less can write to select/option attributes of the DOM. but I can't figure out how to write (or read) the text

Re: [PHP] Need a safe way to get user supplied data into a varaible.

2003-06-08 Thread Leif K-Brooks
Why not just use file() and friends? Simon Coggins wrote: Hi, After lots of looking I've worked out I can't use heredoc for what I want. Does anyone else have any better ideas on how to do this: I have a template file that is used to generate a html page. in this template I currently have: $body

Re: [PHP] How to determine if output buffering is on?

2003-06-07 Thread Leif K-Brooks
Yay, a hack! The correct answer is ob_get_level(). Jim Lucas wrote: output some html and then try and do an header() redirect. if it works, then some sort of buffering is turned on. if it fails and tells you that output has already been sent to the browser, then it isn't turned on. Jim Lucas

Re: [PHP] [Newman] How to pass an image through PHP.

2003-06-07 Thread Leif K-Brooks
Not sure what you mean, but try passthru(). Philip J. Newman wrote: I would like to know where i should be looking to pass an image through PHP Thanks / Phil -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full

Re: [PHP] Allowing punctuation marks in regular expressions

2003-06-06 Thread Leif K-Brooks
It's using the case-insensitive switch. Dan Joseph wrote: Also, if you want upper case letters, make sure you add A-Z: -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General

Re: [PHP] Gracefully dealing with Cookies OFF

2003-06-06 Thread Leif K-Brooks
I don't have a study in front of me, but I'm fairly sure that cookies are much more likely to be enabled than javascript. I reccomend opening a normal popup using a link with a target, and opening a sized popup and returning false with javascript in an onclick property. Something like: a

Re: [PHP] Do not display page errors...

2003-06-06 Thread Leif K-Brooks
You need to set it from a .htaccess file or php.ini to hide parse errors. John W. Holmes wrote: error_reporting(0); -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing

Re: [PHP] Php handling apache's error directive?

2003-06-06 Thread Leif K-Brooks
$_SERVER['REQUEST_URI'] Miranda, Joel Louie M wrote: Can I use php to be apache's error directive? I mean, im trying to change apache's error directive But at the same time I can only change the page and couldn't see what error it was, I can send it only to a page with an error saying 404, etc

Re: [PHP] Re: Using register_globals

2003-06-05 Thread Leif K-Brooks
It's true that register_globals being on only makes sloppy code more insecure. Most people aren't going to write perfect code, though. It's incredibly annoying to have to unset every variable that shouldn't be from an outside source. Even if you do so, it's very likely that you will forget

Re: [PHP] Re: Using register_globals

2003-06-05 Thread Leif K-Brooks
), and there are other cases like this. I generally initialize variables before using them, but there's always going to be a time when someone forgets. That shouldn't present a security hazard, which is why I think register_globals should *always* be off. Rasmus Lerdorf wrote: On Wed, 4 Jun 2003, Leif K-Brooks

Re: [PHP] POST Variables get passed as GET variables.

2003-06-05 Thread Leif K-Brooks
This has absolutley nothing to do with PHP, and is a client-side issue. Michael A Smith wrote: Hey, So I've got this form that passes POST variables. However, they keep getting passed as get variables. Example: form action=?php echo $_SERVER['PHP_SELF']; ? method=post input type=hidden

Re: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Leif K-Brooks
Uh, I think you mean echo $_POST['path']; and echo $_GET['path']; Jonathan Wilkes wrote: Hi, What he means is that with register_globals=off you cannot do this: echo $path you need to do this (if the variable is sent by POST action) echo _POST('path') and through GET echo _GET('path')

Re: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Leif K-Brooks
Uh, just putting those variables at the top of your page won't help you. You need to do something with them. Esteban Fernández wrote: When you recivied that error ?, in a form ?, if is in a Form just put in the top of .php files this code $HTTP_GET_VARS[variable2]; $HTTP_GET_VARS[variable3];

Re: [PHP] php and mcrypt on windows

2003-06-04 Thread Leif K-Brooks
Please RTFM before asking questions! http://php.net/mcrypt answers your question. Gilberto Garcia Jr. wrote: How I can use php and mcrypt on windows? I mean. What I have to do to turn php able to use mcrypt function on windows. Thanks -- The above message is encrypted with double rot13

Re: [PHP] Cookies and Expirations

2003-06-04 Thread Leif K-Brooks
The browser simply doesn't provide this information. You may be able to do it with javascript, but certainly not PHP. Tom Ray [Lists] wrote: Simple question: How do I check the expiration of a cookie that has been set? I can't seem to find it on php.net, if it is there..please provide the

Re: [PHP] Use of undefined constant PHP_SELF - assumed 'PHP_SELF'

2003-06-03 Thread Leif K-Brooks
http://us3.php.net/types.array#language.types.array.foo-bar Øystein Håland wrote: What's the difference (and what's correct)? With the use of error_reporting = E_ALL in php.ini I get an error as mentioned above. In the code I use $_SERVER[PHP_SELF]. Changing this to $_SERVER['PHP_SELF'] report

Re: [PHP] how to get rid off this auto repsonse from TechSupport@bonzi.com?

2003-06-03 Thread Leif K-Brooks
My guess is that some moron subscribed [EMAIL PROTECTED] to the list. I'm sure a moderator will remove it soon enough. hui zhang wrote: how to get rid off this auto repsonse from [EMAIL PROTECTED] everytime i post in this news group i got auto repsonse from bonzi. is this bonzi the host of

Re: [PHP] Sending a http body

2003-06-02 Thread Leif K-Brooks
www.php.net/flush Roland Welker wrote: Hi, I am a bit of a newby in php, so I hope the group my forgive me, if I ask a question answered before. The presumtion: php is first evaluating the complete script, before sending anything back to the browser. The situation: I have got a script, which

Re: [PHP] generate random

2003-05-30 Thread Leif K-Brooks
I reccomend you RTFM! www.php.net/rand www.php.net/mt_rand Marius wrote: how to generate random number ? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List

Re: [PHP] PHP redirect

2003-05-29 Thread Leif K-Brooks
Actually, the standards require an absolute URL, e.g. header(Location: http://foo.com/bar/baz/something.php;); David Grant wrote: It might also be an idea to give the filename as a path relative to the root directory, e.g. header(Location: /foo/bar/index.php); -- The above message is

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Leif K-Brooks
To maintain absolute compatibility, just use $HTTP_GET_VARS. It's availalable in all PHP versions, just deprectaed in versions here $_GET is available. [EMAIL PROTECTED] wrote: Thank you! =) Okay, okay... Sorry to keep rambling on like this, but I just need to get this 100% straight: I read

Re: [PHP] alignment

2003-04-06 Thread Leif K-Brooks
This has asbolutley nothing to do with PHP! Ask it on an HTML list. Diksha Neel wrote: dear all, hi! an html file is being created by my php script. i have used tables for the alignment of html file's text and images. i have an image and the value of variable $cname to be displayed in a cell.

Re: [PHP] Right Click

2003-04-05 Thread Leif K-Brooks
There NEEDS to be a manual page for this! PHP is SERVER-SIDE! That means that once the page loads (actually, a little before that), PHP is done. IT DOES NOT KEEP RUNNING! IT RUNS ON THE SERVER'S MACHINE, NOT THE CLIENT! RTFA! Shantenese Williams wrote: Does anyone know if there is a

Re: [PHP] Right Click

2003-04-05 Thread Leif K-Brooks
html is OT ! = Original Message From Leif K-Brooks [EMAIL PROTECTED] = There NEEDS to be a manual page for this! PHP is SERVER-SIDE! That means that once the page loads (actually, a little before that), PHP is done. IT DOES NOT KEEP RUNNING! IT RUNS ON THE SERVER'S MACHINE

Re: [PHP] dynamic IF statement

2003-04-04 Thread Leif K-Brooks
If I understand you right, you want: if (HTTP_GET_VARS[id] == $row_rsProducts['prID']){ ...do stuff... } Tim Haskins wrote: How does one create a statement that basically says: ?php if (HTTP_GET_VARS[id] == ?php echo $row_rsProducts['prID']; ? ) { ? Basically, I want to say, show if url value

Re: [PHP] Session Variables and Posting

2003-04-04 Thread Leif K-Brooks
http://www.php.net/manual/en/security.registerglobals.php Van Andel, Robbert wrote: Is there a way that I can prevent session variables getting values from query strings. I want them to receive values only from posted forms. Robbert van Andel -- The above message is encrypted with double

Re: [PHP] Found a bug in 4.2.3 re: TD and echo vs. ?php?

2003-04-04 Thread Leif K-Brooks
Works fine for me, php 4.2.1. Daevid Vincent wrote: Here, try this bullshit... I can't upgrade to a more recent version as I'm not in control of the server, but I've tried it with both 4.1.2 and 4.2.3 on linux with a RH install. Can anyone confirm or dispute this bug exists in later versions?

Re: [PHP] how do I strip out data from a url?

2003-04-04 Thread Leif K-Brooks
//Beware, untested! preg_match('|.*([0-9]{10}).*|',$_SERVER['HTTP_REFERER'],$matches); $number = $matches[1]; Damon wrote: Hi, I have a realatively easy problem that I need help on. I want to take a 10-digit number out of a referring url and put it in a variable. Eg.

Re: [PHP] Re: Found a bug in 4.2.3 re: TD and echo vs. ?php?

2003-04-04 Thread Leif K-Brooks
Neither works. You're doing something like this in your other code: function foo(){ echo foo; } echo foo(); The foo() doesn't return the (non-existant) value from echo, it simply echo()s and returns nothing, and there's nothing wrong with echo()ing nothing. It would fail if you were using

Re: [PHP] Found a bug in 4.2.3 re: TD and echo vs. ?php?

2003-04-04 Thread Leif K-Brooks
Of course you can concatenate a string with a function! It works perfectly for me. Pablo wrote: On 04/04/2003 7:06 PM, Daevid Vincent ([EMAIL PROTECTED]) wrote: Here, try this bullshit... Try this. Change this line: echo TD.alarmLightMySQL()./TD; to this, and you will get the

[PHP] Memory problem...

2003-04-03 Thread Leif K-Brooks
I've posted this before, but still haven't been able to solve it. Often, users will get Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to allocate 86460 bytes) in Unknown on line 0. I'm not doing anything very memory-intensive, and this sometimes does mention a specific

Re: [PHP] REPLY NEEDED

2003-04-03 Thread Leif K-Brooks
Based on the information gathered about thousands of people, you believe they would all be in a position to help you? :) PATRICK KOFI wrote: BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS

Re: [PHP] generate all permutations possible? (twist)

2003-04-03 Thread Leif K-Brooks
Try this (minimal testing, un-optimized): function permutations($letters,$num){ $last = str_repeat($letters{0},$num); $result = array(); while($last != str_repeat(lastchar($letters),$num)){ $result[] = $last; $last = char_add($letters,$last,$num-1); } $result[] =

Re: [PHP] command line

2003-04-03 Thread Leif K-Brooks
http://www.php.net/manual/en/ref.exec.php Randy Johnson wrote: What would be the syntax for executing a command line php script from the web. and is there way to check the staus of the script via the web ie is it stil running or not? Randy -- The above message is encrypted with double

Re: [PHP] magic quotes

2003-04-03 Thread Leif K-Brooks
That's exactly what magic_quotes_runtime does. It adds slashes to data at runtime - including data returned from functions such as mysql_fetch_(assoc/row/array/object). Justin French wrote: Hi all, Can I just have a quick head check on magic quotes runtime (gpc)? I have them both set to

Re: [PHP] space

2003-04-03 Thread Leif K-Brooks
The manual is your friend! :) www.php.net/nl2br Diksha Neel wrote: hi all! in an html file thru a php script, i have to put in some data. i am using variable $string to write the data as under. what i want to know is how can i ensure that the value of $badd1 and $area get written on different

Re: [PHP] Php.ini doesn't exit

2003-04-02 Thread Leif K-Brooks
If it doesn't exist, it will use default settings. To see where it's looking for php.ini, use phpinfo(). Javier Carreras wrote: Hi all, Where does PHP get its settings if php.ini file doesn't exist? BTW- I want to enable sockets that are not enabled. Could I do that without creating a

Re: [PHP] chill out

2003-04-02 Thread Leif K-Brooks
It's not people who don't know everything I have a problem. It's people who ask questions when the answer is right in front of their nose. [EMAIL PROTECTED] wrote: We subscribe to a few email lists on various languages. This list would have to be the worst for anyone learning - the amount

Re: [PHP] php.ini not being used?

2003-04-02 Thread Leif K-Brooks
It's using default settings. You'll have to recompile PHP to change where it looks for php.ini, or you can move your php.ini file into that location. Justin French wrote: Hi, I can't believe I've never bothered to learn this stuff, so I apologise for being totally dumb in advance :P

Re: [PHP] Deleting Objects

2003-04-02 Thread Leif K-Brooks
That will work perfectly. [EMAIL PROTECTED] wrote: How does one delete an object? For example: $object = new Class(...); . $object = new Class(...); I want to throw away the old object and create a new, freshly initialized one using the same variable. Is the above

Re: [PHP] Deleting Objects

2003-04-02 Thread Leif K-Brooks
Not exactly true. unset() destroys the reference to the value, not the value itself. For instance, error_reporting(E_ALL); $var1 = foo; $var2 = $var1; print $var1\n$var2\n\n; unset($var1); print $var1\n$var2; will output: foo foo br / bNotice/b: Undefined variable: var1 in bPHPDocument1/b

Re: [PHP] QUESTION - user management

2003-04-02 Thread Leif K-Brooks
Keeping track of the last time each username / IP address has viewed a page, and assuming that any user who was seen less than 5 minutes (or so) ago is online. [EMAIL PROTECTED] wrote: How do applications know how many users are logged into the system? For example postnuke will tell you '3

Re: [PHP] Stylesheets, are they run?

2003-04-01 Thread Leif K-Brooks
Most likely not, but this has to do with the browser and not PHP. Liam Gibbs wrote: Here I go again with the stylesheets. ;) Anyway, if a user has stylesheets turned off, is a stylesheet file even run? Like, if I have them turned off and I have a stylesheet, say, SS.php. Will SS.php run or will

Re: [PHP] Stylesheets, are they run?

2003-04-01 Thread Leif K-Brooks
Not true, any decently-optimized browser won't fetch a style sheet it doesn't plan to use. Clint Tredway wrote: Your ss.php will still run, but the browser will not render the styles in the page. Clint -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: [PHP] Command line php

2003-04-01 Thread Leif K-Brooks
STDIN is a file reference. Use the standard file functions (fread, for example) on it. John Nichel wrote: How do I capture standard input? ?php $name = STDIN; echo ( Hello . STDIN . \n ); ? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to

<    1   2   3   4   5   6   >