Re: [PHP] Vars passed via URL disappearing

2002-08-02 Thread Monty
Thanks, Steve. So, does this mean I now have to re-declare all vars passed via the URL or a form POST in every script that uses them? Or is there a quicker, easier way to make use of these vars with register_globals off in a script? Thanks! > From: [EMAIL PROTECTED] (Steve Edberg) > Newsgroups

[PHP] php backtraces with gdb print gibberish for function name

2002-08-02 Thread Joe Morris
I have have a PHP script that is core dumping, I'm trying to find out exactly where. I carefully followed the instructions on http://bugs.php.net/bugs-generating-backtrace.php with a little help in creating an apache debug build using: http://www.bowiesnyder.com/writings/gdb_apache.htm howeve

[PHP] server to server post

2002-08-02 Thread Purushotham Komaravolu
Hi all, I am new to php, can anybody pls help me out with my query? How to do a server to server post in php, without client knowing about it. Thanks Puru

[PHP] difference

2002-08-02 Thread Bob Lockie
What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. What is the performance difference from having register_globals turned off from having it turned on? I assume the default was changed for

[PHP] server to server post

2002-08-02 Thread Purushotham Komaravolu
Hi all, I am new to php, can anybody pls help me out with my query? How to do a server to server post in php, without client knowing about it. Thanks Puru

[PHP] Re: difference

2002-08-02 Thread Joe Morris
It was changed for security reasons: http://www.php.net/release_4_1_0.php joe Bob Lockie wrote: > What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? > I think the documentation says either can be used to do the same thing. > > What is the performance differen

[PHP] Re: PHP4 and MySql - Search Results Question?

2002-08-02 Thread Julio Nobrega
You could select everything, count the results, and just show 15 results. I am not sure that a COUNT() with LIMIT will perform the desired effect. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br "Jason Caldwell" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">

[PHP] Re: PHP4 and MySql - Search Results Question?

2002-08-02 Thread Jason Caldwell
You cannot have COUNT(*) without having GROUP BY -- hence, by search query will not produce the desired results -- I'm thinking that there may be something within PHP or MySQL (a Function) that reports the total found for a query whether or not a LIMIT clause is used? Thanks "Julio Nobrega" <[E

[PHP] Creating variables...

2002-08-02 Thread Ashley M. Kirchner
I don't know what else to title this message with, hence the subject. I have a script that defines a few variables like this: $var_list1 = Array(...); $var_list2 = Array(...); $var_list3 = Array(...); etc. Further down the script I have this piece: while (list(

RE: [PHP] server to server post

2002-08-02 Thread skeller
> I am new to php, can anybody pls help me out with my query? > How to do a server to server post in php, without client > knowing about it. There's a function called Post2Host. Look in the archives of this newsletter or in Google Groups and you'll find the code for it. -- PHP General

RE: [PHP] Re: Function search utility

2002-08-02 Thread Brian V Bonini
Nope, it was this http://www.php.net/tips.php that I was thiking of But thanks, I didn't know you could do that ;-) -Brian > -Original Message- > From: Lars Olsson [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 02, 2002 2:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Func

Re: [PHP] Creating variables...

2002-08-02 Thread Bas Jobsen
> That same script also gets a value ($step) from another one. Now I > need to figure out which $var_list# to use based on this $step value. Any > suggestion on how to do this? ${'var_list'.$step} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Need Help with register_globals OFF

2002-08-02 Thread Monty
I'm trying to use the more secure "register_globals=Off" setting for some simple scripts that do authentication and use sessions. But I'm ready to rip all my hair out! Can someone recommend a good article online that clearly discusses what's different when you have register_globals=Off? I've spen

Re: [PHP] Parsing XML into PHP array.

2002-08-02 Thread Analysis & Solutions
> I send the XML request in a string to the > credit bureau through cURL and vice versa. Most of the PHP scripting I > found everywhere spoke about breaking up the xml tag into the array only > when they come from the file and is use for parsing. The example on my page you looked at does get the

Re: [PHP] include()

2002-08-02 Thread Chris Knipe
> If you run your own server, you can set it up so that each webmaster is > locked into a private environment, but it's messy. According to me, you > would need a separate copy of apache for each site, each running under a > different user, and they would need to run on separate ports, which is a

[PHP] FreeType 2 support ?

2002-08-02 Thread R'twick Niceorgaw
Hi all, I'm getting this error while running a simple script. Warning: imageftbbox(): No FreeType 2 support in this PHP build in /home/www/htdocs/button_create.php on line 11 Here's my phpinfo https://utkalika.yi.org/phpinfo.php (note the https) While compiling PHP, It says freetype(2) support

[PHP] string questions

2002-08-02 Thread webmaster
I know there has to be an easy way to do this, but I just can't find the answer. I need to strip out the first part of a text string. I've figured out out to strip out the last part of a string using the following: $address = (4455 N. 45th St.); $test = strstr($address, " "); echo $test; The

RE: [PHP] Vars passed via URL disappearing

2002-08-02 Thread David Freeman
> I just upgraded to PHP 4.2.2 and am trying to make my sites work with > register_globals turned OFF. I notice, however, that with > register_globals turned off any variables I pass via the URL don't seem to be > recognized by the script it was passed to. > I thought register_globals onl

[PHP] Re: Protect PHP coding

2002-08-02 Thread Manuel Lemos
Hello, On 08/02/2002 11:06 AM, Lallous wrote: > So... > Is this equivalent to Zend Encoder? Not exactly, but in some aspects it is/will be better like the ability to generate executable standalone PHP programs that you can distribute independently. There is also the question of the price that

Re: [PHP] Re: Protect PHP coding

2002-08-02 Thread Manuel Lemos
Hello, On 08/02/2002 02:39 PM, Randy Johnson wrote: > Does the bcompiler below improve performance? > > make scripts run faster? Definetly YES, because you do not need compile the scripts before each execution as they are already executed. Think about the speedup more or less like you were

[PHP] mail problems

2002-08-02 Thread Bob Lockie
I can't get mail to work on my system. It always tries to send mail as the user 'nobody' which my Apache 1.3.26 runs as. phpinfo() reports I have the correct path to the php.ini file which specifies it is supposed to send as the user 'bob'. I have sendmail 8.12.5 and PHP 4.2.2 on the same RedHat

[PHP] Question about sessions

2002-08-02 Thread Varsha Agarwal
Hi, I am creating a session for user autentication. As I read from the help there are two ways for passing session IDs -Cookies -URL parameter. By default its passing it through cookies. I don't want to use any cookies in my program. Can anyone tell me how to go for the other way? i.e. through UR

Re: [PHP] still need help with crash on make

2002-08-02 Thread Bob Lockie
>Yes, there are many users they recommend to use apache 1.3.26 and php 4.2.2 ! >What useful of CVS ? Apache2 is not supported yet. The latest version from CVS (Concurrent Version System) might work. If you don't have CVS then use Apache 1. :-) >Bob Lockie wrote: > >> >Thanks, Tyler, I will if I

Re: [PHP] Problems with HTML forms and PHP. Please Help !!

2002-08-02 Thread Bob Lockie
Is register_globals off in your php.ini? Try $var = $_REQUEST['var']; >Hi! i have instaled PHP 4.2.2 in a slack 8.1 running apache 2.0.39. >i have a proble with a very basic script (pass variables to a php >script). Is seems not recieve variables, because print somthing like this: > >Your first

[PHP] Reg-Cache problem

2002-08-02 Thread SenthilVelavan
Hello All, I have the following lines in my program to disable the caching with the client. But still the clients cache my pages.Installed versions in my server is PHP 4.2.2 and Apache 2.0.39. Is there any other way to go. Any help is appreciated. Advance thanks and regards, Sent

Re: [PHP] ODBC

2002-08-02 Thread Bob Lockie
>Can PHP be used on an Apache server (linux) to connect to a (remote) MS >Access server (NT) through ODBC? Yes. > If so, does anyone have examples of how this >is done? Nope, never done it. It'll use the same PHP database commands probably. Read www.php.net -- PHP General Mailing Lis

[PHP] variables

2002-08-02 Thread Bob Lockie
What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP with forms

2002-08-02 Thread Bob Lockie
On Fri, 2 Aug 2002 12:14:51 -0500, Dave Leather wrote: >Is there a way to read a FORM varaiable into PHP variable. The kicker here >is the form variable is in a framed window. > >Example, I have my main page in a 2 part frame (90%/10%). The bottom 10% >has a form on it called 'fileform' with on

[PHP] Re: include()

2002-08-02 Thread Lord Loh.
How ever can ant of the apache restrictions stop any one from including the script by giving the whole path. ie /home/htdocs/include.inc or /home/abc/include.inc Yes or No ? I use win 2000 so it is not possible for me to experiment! but I have hostings on servers like www.f2s.net and a project o

Re: [PHP] PHP and MySQL

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 04:13, Erich Kolb wrote: > Is there any way to speed up MySQL queries? 1) Use a faster computer 2) Read the mysql manual 3) Ask on the mysql list 4) Ask google -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web D

[PHP] Re: Question about sessions

2002-08-02 Thread Lord Loh.
>From the php docs(XC. Session handling functions) == Hello visitor, you have seen this page times.; is necessary to preserve the session id # in the case that the user has disabled cookies ?> To continue, click here ===

Re: [PHP] variables

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 10:43, Bob Lockie wrote: > What is the difference from using $_GET['some_var'] from using > $_REQUEST['some_var']? I think the documentation says either can be used to > do the same thing. $_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus you c

Re: [PHP] Question about sessions

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 10:19, Varsha Agarwal wrote: > Hi, > I am creating a session for user autentication. As I > read from the help there are two ways for passing > session IDs > -Cookies > -URL parameter. > > By default its passing it through cookies. I don't > want to use any cookies in my

[PHP] File Phrasing & Mark-ups

2002-08-02 Thread Lord Loh.
A function I have written to accept filenames, read it and phrase it's mark ups. Is the second function of one line file a good idea ? Is there an alternative ? Can problems arise if the size of the file being phrased is very large ? == =

Re: [PHP] Need Help with register_globals OFF

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 07:37, Monty wrote: > I'm trying to use the more secure "register_globals=Off" setting for some > simple scripts that do authentication and use sessions. But I'm ready to > rip all my hair out! Look at the chapter "Session handling functions". The setting of register_g

Re: [PHP] question about references

2002-08-02 Thread Tom Rogers
Hi, Friday, August 2, 2002, 11:29:39 PM, you wrote: JV> Tried to post this to the news group before, but I'm having trouble getting JV> to my news server from work - hopefully I'm not posting a duplicate. JV> I think I'm seeing the problem I'm seeing because I'm getting a copy of a JV> var inst

Re: [PHP] Re: PHP4 and MySql - Search Results Question?

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 07:01, Jason Caldwell wrote: > You cannot have COUNT(*) without having GROUP BY -- hence, by search query Not sure what you mean -- SELECT COUNT(*) FROM table; -- works fine. > will not produce the desired results -- I'm thinking that there may be > something within PH

[PHP] My SQL speed.

2002-08-02 Thread Lord Loh.
I have a database of mysql with 3 million records. No query is performed in less than 10 seconds!(With Index and all that) Any way to speed this up ? How on earth does US Social Security dept. maintain so many records ? Google has 1 billion pages and qurys in a few milliseconds... I am not sayi

Re: [PHP] My SQL speed.

2002-08-02 Thread Tyler Longren
> Should this be asked in a mysql list ? Please suggest a NNTP server! You could always take this to the mysql mailing list [EMAIL PROTECTED] tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string questions

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 00:35, webmaster wrote: > I know there has to be an easy way to do this, but I just can't find the > answer. I need to strip out the first part of a text string. I've > figured out out to strip out the last part of a string using the > following: > > $address = (4455 N

[PHP] Re: My SQL speed.

2002-08-02 Thread Manuel Lemos
Hello, On 08/03/2002 01:36 AM, Lord Loh. wrote: > I have a database of mysql with 3 million records. No query is performed in > less than 10 seconds!(With Index and all that) The index will not do magic by itself, especially if it is not unique. > Any way to speed this up ? Sometimes your qu

Re: [PHP] mail problems

2002-08-02 Thread Jason Stechschulte
On Fri, Aug 02, 2002 at 09:34:20PM -0400, Bob Lockie wrote: > I can't get mail to work on my system. > It always tries to send mail as the user 'nobody' which my Apache 1.3.26 runs as. > phpinfo() reports I have the correct path to the php.ini file which specifies it is >supposed > to send as the

Re: [PHP] Re: My SQL speed.

2002-08-02 Thread Jason Stechschulte
On Sat, Aug 03, 2002 at 01:49:10AM -0300, Manuel Lemos wrote: > >Google has 1 billion pages and qurys in a few milliseconds... > > Real search engines do not use SQL databases. What do search engines use? Is there something out there that explains how they work? -- Jason Stechschulte [EMAIL P

Re: [PHP] mktime() question

2002-08-02 Thread Tom Rogers
Hi, Friday, August 2, 2002, 10:52:14 PM, you wrote: JB> Good morning! JB> I need to subtract months by their abbreviated month name, so shouldn't this JB> work? JB> print(date("M", mktime(date("M")-$i)); JB> and if I loop; JB> Aug JB> Jul JB> Jun JB> May JB> Does this help... $now

Re: [PHP] variables

2002-08-02 Thread Bob Lockie
On Sat, 3 Aug 2002 12:19:15 +0800, Jason Wong wrote: >On Saturday 03 August 2002 10:43, Bob Lockie wrote: >> What is the difference from using $_GET['some_var'] from using >> $_REQUEST['some_var']? I think the documentation says either can be used to >> do the same thing. > >$_REQUEST holds every

[PHP] Re: mail problems

2002-08-02 Thread Manuel Lemos
Hello, On 08/02/2002 10:34 PM, Bob Lockie wrote: > I can't get mail to work on my system. > It always tries to send mail as the user 'nobody' which my Apache 1.3.26 runs as. > phpinfo() reports I have the correct path to the php.ini file which specifies it is >supposed > to send as the user 'bob

php-general Digest 3 Aug 2002 05:13:32 -0000 Issue 1502

2002-08-02 Thread php-general-digest-help
php-general Digest 3 Aug 2002 05:13:32 - Issue 1502 Topics (messages 110847 through 110932): HELP with forms 110847 by: Dave Leather 110848 by: Michael Sweeney 110914 by: Bob Lockie Re: include hassle 110849 by: Reuben D. Budiardja HELP with fOpen 1

Re: [PHP] Re: My SQL speed.

2002-08-02 Thread Manuel Lemos
Hello, On 08/03/2002 01:54 AM, Jason Stechschulte wrote: > On Sat, Aug 03, 2002 at 01:49:10AM -0300, Manuel Lemos wrote: > >>>Google has 1 billion pages and qurys in a few milliseconds... >> >>Real search engines do not use SQL databases. > > > What do search engines use? Is there something o

[PHP] Re: My SQL speed.

2002-08-02 Thread Maxim Maletsky
Lord Loh. writes: > How on earth does US Social Security dept. maintain so many records ? > Google has 1 billion pages and qurys in a few milliseconds... Weel, I work as a consultant on development of a similar system for Italian Government. (instead of Social Security numbers it handles all

[PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Monty
Well, to answer my own question, I found a decent tutorial on using sessions with the new register_globals off here: http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab les.html Anyone want to share any tips on how to deal with form vars passed to a script with register_

Re: [PHP] string questions

2002-08-02 Thread Musone Verdana
Use function explode, preg_split, split to split the text string. $pieces = explode(" ", $address); echo $pieces[0]; // will output 4455 - Original Message - From: Jason Wong Sent: Saturday, August 03, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] string questions On Saturday 0

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Justin French
on 03/08/02 3:35 PM, Monty ([EMAIL PROTECTED]) wrote: > Well, to answer my own question, I found a decent tutorial on using sessions > with the new register_globals off here: > > http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab > les.html > > Anyone want to share any

Re: [PHP] variables

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 12:55, Bob Lockie wrote: > >$_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus > > you cannot differentiate where the value came from. > > > >If you want to be sure, be specific and use one of $_GET/$_POST/$_COOKIE. > > There is no reason other t

Re: [PHP] Re: Need Help with register_globals OFF

2002-08-02 Thread Monty
Thanks for the tips, Justin. Sounds like a good idea. Do you, or anyone, know if the $_POST vars stay defined even after moving on to another page? Do I also need to unset $_POST after passing the vars each time? > From: [EMAIL PROTECTED] (Justin French) > Newsgroups: php.general > Date: Sat, 0

Re: [PHP] isset($var) && !empty($var) same time!

2002-08-02 Thread lallous
Just use empty() ?! With error_reporting(E_ALL) you'll get a bunch of warnings if you only use empty() w/o the isset() ! use isset() first and then check wheter empty or not empty! so there is not one function that tests for empty and isset same time!? Elias "Analysis & Solutions" <[EMAIL PROT

Re: [PHP] Re: My SQL speed.

2002-08-02 Thread Ilia A.
On August 3, 2002 12:54 am, Jason Stechschulte wrote: > On Sat, Aug 03, 2002 at 01:49:10AM -0300, Manuel Lemos wrote: > > >Google has 1 billion pages and qurys in a few milliseconds... > > > > Real search engines do not use SQL databases. > > What do search engines use? Is there something out the

<    1   2