Re: [PHP] Re: Redirecting

2002-04-26 Thread Jason Wong
On Monday 22 January 2001 14:31, The_RadiX wrote: > IOW ?? > > what's this abbrev? "in other words" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I hold it, that a

Re: [PHP] Apache: SERVER_NAME gone?

2002-04-26 Thread Jason Wong
On Monday 22 January 2001 14:36, The_RadiX wrote: > Hi Y'all... > > > > Ok. I just got Apache 1.3.xx and I have PHP4.1.1 and MySQL 3.23.47 on WinXP > Pro... > > > I am currently using IIS5.1 with PHP4 and MySQL but I'd like to move across > to Apache.. [snip] > BUT.. when I call $SERVER_NAME in

Re: [PHP] date format

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 14:43, Ananth Rajaraman wrote: > Hi all, > I'm trying to query a date field from mySQL and > display in a differnet format. > > the mysql date is in the format -MM-DD and I want > to convert it to DD-MM- > > how do I do that? Use mysql's extensive date formatting

[PHP] date format

2002-04-26 Thread Ananth Rajaraman
Hi all, I'm trying to query a date field from mySQL and display in a differnet format. the mysql date is in the format -MM-DD and I want to convert it to DD-MM- how do I do that? TIA Ananth = visit www.locustechnologies.com __ Do Yo

[PHP] Apache: SERVER_NAME gone?

2002-04-26 Thread The_RadiX
Hi Y'all... Ok. I just got Apache 1.3.xx and I have PHP4.1.1 and MySQL 3.23.47 on WinXP Pro... I am currently using IIS5.1 with PHP4 and MySQL but I'd like to move across to Apache.. Catch is? I have hunted through all the FAQ's for Apache and there is no mention of how-to configure Apach

Re: [PHP] Re: Redirecting

2002-04-26 Thread The_RadiX
IOW ?? what's this abbrev? thx.. ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student :: 04475739 ::: - Original Message - From:

Re: [PHP] mail() through a form

2002-04-26 Thread Rasmus Lerdorf
> $query = "SELECT * FROM {$config["prefix"]}_users WHERE uid = > {$session["uid"]}"; $query = "SELECT * FROM ".${$config['prefix'].'_users'}." WHERE uid = $session[uid]"; > $result = mysql_query($query); $result = mysql_query($query) or die(mysql_erro()); > $row = mysql_fetch_array($result);

[PHP] mail() through a form

2002-04-26 Thread Jennifer Downey
Hello to all, I have a mail script with a set of options in a dropdown list that I'm hoping you can help with. Here is the part I wish to get working then after that I can do the rest What I need this to do is send the users name, email address, the option in the drop down list, and the message.

Re: [PHP] Re: Redirecting

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 12:00, Julio Nobrega wrote: > Send head()ers before any html output (including spaces or newlines > before Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Lo

Re: [PHP] PHP Team: PHP 4.2.0 & SSL Support?

2002-04-26 Thread Rasmus Lerdorf
4.3 will have better support courtesy of Wez's cool streams code. -Rasmus On Fri, 26 Apr 2002, [-^-!-%- wrote: > > Hello PHP Team ! > > I was wondering if the latest PHP release had any improved support for SSL > and secure connections. > > Are there any plans to add (or enhance) SSL support in

[PHP] PHP Team: PHP 4.2.0 & SSL Support?

2002-04-26 Thread [-^-!-%-
Hello PHP Team ! I was wondering if the latest PHP release had any improved support for SSL and secure connections. Are there any plans to add (or enhance) SSL support in PHP? I am looking for something like, being able to use HTTPS with the FILE() function, and other functions in that family.

Re: [PHP] Redirecting

2002-04-26 Thread Richard Emery
Since you haven't posted your code, let me see if I can divine it... Nope...can't do it...my MindReader.exe vers 1.01 is on the blink. POST YOUR CODE - Original Message - From: Liam MacKenzie <[EMAIL PROTECTED]> To: PHP <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 10:46 PM Subje

[PHP] Re: Redirecting

2002-04-26 Thread Julio Nobrega
Send head()ers before any html output (including spaces or newlines before http://www.inerciasensorial.com.br "Liam Mackenzie" <[EMAIL PROTECTED]> wrote in message 006801c1ed9e$1fddf4a0$0400a8c0@enigma">news:006801c1ed9e$1fddf4a0$0400a8c0@enigma... > Hey all, > > Just curious as to what the best

[PHP] Redirecting

2002-04-26 Thread Liam MacKenzie
Hey all, Just curious as to what the best way is to move someone off your site, apart from bringing up a picture of male pornography... Seriously, I've tried using header("Location: http://www.php.net/";); but it returns an error saying that the headers are already set. The situation I'm in is

RE: [PHP] Variables not working

2002-04-26 Thread Rasmus Lerdorf
http://www.php.net/manual/en/security.registerglobals.php On Sat, 27 Apr 2002, baldey_uk wrote: > Sorry let me rephrase that ' can anyone point me to good docs about passing > variables between html and php' please? > > Cheers > > baldey_uk > > -Original Message- > From: Nathan [mailto:[

RE: [PHP] Variables not working

2002-04-26 Thread Philip Olson
Read these: Variables from outside PHP: http://uk.php.net/manual/en/language.variables.external.php It gives an example using $HTTP_POST_VARS. This is but one predefined variable, others can be read about here: Predefined Variables: http://ca.php.net/manual/en/language.variables.predef

Re: [PHP] Variables not working

2002-04-26 Thread Mike
I do a link to http://blah.com/do.php?varbiable=passed I'm not sure of any docs though, sorry. Mike - Original Message - From: "baldey_uk" <[EMAIL PROTECTED]> To: "Nathan" <[EMAIL PROTECTED]>; "Rasmus Lerdorf" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 10:29 PM

RE: [PHP] Variables not working

2002-04-26 Thread baldey_uk
Sorry let me rephrase that ' can anyone point me to good docs about passing variables between html and php' please? Cheers baldey_uk -Original Message- From: Nathan [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 02:34 To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re:

RE: [PHP] Variables not working

2002-04-26 Thread baldey_uk
Um ok i can understand that this can be unsecure, how do i pass html variables to php witout the use of globals? Cheers baldey_uk -Original Message- From: Nathan [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 02:34 To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PH

Re: [PHP] BBS system

2002-04-26 Thread Jeff Lewis
Try YaBB SE http://www.yabb.info - Original Message - From: "r" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 27, 2002 7:21 AM Subject: [PHP] BBS system > Hey all, > > Just a small q, > does anybody know of any particular good BBS system that is free? (I aint > ric

Re: [PHP] Variables not working

2002-04-26 Thread Nathan
Before you get carried away with registering globals, try echoing: $_SERVER["HTTP_USER_AGENT"]; Or, for versions prior to 4.1.X, change that to: $HTTP_SERVER_VARS["HTTP_USER_AGENT"]; Registering globals is insecure unless you are VERY careful about how every variable you have is defined... Che

Re: [PHP] good php editor for the mac

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Tom Beidler wrote: > BBedit it is. I've been holding off on switching for awhile but I just > started using it today and I'm already kicking myself for not switching > earlier. There was no problem/learning curve that I was afraid of and I've > found a number of improvements o

RE: [PHP] Opening manual - .bz2

2002-04-26 Thread John Holmes
Read the download page, it tells you what you need to open it. Also, you're the one with the username 'r'. Now whenever I write a message, every single 'r' in it is underlined with a #$%@#$%@ "Smart Tag"... :) That's annoying. ---John Holmes... > -Original Message- > From: r [mailto:[

Re: [PHP] web application development question

2002-04-26 Thread Justin French
Yup, Just keep a minimal include file for access to the DB's etc, then keep a config table in MySQL, and write an interface for it. Nice idea for some stuff (like "how many news items to show on the front page"), bad idea for other stuff (like "server root"). I might look into something like th

Re: [PHP] good php editor for the mac

2002-04-26 Thread Tom Beidler
BBedit it is. I've been holding off on switching for awhile but I just started using it today and I'm already kicking myself for not switching earlier. There was no problem/learning curve that I was afraid of and I've found a number of improvements over the workflow from Dreamweaver. Thanks for al

Re: [PHP] Variables not working

2002-04-26 Thread Rasmus Lerdorf
Turn on register_globals in your php.ini file. On Sat, 27 Apr 2002, baldey_uk wrote: > Hello all, im not sure if its my installation or if on doing something wrong > but i cant seem to use any of the variables from forms that i PUT to. Or any > full stop! even > > > > doesnt out put anything. A

[PHP] Variables not working

2002-04-26 Thread baldey_uk
Hello all, im not sure if its my installation or if on doing something wrong but i cant seem to use any of the variables from forms that i PUT to. Or any full stop! even doesnt out put anything. Anyone seen this before? thanks in advance for your help Cheers From baldey_uk -- PHP General

RE: [PHP] web application development question

2002-04-26 Thread SP
Say if you just had the values in a file then when someone wanted to see all the values, you have to parse your config.inc.php file for all the values to display them. Also when someone made a change then you would have to find the value and replace with the new one. Just thought it would be eas

[PHP] Re: Translation Request--Altavista Babelfish can't do it

2002-04-26 Thread Hugh Bothwell
"Vins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > if(!ereg("^#(.)*$", $buffer[$i])) > { > echo "ok"; > } > > what does this mean? It takes a string ($buffers[$i]) and tries to match it with a regular expression. The expression reads "a string beginni

[PHP] Translation Request--Altavista Babelfish can't do it

2002-04-26 Thread Vins
if(!ereg("^#(.)*$", $buffer[$i])) { echo "ok"; } what does this mean? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I have a real stumper!!

2002-04-26 Thread Vins
I run php4.1.2 on a windows xp professional system compiled with apache. when i call config.php it returns an erorr. "can't find include file in c:/php/pear" now i've played around and figured out that in my config.php file i include another file called mysql.ini i include it like this ... includ

Re: [PHP] BBS system

2002-04-26 Thread John Hughes
Visit www.sourceforge.net --- r <[EMAIL PROTECTED]> wrote: > Hey all, > > Just a small q, > does anybody know of any particular good BBS system that is free? > (I aint > rich :-( ) Been to hotscripts.com can you recomend any? > > (Actually if i were rich I would not care a damn for > PHP-MyS

Re: [PHP] Question on the ~= Operator ...

2002-04-26 Thread Kevin Stone
Bitwise NOT ~$a; "Bits set in $a are not set in the result, and vice versa." -Kevin - Original Message - From: "Red Wingate" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 3:51 PM Subject: [PHP] Question on the ~= Operator ... > Hi there, > I actually wanna

[PHP] Re: BBS system

2002-04-26 Thread Philip Hallstrom
if by bbs you mean message board type stuff... www.phorum.org is good and free. On Sat, 27 Apr 2002, r wrote: > Hey all, > > Just a small q, > does anybody know of any particular good BBS system that is free? (I aint > rich :-( ) Been to hotscripts.com can you recomend any? > > (Actually if i

[PHP] BBS system

2002-04-26 Thread r
Hey all, Just a small q, does anybody know of any particular good BBS system that is free? (I aint rich :-( ) Been to hotscripts.com can you recomend any? (Actually if i were rich I would not care a damn for PHP-MySql-Apache-Java-ASP-JSP hell, i wouldnt even touch a computer, would be hap

Re: [PHP] Opening manual - .bz2

2002-04-26 Thread Philip Olson
Hmm, I swore this was changed back to .tar.gz :) Anyway, read this faq: http://www.php.net/manual/en/faq.misc.php#faq.misc.bz2 Regards, Philip Olson On Sat, 27 Apr 2002, r wrote: > Greetings all, > Special greetings to: > one brainy dude -> Steve, and a REALLLY persistive dude->Michael > V

Re: [PHP] Counter ?

2002-04-26 Thread Liam MacKenzie
www.hotscripts.com Follow your nose. Also, Richard's right. This list is for technical problems. If you can't find it in a search engine, then and only then, ask here. www.google.com is your god - amen - Original Message - From: "CMS" <[EMAIL PROTECTED]> To: "PHP General" <[EMA

Re: [PHP] Counter ?

2002-04-26 Thread Richard Emery
This list is to answer questions for programming problems. Write the script yourself. If it fails, post the code and we'll be glad to help. sheesh - Original Message - From: CMS <[EMAIL PROTECTED]> To: PHP General <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 4:25 PM Subject: [

[PHP] avoiding creation of multiple sessions

2002-04-26 Thread Javier
How can I do to avoid creating a session when reload/refresh button is clicked? every time reload button is clicked a new file in /tmp is created. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] avoiding creation of multiple sessions

2002-04-26 Thread Javier
How can I do to avoid creating a session when reload/refresh button is clicked? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opening manual - .bz2

2002-04-26 Thread Donna Robinson
PS: You do this: put the file.bz2 in a dir somewhere prompt> bzip2 -d file.bz2 Do this: prompt> bzip2 --help to get a list of all options. Donna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opening manual - .bz2

2002-04-26 Thread Donna Robinson
Hi, I had to laugh when I saw this! goto http://sources/redhat.com/bzip2 you can get the source code and/or the binaries for various platforms from there. My man wrote this so I read him yr mail and he grinned! bzip2 uses huffman encoding so you can see it won't work with gzip or winzip (which

Re: [PHP] Opening manual - .bz2

2002-04-26 Thread Miguel Cruz
On Sat, 27 Apr 2002, r wrote: > I dont know how to open the .bz2 file which i downloaded from php.net > It does not open with winzip or the tar/rar programs...how do i open it? You need a program called bunzip2 (companion to bzip2). I'm not sure whether there's a Windows version, but hopefully kn

Re: [PHP] Safe mode

2002-04-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ashley M. Kirchner) wrote: > Rasmus Lerdorf wrote: > > > You need to use php_admin_flag for safe_mode. > > And I suppose this page has an error on it then: > > http://www.php.net/manual/en/configuration.php > > Since it states ph

[PHP] Question on the ~= Operator ...

2002-04-26 Thread Red Wingate
Hi there, I actually wanna know if anybody knows whats the ~= used for. Can this Op be used to apply an regex on a string in a perl-like manner? --red -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Opening manual - .bz2

2002-04-26 Thread r
Greetings all, Special greetings to: one brainy dude -> Steve, and a REALLLY persistive dude->Michael Vernstein,Nathan,Uchendu,John Holmes for all help. This list really has some do gooders who take the time to help others.Thanks again guys. Anyway, This is my problem which will be no big deal t

[PHP] help needed with headers

2002-04-26 Thread Vins
I would like to create a text file that doesn't save to disk but askes me to save the file. like when i click on a zip file from a website, ie asks me to save the file to somewhere. how do i create the file and then tell my browser to ask the user to save the file somewhere ??? -- PHP Genera

Re: [PHP] good php editor for the mac

2002-04-26 Thread Jim Jagielski
At 12:14 PM -0600 4/26/02, Kevin Stone wrote: >I'm told, BBEdit for MacOSX is solid, although I haven't used it. I used to >work in BBEdit on OS9. It was the best PERL editors I've ever used. The >Mac's seamless integration with the interpretor is something that I really >miss. I was a diehard

[PHP] Counter ?

2002-04-26 Thread CMS
I am looking for a php counter, that can do this: ___ Total Visits: 8,585,230 Visits Today: 2,521 Today Date: Friday Jan 1, 2002 __ And the kicker, to have the ability to put this counter, on any page, to have it count that page sperate Thanks- Richard -- PHP General Mailing List (http:

Re: [PHP] session_register() twice?

2002-04-26 Thread Javier
I've got the index.php page that checks if there's a session created. If it is not, it creates a new one. I print the session_id; Then I go through a link to a login.php page there I print the session_id and its a different one. What could be the problem? Sascha Schumann wrote: > On Fri, 26 Ap

Re: [PHP] Safe mode

2002-04-26 Thread Ashley M. Kirchner
Rasmus Lerdorf wrote: > You need to use php_admin_flag for safe_mode. And I suppose this page has an error on it then: http://www.php.net/manual/en/configuration.php Since it states php_flag, not php_admin_flag... -- Example 3-2. Apache configuration example php_value inc

Re: [PHP] session_register() twice?

2002-04-26 Thread Sascha Schumann
On Fri, 26 Apr 2002, Javier wrote: > What happens if I call session_start() twice? > Does it creates another session? It does nothing. if (PS(session_status) != php_session_none) return; - Sascha Experience IRCG http://schumann.cx/

Re: [PHP] Re: getting session data

2002-04-26 Thread Sascha Schumann
On Fri, 26 Apr 2002, Javier wrote: > To access session variables you need to use > session_start() first. session_register implies _start(). This is more likely a result of a disabled register_globals. - Sascha Experience IRCG http://schuma

[PHP] session_register() twice?

2002-04-26 Thread Javier
What happens if I call session_start() twice? Does it creates another session? Cause something odd is going on with this simple script. if(!SesionActiva()){ -It checkes wether there an active session SesionCrear(); - It creates the session } /*SesionActivar();*/

[PHP] Re: getting session data

2002-04-26 Thread Javier
To access session variables you need to use session_start() first. Deval Parikh wrote: > hi, > IF I am using this code in one script... > > a.php > - > > $userip = $REMOTE_ADDR; > session_name("sessiontest"); > session_register("userip"); > > ?> > > so how can i use above session dat

Re: [PHP] getting session data

2002-04-26 Thread Rasmus Lerdorf
You forgot to do a session_start() in your a.php script. Also make sure register_globals is turned on. If it isn't, use $_SESSION['userip'] in b.php. -Rasmus On Fri, 26 Apr 2002, Deval Parikh wrote: > hi, > IF I am using this code in one script... > > a.php > - > > $userip = $REMOTE_

[PHP] getting session data

2002-04-26 Thread Deval Parikh
hi, IF I am using this code in one script... a.php - so how can i use above session data in another script...like this way..??? b.php - I can not got the result..please correct me. __ Do You Yahoo!? Yahoo! Games - play chess,

Re: [PHP] Safe mode

2002-04-26 Thread Rasmus Lerdorf
You need to use php_admin_flag for safe_mode. But I wouldn't expect any effect here since you defaulted it to On and in your httpd.conf you are turning it on... So what are you expecting to see different? -Rasmus On Fri, 26 Apr 2002, Ashley M. Kirchner wrote: > > On our server, PHP's comp

[PHP] Re: Safe mode

2002-04-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ashley M. Kirchner) wrote: > > php_value include_path ".:/usr/local/lib/php" > php_flag safe_mode On > php_flag magic_quotes_gpc Off > php_flag track_vars On > php_flag track_errors On > > > And the s

[PHP] Safe mode

2002-04-26 Thread Ashley M. Kirchner
On our server, PHP's compiled in Apache with --enable-safe-mode as well as the master php.ini file having safe_mode turned on. Does this override whatever's in an Apache configuration file? One of my vhosts has the following bit in it: php_value include_path ".:/usr/local/lib/ph

RE: [PHP] web application development question

2002-04-26 Thread Stuart Dallas
Almost all the databases I work with have a table called vars. This table consists of two fields, strkey and strval, both VARCHAR(255). I then have 2 functions defined in the global include file for the site called GetVar and SetVar. This solution works well for me. -- Stuart -Original Messa

[PHP] Re: web application development question

2002-04-26 Thread Michael Kimsal
Erik Price wrote: > mysql> SELECT * FROM material_multiplier; > ++ > | multiplier | > ++ > | 1.50 | > ++ > 1 row in set (0.00 sec) > > I suppose I could store a table with two columns, one being VARNAME the > other being VALUE, and pull this kind of stan

Re: [PHP] web application development question

2002-04-26 Thread Richard Baskett
You can still have it updateable by a client. Fopen that file read it, change the appropriate values and close it.. Voila! All done :) Rick "A good head and good heart are always a formidable combination. But when you add to that a literate tongue or pen, then you have something very special"

RE: [PHP] web application development question

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, SP wrote: > How about storing it in a database like you said with variable and value but > when you change a value then you write over your config.inc.php file with a > new one. So you get to change the value easily in a database and by using a > file you make your app faster

Re: [PHP] Variables not set

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 04:12 PM, Miguel Cruz wrote: > There is something called "global scope" which refers to all variables > created outside of any function or object. Variables with global scope > are > then available anywhere outside of a function or object. Is there a difference b

RE: [PHP] web application development question

2002-04-26 Thread SP
How about storing it in a database like you said with variable and value but when you change a value then you write over your config.inc.php file with a new one. So you get to change the value easily in a database and by using a file you make your app faster without any database access everytime.

Re: [PHP] web application development question

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Erik Price wrote: > although include files are great for storing data that will probably not > change (but are now in a convenient include file in case they have to > change), I was thinking of making this data updateable from within the > application. So that my employer,

Re: [PHP] web application development question

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 03:58 PM, Jason Wong wrote: >> For those of you who write web applications (in any language), what do >> you recommend as the best way to store arbitrary atomic data for the >> web >> application? in other words, data that doesn't really need to be >> stored >>

Re: [PHP] Variables not set

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Liam Gibbs wrote: > I have a problem with my variables not being set. I have a file I use > for constants and functions, structured like so: > > $this = "this"; > $that = "that"; > . > . > . > function this() { > $h = $this; > $i = $that; > } > > function that() { >

Re: [PHP] web application development question

2002-04-26 Thread Richard Baskett
By the way.. You can include a little script in your .htaccess file or your httpd.conf file so that it will not show .inc files just like it does for .ht files. That's a great idea for the $_CONF array.. That will help me keep some of my variables straight and where they come from :) Cheers! Ri

[PHP] Re: web application development question

2002-04-26 Thread Julio Nobrega Trabalhando
I let them in a database and a nice administration page so people can change. There are a lot of more information that you can store, such as last time of change, and previous values (so peopel can "rollback" them), who changed, description of the value, related to other values, and there always

RE: [PHP] web application development question

2002-04-26 Thread John Holmes
Agreed, this is how I would recommend you do it. I would be careful naming your include files with an .inc extension, though, since .inc isn't parsed by PHP and will be shown as plain text when pulled up in a web browser. I normally name them something like config.inc.php or database.inc.php, etc.

Re: [PHP] Sessions with register_globals = off

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 03:16 PM, Padraig Kitterick wrote: > This is annoying as everyhwhere I read about sessions, Im told that if > register_globals is off, I shouldnt use session_register(), all I need > to do > is: > > $HTTP_SESSION_VARS["myVar"] = $myVar; This is not what the docum

Re: [PHP] web application development question

2002-04-26 Thread Richard Baskett
I usually have an info.inc file that has all these variables that I might need to change. Then include it in the files that use those variables and if I ever need to change one of them I just change it in the include file and it updates everything that way.. Rick Beauty of whatever kind, in its

RE: [PHP] Sessions with register_globals = off

2002-04-26 Thread John Holmes
Make sure you are using session_start() on each page and you should be using $_SESSION["var"] = "value";, not $HTTP_SESSION_VARS... ---John Holmes... > -Original Message- > From: Padraig Kitterick [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 12:16 PM > To: [EMAIL PROTECTED]

Re: [PHP] web application development question

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 03:50, Erik Price wrote: > For those of you who write web applications (in any language), what do > you recommend as the best way to store arbitrary atomic data for the web > application? in other words, data that doesn't really need to be stored > in a relational databa

[PHP] web application development question

2002-04-26 Thread Erik Price
For those of you who write web applications (in any language), what do you recommend as the best way to store arbitrary atomic data for the web application? in other words, data that doesn't really need to be stored in a relational database, as it does not really relate to anything? In the ap

[PHP] Sessions with register_globals = off

2002-04-26 Thread Padraig Kitterick
Am in need of help or I will loose my sanity!!! Im runnin Php 4.1.2 with Apache 1.3.22 on Win32 with register_globals set to off. My script is as follows: If I check the cookie, its completely empty. Now if I change this to: the cookie now contains: myVar|s:9:"Something"; This is annoying a

Re: [PHP] Microsoft Word & PHP

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Vladislav Kulchitski wrote: > Can anybody help me with this problem? Basically, I have thousands of MS > Word documents. What I need to do is to design an interface that will > let you submit more of them into the database, and it should index all > these documents, like extra

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
Ha, Sorry wrong instance here, ya global or pass the vars to the function. -Original Message- From: Steve Bradwell [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:13 PM To: 'Liam Gibbs'; [EMAIL PROTECTED] Subject: RE: [PHP] Variables not set I'm pretty new to php but I think y

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
I'm pretty new to php but I think your this() function you need to say: $h = $$this; $i = $$that; which means the value of the var. Sorry if I'm wrong. -Steve -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:13 PM To: [EMAIL PROTECTED] Subje

Re: [PHP] Variables not set

2002-04-26 Thread Rasmus Lerdorf
Please read http://www.php.net/manual/en/language.variables.scope.php On Fri, 26 Apr 2002, Liam Gibbs wrote: > I have a problem with my variables not being set. I > have a file I use for constants and functions, > structured like so: > > $this = "this"; > $that = "that"; > . > . > . > function t

Re: [PHP] Variables not set

2002-04-26 Thread Pushkar Pradhan
On Fri, 26 Apr 2002, Liam Gibbs wrote: Shouldn't you be using GLOBAL to access $this, $that inside functions? > I have a problem with my variables not being set. I > have a file I use for constants and functions, > structured like so: > > $this = "this"; > $that = "that"; > . > . > . > function th

[PHP] Variables not set

2002-04-26 Thread Liam Gibbs
I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = "this"; $that = "that"; . . . function this() { $h = $this; $i = $that; } function that() { } Now, when I run this(), $this isn't set (even though it's above it

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
Great! It works fine. Thanks to Kevin, Erik, Miguel and all others who responded to this query since yesterday. I have $QUERY_STRING in my php 4.0.6. On Fri, 26 Apr 2002, Kevin Stone wrote: > Okay I'm beginning to understand. I don't think you have to use Javascript > in this situation you js

[PHP] Microsoft Word & PHP

2002-04-26 Thread Vladislav Kulchitski
Hi, Can anybody help me with this problem? Basically, I have thousands of MS Word documents. What I need to do is to design an interface that will let you submit more of them into the database, and it should index all these documents, like extract keywords. Is this possible at all via PHP? Also

Re: [PHP] good php editor for the mac

2002-04-26 Thread Jess Planck
BBEdit is by far one of the best basic text editors I have ever seen on any platform. I use 6.1 (waiting on for an upgrade), and it runs OK on 10.1.4. It would be great to see some tight PHP environment to work in, but I have yet to see it. All BBEdit needs is some sort of ProjectBuilder style

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-26 Thread Jim
Your problem doesn't have anything to do with PHP. The error says that libgd doesn't offer freetype support, so you need to get a more current version of gd. Regards, Jim Heffner >No idea, check your config.log and see why it is failing. > >On Thu, 25 Apr 2002, zhaoxd wrote: > >> >> Whate

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 02:15 PM, Pushkar Pradhan wrote: > Believe me I certainly don't want to ask a JS ques. here, I am reading > tutorials on the web! > I already accomplished reordering using PHP, I gave up on php since I > wasn't able to pass arrays betn. pages using header(). If yo

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Kevin Stone
Okay I'm beginning to understand. I don't think you have to use Javascript in this situation you jsut have to be a little clever about how you build your URL string. You can send an array through the URL by splitting up each value like this.. $url = 'http://www.domain.com/index.php?myarray[]='.

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
Believe me I certainly don't want to ask a JS ques. here, I am reading tutorials on the web! I already accomplished reordering using PHP, I gave up on php since I wasn't able to pass arrays betn. pages using header(). In PHP when user moves each element and submits up, down, top or bottom there is

RE: [PHP] Mail responders

2002-04-26 Thread Steve
< I'd like to send an email to something like [EMAIL PROTECTED] but have a < PHP script get the mail and operate on it... You might want to reference an article from the May issue of Sysadmin Magazine ( http://www.sysadminmag.com/ ) title 'Using Email to Perform UNIX System Monitoring and Cont

Re: [PHP] good php editor for the mac

2002-04-26 Thread Kevin Stone
I'm told, BBEdit for MacOSX is solid, although I haven't used it. I used to work in BBEdit on OS9. It was the best PERL editors I've ever used. The Mac's seamless integration with the interpretor is something that I really miss. But at the time the Mac did not support PHP so I was forced to Wi

Re: [PHP] good php editor for the mac

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 01:33 PM, Tom Beidler wrote: > Could someone suggest a good php editor for the mac? I'm currently using > Dreamweaver because I like the site management and a wysiwyg html > editor. > But otherwise it's a bummer because it doesn't support php. The ultimate Mac ed

Re: [PHP] good php editor for the mac

2002-04-26 Thread Richard Baskett
I would definitely use the Dreamweaver/BBEdit combination. Dreamweaver for your wysiwyg layout and then BBEdit for your hard core coding. BBEdit is the best programmers program out there. And Dreamweaver.. Well I hear they will be coming out with a new OS X version soon that will rock your sock

RE: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
Actually I was frustrated trying to redirect to a new page and not being able to pass the array along to the new page usign header(), I won't get the array in my new page. Also I thought JS would be faster since the client can submit after doing as many reorderings as he/she wants. > Is there any

RE: [PHP] passing authorization code

2002-04-26 Thread John Holmes
Place the .mov files outside of your web folders, and write a PHP file that'll control the outputting of them. You would link to the .php file just like you would a .mov file, but you have the PHP check for a session or something to verify that the user should be able to view the .mov file. If th

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Kevin Stone
This sounds susspiciously like a Javascript question to me. :) I wrote a PHP/Javascript system a while back that prints out an event calendar on a client page. The Javascript is copy&paste so you can have the calendar show up on any web page anywhere in the world. It works like this.. The Jav

Re: [PHP] passing authorization code

2002-04-26 Thread Mark Gallagher
wm wrote: > .htaccess file requires user and pass. > > anybody know how to pass this info with a script so that the user is > allowed into the directory? not in the url either. not > user:[EMAIL PROTECTED] > > needs to be transparent. > > the reason i want to do this is so that somebody can'

RE: [PHP] fsockopen

2002-04-26 Thread Vail, Warren
I haven't tried this, but why don't you just use fopen with a URL, especially if you don't what to have to deal with the http header. I would think that if you do the fsockopen to port 80, you will need to use the handshake protocol required by that server which involves the get/put http header

  1   2   >