RE: [PHP] sesson tutorials

2002-10-14 Thread Peter Houchin
Thanks to John Holmes Timothy Hitchens for your help after looking at what both of you said .. i found i had handled the sessions correctly but not the sql statement in my script and it was the sql out put that was causing nothing to be registered in my sessions. Cheers Peter -Original

RE: [PHP] OCIFetchInto: OCI8 problem

2002-10-14 Thread Faisal Abdullah
I added a little $counter in the while loop. The count shows 2. But why do I only get one value? Thanks, Faisal -Original Message- From: Faisal Abdullah [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 9:55 AM To: [EMAIL PROTECTED] Subject: [PHP] OCIFetchInto: OCI8 problem

[PHP] Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread Monty
For a form that allows people to upload image files to the server, I'd like to pop open a small browser window with an Uploading... message once someone clicks on Submit button. Then I'd like the window to automatically close once the process is done and the main browser window refreshes. Can

Re: [PHP] Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread @ Edwin
Hello, Just some ideas... First, I don't think you can pop open a small browser window with PHP--use Javascript. With Javascript you can define the size of the window AND you can make it disappear (after the main browser window refreshes) by using onBlur() then window.close() command. Of

[PHP] magic_quotes_gpc

2002-10-14 Thread Wilbert Enserink
Hi all, I have a quetion on magic_quotes_gpc. The php.ini file on my test servers shows that magic_quotes_gpc=On. The php.ini file on the production server shows that magic_quotes_gpc=Off. == I know this is a strange thing:-( So you guess what happened: all the scripts I have don't function

[PHP] Re: Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread Owen Prime
You will have to use mainly Javascript for this. What I have done in the past is: STEP 1. In the form tag put a onSubmit argument which does a window.open(). This should pop up a small window which you can use writeln() to add content to it. Like your 'Uploading...' message or an image. STEP

RE: [PHP] magic_quotes_gpc

2002-10-14 Thread John W. Holmes
If you're on apache, you can use an .htaccess file php_value magic_quotes_gpc 1 otherwise change it in php.ini or program for both settings... ---John Holmes... -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 3:40 AM To: [EMAIL

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-14 Thread John Negretti
Jason, What is the difference? Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday 14 October 2002 08:36, John Negretti wrote: Marco, I was reading that there were some security risks with register-globals. Is this the same thing

[PHP] Re: Launching a Browser Win with PHP - Is it possible?

2002-10-14 Thread Owen Prime
Sorry, that should be window.opener.location.reload() instead of refresh(). Owen Prime wrote: You will have to use mainly Javascript for this. What I have done in the past is: STEP 1. In the form tag put a onSubmit argument which does a window.open(). This should pop up a small window

[PHP] file_exists for URLs

2002-10-14 Thread Adrian Slusarczyk
Hi, I'm kinda new to PHP and have the following problem: In a function, I want to verify whether a file exists before I go on, and if it doesn´t, return false and stop right there. So I tried if(!file_exists($my_file)) { return false; exit; } But since $my_file is a URL, it doesn´t work. Does

[PHP] Re: file_exists for URLs

2002-10-14 Thread Owen Prime
Have a look at the fopen() function in the FileSystem Function section of the Docs. fopen() can open a file over http:// and I imagine it returns FALSE if it cant open it. If it doesn't return false, you could analyse the headers in $http_response_header. Hope this helps. Cheers, Owen Prime

[PHP] chmod - some files can be viewed, others cannot

2002-10-14 Thread Phil Powell
I have a directory $DOCUMENT_ROOT/my/images, permission 0755 I have three images in my folder with the exact same permissions: 0755; same ownership, same everything. The files, viewed on my machine, are fine too. However, two cannot be seen due to permissions errors; one can be seen. All

[PHP] php, java and ssl

2002-10-14 Thread A3-Mail Proxy Handler
Hi, I have a java class which uses ssl to perform some banking operations. As I have been instructed, I downloaded certificates, classes (both jar files and class files) and installed them. While testing from console, class established ssl connection to remote host and completed transaction.

Re: [PHP] magic_quotes_gpc

2002-10-14 Thread W. Enserink
Hi John, that sounds like a great solution for me!! thanx. Can you tell me a bit more about this solution. Can I just place the htaccess file in the root of my site? And do I have to include this file in my php scripts? thx .alot. Wilbert - Original Message - From: John W. Holmes

Re: [PHP] Re: php cgi question

2002-10-14 Thread David Cook
Okies, FINALLY I think I have the reason (though not the solution as yet) Marco, you were spot on, which I hadn't pursued properly, only looking at the immediate parent directory permissions. In fact the whole ~vpopmail structure down to the individual users directory has a VERY restrictive set

[PHP] Regular Expression (for ereg(i))

2002-10-14 Thread Ns_Andy
if I want eregi to return false if the string contains char, for example, AB //false will be returned. what's the reg expression I can use? -- Regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-14 Thread Sascha Cunz
http://localhost/test.php?var=5 results in (global scope) $var = 5; // Register globals on $HTTP_GET_VARS['var'] = 5; // Always (?) $_GET['var'] = 5; // With newer versions of PHP To access this from a function: function x() { global $var; globsl $HTTP_GET_VARS; echo $var.'BR';

Re: [PHP] Regular Expression (for ereg(i))

2002-10-14 Thread Steel
Hi Ns_Andy, Monday, October 14, 2002, 1:27:06 PM, I've got: N if I want eregi to return false if the string contains char, N for example, N AB //false will be returned. N what's the reg expression I can use? eregi will return false if there is no such expression; For Your example it will be:

Re: [PHP] Re: How to navigate backwards in PHP ???

2002-10-14 Thread Krzysztof Dziekiewicz
$HTTP_SERVER_VARS[HTTP_REFERER]; - or - PHP 4.1.0 and later $_SERVER[HTTP_REFERER]; Not as reliable as passing it yourself though. Some browsers may block sending http_referer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP caching ideas?

2002-10-14 Thread Krzysztof Dziekiewicz
Is the general logic to slice the page into some general pieces. For example ones that have always general data and those that change. Then the ones that don't change are streamed to the user using passthrough and the rest of the page is generated dynamically with the newest relevant data.

[PHP] outgoing mail function freezing problem

2002-10-14 Thread scott
Hello there Thanks for all with the help yesterday My mail function is sending out a few hundred or so mail address but keeps hanging when it gets to sending a mail form a certain domain. As the script hangs at this point I can't send anymore mails once the script encounters an address from x

[PHP] Re: Compiling PHP against net-snmp 5.0.6

2002-10-14 Thread Harrie Hazewinkel
Hi all, I made an error in the URL for the patch. It is http://www.lisanza.net/php-snmp/php-netsnmp.patch.txt Sorry, Harrie --On Monday, October 14, 2002 8:01 AM +0200 Harrie Hazewinkel [EMAIL PROTECTED] wrote: Hi, I have made a patch some time ago to have the old ucd-snmp and the new

[PHP] Register Globals

2002-10-14 Thread Phil Ewington
Hi, I have just upgraded PHP to 4.2.3 and have found that register_globals defaults to 'off'. I have changed this setting in the php.ini file, yet phpinfo() still shows register_globals = 'off' and my scripts that rely on this setting are failing. The file I edited was /etc/httpd/php.ini, so why

Re: [PHP] Register Globals

2002-10-14 Thread Timothy Hitchens
What is the name of the file that is registered in your phpinfo().. eg is that the path and name of the config?? Also have you restarted your webserver?? Phil Ewington wrote: Hi, I have just upgraded PHP to 4.2.3 and have found that register_globals defaults to 'off'. I have changed this

[PHP] What's wrong with my regular expression?

2002-10-14 Thread Ns_Andy
$line = 'a href=http://www.yahoo.com;http://www.yahoo.com/a'; if (eregi(a[ ]+(.*[ ]+)?href=([\'])?([^\'])+([\'])?[^]+\/a[ ]*,$line,$matches)) { print (htmlspecialchars($matches[0])); } it works fine, however if $line .= 'Xa href=http:/www.php.netwww.php.net/a'; is added before eregi, it

[PHP] simple question

2002-10-14 Thread Jean-François Marseaut
Where can I found last version of the GD library ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] simple question

2002-10-14 Thread Jon Haworth
Hi, Where can I found last version of the GD library ? http://www.boutell.com/gd/ HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple question

2002-10-14 Thread Timothy Hitchens
http://www.boutell.com/gd/http/ is a good start!! Jean-François Marseaut wrote: Where can I found last version of the GD library ? -- Timothy Hitchens Technologist / Entrepreneur e-mail: [EMAIL PROTECTED] mobile: 0419 521 440 - HiTCHO Group

RE: [PHP] simple question

2002-10-14 Thread Simon Taylor
http://www.boutell.com/gd/ -Original Message- From: Jean-François Marseaut [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 13:51 To: [EMAIL PROTECTED] Subject: [PHP] simple question Where can I found last version of the GD library ? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] What's wrong with my regular expression?

2002-10-14 Thread Marco Tabini
If you want to match more than one occurrence of the same pattern, you must use preg_match_all with Perl syntax. The matches will be returned as an array of arrays (that is, an array that contains the result of a normal ereg call for each match found): $line = 'a

php-general Digest 14 Oct 2002 12:16:21 -0000 Issue 1643

2002-10-14 Thread php-general-digest-help
php-general Digest 14 Oct 2002 12:16:21 - Issue 1643 Topics (messages 119820 through 119870): Re: $HTTP_GET_VARS within a function ?? 119820 by: John Negretti 119839 by: Jason Wong 119848 by: John Negretti 119857 by: Sascha Cunz Detecting GD version

Re: [PHP] What's wrong with my regular expression?

2002-10-14 Thread Ns_Andy
Since I don't know perl,I use ereg instead. but ,thanks. -- Regards, Marco Tabini [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you want to match more than one occurrence of the same pattern, you must use preg_match_all with Perl syntax. The matches will

[PHP] [PATCH] NET-SNMP, PHP and SNMPv3

2002-10-14 Thread Harrie Hazewinkel
HI all, Sorry for the cross posting, but I have seen comments regarding netsnmp and php on these lists and I am not sure if all are on all mailiglists. Again sorry. At the URL: http://www.lisanza.net/php-snmp/php-netsnmpv3.patch.txt one can find a patch that would add SNMPv3 support to the

[PHP] Inserting special characters into text fields

2002-10-14 Thread Phil Schwarzmann
I need users to be able to insert special characters (ö and ä) into a text field. Unfortunately, English-speaking people do not have these keys on their keyboards. Currently, they are cutting and pasting these characters into the text boxes. I believe ASP can insert characters into text

Re: [PHP] What's wrong with my regular expression?

2002-10-14 Thread Marco Tabini
Yep, but the problem is that ereg doesn't return more than one match, so you've got to use preg_match_all (I think). The snippet I sent you should work (at least, it does on my system). On Mon, 2002-10-14 at 08:22, Ns_Andy wrote: Since I don't know perl,I use ereg instead. but ,thanks.

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Marco Tabini
That's client side, so it doesn't really matter what server-side scripting language you use. You could write a javascript script that inserts a value into a field: script language=javascript function insertval(field, value) { document.all(field).value = document.all(field).value +

Re: [PHP] Re: Odd Problem

2002-10-14 Thread Stephen
Here's one of the SQL's I'm running. All the rest are the same except they each insert to different tables... $insertSQL = sprintf(INSERT INTO friday (`date`, employee, reg, over, vac, hol, sick, funer, edu, per, comp) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s),

Re: [PHP] outgoing mail function freezing problem

2002-10-14 Thread Chris Hewitt
scott wrote: My mail function is sending out a few hundred or so mail address but keeps hanging when it gets to sending a mail form a certain domain. Probably DNS. Try doing a dig thedomain.com (assuming linux) on the domain it is going to. I suspect there is not an entry thus it will hang

[PHP] IRCG on Windows

2002-10-14 Thread Sascha Schumann
The IRCG installation script[1] has been updated and should work in Cygwin[2] now. Note that you need a recent PHP checkout/snapshot which includes a Cygwin-specific patch for a successful thttpd build. The install script automatically applies a patch by [EMAIL

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Chris Hewitt
Phil Schwarzmann wrote: I need users to be able to insert special characters (ö and ä) into a text field. Unfortunately, English-speaking people do not have these keys on their keyboards. Currently, they are cutting and pasting these characters into the text boxes. I believe ASP can insert

[PHP] Argh! nulls un stuff..

2002-10-14 Thread Francis
ok going mad all I need to do is check a variable and if it has a number in it then do something, so anything from 0 up, but it keeps thinking 0 is null and failing, anyway around this? or am I just being stupid as usual? $_SESSION[temp] = 0; $tempVar = 0; if($_SESSION[temp] !=){ echo !=

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Marco Tabini
Well, in Linux (if you're using X) we have key bindings and dead keys, that allow you to create combinations of keypresses that are translated into special characters. For example, since I sometimes write in Italian and need accented letters, I have programmed my X so that if I press the left

Re: [PHP] Argh! nulls un stuff..

2002-10-14 Thread Maxim Maletsky
$var = 0; if(!is_int($var)) { echo '$var isn\'t numeric'; } and simple 'not' is going to ignore '0'. To check wherther a value is an integer use is_int() or is_numeric(), which are the same things anyway. If you care that the value is also higher than '0' add [ and $var0] as the

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Maxim Maletsky
On Mon, 14 Oct 2002 14:25:09 +0100 Chris Hewitt [EMAIL PROTECTED] wrote: Phil Schwarzmann wrote: I need users to be able to insert special characters (ö and ä) into a text field. Unfortunately, English-speaking people do not have these keys on their keyboards. Currently, they are

Re: [PHP] PHP caching ideas?

2002-10-14 Thread Maxim Maletsky
The most efficient way would be to cache the heaviest parts of the scripts. Such parts are database connections and its queries, templates rendering and any other things like XML, large data loops etc.. What I would suggest is to modulate your application logic by sections of different

Re: [PHP] Re: How to navigate backwards in PHP ???

2002-10-14 Thread Maxim Maletsky
some browsers do not even support it. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Mon, 14 Oct 2002 11:56:30 +0200 Krzysztof Dziekiewicz [EMAIL PROTECTED] wrote: $HTTP_SERVER_VARS[HTTP_REFERER]; - or - PHP 4.1.0 and later $_SERVER[HTTP_REFERER];

Re: [PHP] php, java and ssl

2002-10-14 Thread Maxim Maletsky
You might want to submit it as a bug report in bugs.php.net. PLeasee add to it the more detailed instructions. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Mon, 14 Oct 2002 11:11:23 +0300 A3-Mail Proxy Handler [EMAIL PROTECTED] wrote: Hi, I have a

[PHP] JFreeChart lib

2002-10-14 Thread Mahmut Kursun
I wonder if there is anybody who implemented JFreeChart object http://www.object-refinery.com/jfreechart/ which seems to be a quite powerful lib, with php. This lib seesm to be powerful, and seems to be gpl but unfortunately the documentation costs you about 30$, which is unbelivable:) So

[PHP] Session cleanup

2002-10-14 Thread ed
I was wondering why a session doesn't automatically get cleaned up after the maximum life time? Default to 1440 (24 min) session is still there until I start a new session then it disappears. Is there a simple script to run via cron to clean up old sessions? TIA, Ed -- PHP General Mailing

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread @ Edwin
Hello, On Monday, October 14, 2002 10:44 PM Maxim Maletsky wrote: [snip] ALT key? I don't think so. The only way to type other language's characters is by switch the keyboard layout (ALT-SHIFT, usually) so your keyboard inputs the ASCII mapped to your keys. That's the only way. And,

Re: [PHP] sesson tutorials

2002-10-14 Thread Maxim Maletsky
Try also looking at PHPBeginner (www.phpb.com). On Mon, 14 Oct 2002 12:47:45 +1000 Peter Houchin [EMAIL PROTECTED] wrote: howdy does any one know where i can view an uptodate session tutorial? so far I have not found any that are up todate. Cheers Peter the only dumb question is

RE: [PHP] JFreeChart lib

2002-10-14 Thread Jay Blanchard
[snip] I wonder if there is anybody who implemented JFreeChart object http://www.object-refinery.com/jfreechart/ which seems to be a quite powerful lib, with php. This lib seesm to be powerful, and seems to be gpl but unfortunately the documentation costs you about 30$, which is unbelivable:)

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Maxim Maletsky
how true! I didn't know... my Windows usage sucks :) Cheers, Maxim Maletsky ZoomStats - the power behind Web Analysis On Mon, 14 Oct 2002 23:07:53 +0900 @ Edwin [EMAIL PROTECTED] wrote: Hello, On Monday, October 14, 2002 10:44 PM Maxim Maletsky wrote: [snip] ALT key? I don't think

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 14 October 2002 09:44 am, Maxim Maletsky scribbled: On Mon, 14 Oct 2002 14:25:09 +0100 Chris Hewitt [EMAIL PROTECTED] wrote: Phil Schwarzmann wrote: I need users to be able to insert special characters (ö and ä) into a text field.

[PHP] Newbie / Table Output

2002-10-14 Thread Anthony Ritter
I'm trying to output a table with rows that have size 1 borders from the URL listed below using the file() and count() functions. Any assistance would be greatly appreciated. Thank you. Tony Ritter ? function getWeather($weatherdata) {

Re: [PHP] Simple HTML-Form Question

2002-10-14 Thread Maxim Maletsky
Has there changed something in PHP-Coding since I've learned it a few years before? Since PHP v4.1.0 you access $name as $_GET['name'], unless you change register_globals in php.ini to 'on' so it gets to how it used to be before. There seems to be a diffrence between clicking the send button

RE: [PHP] Argh! nulls un stuff..

2002-10-14 Thread Matt Giddings
if( !empty($_SESSION[temp]) is_numeric($_SESSION[temp]) $_SESSION[temp] = 0 ) { ... } Something like this may work, first check to see if its not empty, then numeric, then if its greater than or equal to 0. If all three conditions are true then it'll execute the ... block. Please note that

Re: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-14 Thread Maxim Maletsky
Don't try using PHP for sending mass-mails. You'd better use some other C/Phyton/Perl apps for that. Just manage the start of this process via PHP. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Sun, 13 Oct 2002 19:06:01 +0100 scott [EMAIL PROTECTED] wrote:

Re: [PHP] How to access MS ACCESS's database files

2002-10-14 Thread Maxim Maletsky
You should use ODBC extension of PHP for accessing MS ACCESS. Look at: http://www.php.net/manual/en/ref.odbc.php -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Mon, 14 Oct 2002 01:21:54 +0800 php [EMAIL PROTECTED] wrote: By Using mssql_command???

[PHP] mt_rand doesn't seem random enough

2002-10-14 Thread Phil Schwarzmann
Maybe I'm wrong on this but mt_rand doesn't seem to be random enough. I'm on a PHP 4.04 server and here's my code.. function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 10); } mt_srand(make_seed()); $randval = mt_rand(); I

Re: [PHP] JFreeChart lib

2002-10-14 Thread Mahmut Kursun
Thanks a lot But unfortunately one can not obtain stock charts, i.e HLC graphs with Jpgraph, that is why I look after JfreeChart. Mahmut Jay Blanchard wrote: [snip] I wonder if there is anybody who implemented JFreeChart object http://www.object-refinery.com/jfreechart/ which seems to be

Re: [PHP] People who searched this also searched this!

2002-10-14 Thread Maxim Maletsky
Gezz... This REALLY depends on your database design. You might want to track item IDs and then store them together. There is a bit of logic play on this one though.. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Sun, 13 Oct 2002 18:15:16 +0100 Randum Ian

[PHP] hhhhhhelp

2002-10-14 Thread Russ Peters
Hi ! I hope you can help? I’ve installed Apache on my Win 2000 machine and farley happy that works but just cant get PHP to work. I followed all of the instructions and well don’t know what to do next! Tied doing this several times and the scripts are just there for all to see on the web

[PHP] __file__ and __line__

2002-10-14 Thread Ns_Andy
what's its use and how to use(Example)? Thanks -- Regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] global AND Register Globals with PHP 4.0.6 ??

2002-10-14 Thread Negretti, John (CCI-San Diego)
Hello, I need to access the $HTTP_GET_VARS and $HTTP_COOKIE_VARS arrays within a function. In order to do this I have to pass $HTTP_GET_VARS as a parameter of the function. How can I access these built-in arrays without passing it as a function parameter. Should I define them as a

Re: [PHP] global AND Register Globals with PHP 4.0.6 ??

2002-10-14 Thread Sascha Cunz
Am Montag, 14. Oktober 2002 16:51 schrieb Negretti, John (CCI-San Diego): Hello, I need to access the $HTTP_GET_VARS and $HTTP_COOKIE_VARS arrays within a function. In order to do this I have to pass $HTTP_GET_VARS as a parameter of the function. How can I access these built-in

Re: [PHP] PHP caching ideas?

2002-10-14 Thread olinux
Smarty template will allow you to cache certain pieces. http://smarty.php.net olinux --- Krzysztof Dziekiewicz [EMAIL PROTECTED] wrote: Is the general logic to slice the page into some general pieces. For example ones that have always general data and those that change. Then the ones

RE: [PHP] global AND Register Globals with PHP 4.0.6 ??

2002-10-14 Thread Negretti, John (CCI-San Diego)
What is the difference? I can't seem to find documentation. Thanks. John Negretti Web Applications Developer Cox Communications www.cox.com (619) 266-5565 -Original Message- From: Sascha Cunz [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 8:06 AM To: Negretti, John

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Chris Hewitt
Maxim Maletsky wrote: ALT key? I don't think so. In MS Windows, e.g hold down the Alt key, on the numeric keypad press 156 then let go of the Alt key and you have the British pound sign (£). This is with the UK keyboard layout. Its been there since the days of DOS and works for all ASCII

RE: [PHP] global AND Register Globals with PHP 4.0.6 ??

2002-10-14 Thread Johnson, Kirk
register_globals() adds a variable to the *session*. The global statement brings a global variable into the *scope* of a function. Kirk What is the difference? variable. I read that register globals has some security issues. Are these the same, or is setting a variable as global

Re: [PHP] PHP caching ideas?

2002-10-14 Thread Maxim Maletsky
Though, I would not reccomend it to you as your caching mechanism. Only for when you are actually using Smarty.. which is still makes no much sence since Smarty is saving the compiled version of your file. Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Mon, 14

RE: [PHP] __file__ and __line__

2002-10-14 Thread John W. Holmes
what's its use and how to use(Example)? Thanks -- Regards, echo Maybe you should fine a . __FILE__ . and . __LINE__. from the manual???; ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session cleanup

2002-10-14 Thread John W. Holmes
I was wondering why a session doesn't automatically get cleaned up after the maximum life time? Default to 1440 (24 min) session is still there until I start a new session then it disappears. Is there a simple script to run via cron to clean up old sessions? That's how garbage cleanup works.

[PHP] $_SESSION for language settings?!

2002-10-14 Thread Bsantos PHP
Hi there! This is some kind my experience: Here's the picture. I've made a simple PHP based Website. Now I hould like to expand it to spanish language. All of the text that appears on the website in divided by categories, each one of them set as a variable. All this stuff is in a file

RE: [PHP] Regular Expression (for ereg(i))

2002-10-14 Thread John W. Holmes
if(ereg(,$string)) { echo bad string; } else { echo good string; } If you're trying to do some HTML filtering, there are better ways to do it. ---John Holmes... -Original Message- From: Ns_Andy [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 5:27 AM To: [EMAIL PROTECTED]

RE: [PHP] magic_quotes_gpc

2002-10-14 Thread John W. Holmes
Just make a file named .htaccess with just the following line in it and place it in the top of your web root (or in a sub-dir if you only want it to affect those files). php_value magic_quotes_gpc 1 That's it. Or you can just change the value in php.ini on your production server. ---John

RE: [PHP] Re: Odd Problem

2002-10-14 Thread John W. Holmes
If that's really the query you're running, and if that's really the error from this query, then table 'friday' does not have a column 'employee'. It's plain and simple. If you do have a table Friday, and it does have a column employee, then either 1. This isn't really the query you're running.

Re: [PHP] $_SESSION for language settings?!

2002-10-14 Thread Marek Kilimajer
try something like this: if($_GET['newlang']) { switch($_GET['newlang']){ case 'spanish': $_SESSION['lang'] = contents_sp.php; break; case 'english': $_SESSION['lang'] = contents_en.php; break; } elseif

RE: [PHP] hhhhhhelp

2002-10-14 Thread Jon Haworth
Hi Russ, I've installed Apache on my Win 2000 machine and farley happy that works but just cant get PHP to work. Fairly happy or absolutely happy? If, when you surf to http://127.0.0.1/, you don't see Apache's welcome message (or whatever page you've put there), it isn't working. I

Re: [PHP] Newbie / Table Output

2002-10-14 Thread Marek Kilimajer
first thing: trtdcell content/tdtr second: - make sure you have opened the file successfully: $content=file($weatherdata) or die('cannot open'); Anthony Ritter wrote: I'm trying to output a table with rows that have size 1 borders from the URL listed below using the file() and

Re: [PHP] $_SESSION for language settings?!

2002-10-14 Thread Bsantos PHP
Not realy understanding this: then, somewhere on the page, add language links $_SERVER['PHP_SELF'] . $_SERVER['QUERY_STRING']. ($_SERVER['QUERY_STRING'] ? 'newlang=sp' : '?newlang=sp') $_SERVER['PHP_SELF'] . $_SERVER['QUERY_STRING']. ($_SERVER['QUERY_STRING'] ? 'newlang=en' : '?newlang=en')

[PHP] read registry

2002-10-14 Thread franky
hi. I want to acces (read) the registry on my web server. I use win2k. I try with COM... but doesn't work... Somebody know if it is possible? thanks! Franky [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION for language settings?!

2002-10-14 Thread Marek Kilimajer
that will make a link to the page you user is just viewing, only adding '?newlang=SOMETHIG' if there is no query string (no get variables) or '?newlang=SOMETHIG' if there a query string. /index.php will become /index.php?newlang=en /modules.php?name=News will become

Re: [PHP] read registry

2002-10-14 Thread Maxim Maletsky
not very sure how to do that, but perhaps you could use system commands like: echo `command_to_show_registry`; try it... -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Mon, 14 Oct 2002 12:39:37 -0400 franky [EMAIL PROTECTED] wrote: hi. I want to acces

[PHP] weird IE cookie problem

2002-10-14 Thread Javier Montserat
Hi I've successfully been using the following code to set cookies in IE / NS / Mozilla. I've just bought a new laptop and in IE 5.5 and 6 the cookies are not being set by my site. Other sites (msn etc) set cookies fine. I've installed Mozilla and this accepts cookies fine. WTF is wrong

RE: [PHP] Argh! nulls un stuff..

2002-10-14 Thread Sam Masiello
How about something like this: if ($_SESSION[temp] 0) ? Or if you want to be really sure: if ($_SESSION[temp] 0 $_SESSION[temp] != ) ORif you want to be sure the value is a number as well: if ($_SESSION[temp] 0 $_SESSION[temp] != is_numeric($_SESSION[temp]) HTH Sam Masiello

Re: [PHP] Argh! nulls un stuff..

2002-10-14 Thread Jason Young
My suggestion would be to checck for isset($_SESSION[temp]) and if ($_SESSION[temp] 0) with quotes .. PHP is very forgiving with data types, and I've found its much easier to keep track of what exactly is going on if I reference everything in a string format. -Jason Sam Masiello wrote:

Re: [PHP] weird IE cookie problem

2002-10-14 Thread Marco Tabini
Is the time set properly on your machine? Double check both the time AND the timezone. I went nuts trying to fix a similar problem once just to find out that someone had changed the timezone on the PC for a test and then forgot to put it back. On Mon, 2002-10-14 at 13:25, Javier Montserat

Re: [PHP] weird IE cookie problem

2002-10-14 Thread Javier Montserat
ahhh. a combination of incorrect timezone on my new laptop and the server time being slightly out was causing my head a lot of pain... thanks for the pointer, Jav From: Marco Tabini [EMAIL PROTECTED] To: Javier Montserat [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] weird IE

[PHP] Need experienced PHP programmer ASAP

2002-10-14 Thread Michael Plasse
We need an experienced PHP programmers to help fix some bugs as well as create custom scripts for our children's website. We need someone asap. Please reply to [EMAIL PROTECTED] Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Pass vars in URL

2002-10-14 Thread Gary
Hello, My host has upgraded to 4.2 but still uses the old ini setting. I am trying to rewrite my scripts so when the day comes for my host to make the change I will be ready. Everything has been going well till now. I have been passing an id through a url string. Now when I try to pass the

[PHP] php mail()

2002-10-14 Thread Rodrigo Peres
Hi list, I trying to send mail using PHP's mail() function without success. My email is rejected because it goes with apache@localhost. I've tried everything put a diferent from in header etc. Does anyone have a clue My system is a RedHAT 7, PHP4.2.3, sendmail thank's n advance -- --

Re: [PHP] Pass vars in URL

2002-10-14 Thread Brad Bonkoski
How about a code snippet of how you are retrieving the variable? -Brad Gary wrote: Hello, My host has upgraded to 4.2 but still uses the old ini setting. I am trying to rewrite my scripts so when the day comes for my host to make the change I will be ready. Everything has been going well

RE: [PHP] php mail()

2002-10-14 Thread John W. Holmes
Hi list, I trying to send mail using PHP's mail() function without success. My email is rejected because it goes with apache@localhost. I've tried everything put a diferent from in header etc. Does anyone have a clue My system is a RedHAT 7, PHP4.2.3, sendmail thank's n advance

Re: [PHP] Pass vars in URL

2002-10-14 Thread Gary
There is not real code to catch it. It is passed to a hidden field in a form, echoing the id number and then a query based on id. Very simple and has worked form php3 through 4.06. That is why I was wondering if I had something turned off in the ini for 4.2.3. The links form the other page

RE: [PHP] php mail()

2002-10-14 Thread Brad Dameron
Hey do you guys know how to correct this problem with sending email? A custumer uses mail() to send the email and it isn't deliverable. So the message bounces. But since the local sendmail sent the email it thus bounces to root's mailbox instead of say the replyto address. Anyone know how to

RE: [PHP] php mail()

2002-10-14 Thread Marco Tabini
You'd have to make the user under which Apache runs a trusted user in Sendmail and then use the -f switch in the additional parameters section of the mail command. On Mon, 2002-10-14 at 15:44, Brad Dameron wrote: Hey do you guys know how to correct this problem with sending email? A

RE: [PHP] php mail()

2002-10-14 Thread John W. Holmes
Hey do you guys know how to correct this problem with sending email? A custumer uses mail() to send the email and it isn't deliverable. So the message bounces. But since the local sendmail sent the email it thus bounces to root's mailbox instead of say the replyto address. Anyone know how

RE: [PHP] php mail()

2002-10-14 Thread Brad Dameron
This is being done. And no that is not how sendmail works unfortunately. --- Brad Dameron Network Account Executive TSCNet Inc. www.tscnet.com

Re: [PHP] Pass vars in URL

2002-10-14 Thread Brad Bonkoski
probably register globals is turned off in php.ini for the new PHP version instead of: echo $id; -try- echo $_SERVER['id']; -Brad Gary wrote: There is not real code to catch it. It is passed to a hidden field in a form, echoing the id number and then a query based on id. Very simple

  1   2   >