[PHP] Am I dreaming or what :)

2003-09-04 Thread John Taylor-Johnston
I have a directory jammed-packed with images. I want to read the directory contents /www/usr/htm/images/ and display randomly any *.gif or *.jpg in said directory. Do-able? Seriously? Ideas? Places to start? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] cookie crumbles

2003-09-04 Thread John Taylor-Johnston
As it turned out, all I had to do was get rid of the period . and things began to work better. I also had to remember to close my browser and empty the cookie jar. Thanks, J Jaap Van Ganswijk wrote: At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote: I create this cookie, using

Re: [PHP] Am I dreaming or what :)

2003-09-04 Thread Raditha Dissanayake
this is in fact pretty easy. this should get you started [code] $files = split(\n,`ls *gif`); srand((double)microtime()*100); $num = rand(0, count($files)); echo $num = $files[$num]; [/code] John Taylor-Johnston wrote: I have a directory jammed-packed with images. I want to

[PHP] Uploading files via SSH

2003-09-04 Thread Ben C.
This is not a PHP question but didn't know where else to ask it. I am uploading files via SSH Secure File Transfer and am getting the following error message. --error message start-- Failed to scan directories. Error 6: C:/Documents and Settings/My Documents/My Webs/dynamic/1.php: No such file

Re: [PHP] Am I dreaming or what :)

2003-09-04 Thread Evan Nemerson
Watch out for line wraps. ?php /* I wrote this for private use, so don't be suprised if it sucks. */ $DIRECTORY = '/path/to/images'; $PATH_ROOT = $DIRECTORY; // Kind of a document root for this script. if ( isset($_SERVER['PATH_INFO']) file_exists($DIRECTORY.$_SERVER['PATH_INFO'])

Re: [PHP] Uploading files via SSH

2003-09-04 Thread Evan Nemerson
Google for Failed to scan directories. Error 6 (including quotes). First result is the ssh.com faq, which has a link to http://www.ssh.com/support/faq/secureshell/qa_1_1198.html, which is your answer On Wednesday 03 September 2003 11:39 pm, Ben C. wrote: This is not a PHP question but didn't

RE: [PHP] Am I dreaming or what :)

2003-09-04 Thread Dynamical.biz
this is the way I do if helps //FILES IN DIR TO ARRAY $imgdir = user/home/; $lista_imgs = array(); $handle = opendir($imgdir); while ($file = readdir($handle)) {if ($file != . $file != ..) {array_push ($lista_imgs, $file);}} closedir($handle); // RANDOM IMG $rdnum = rand(0, count($lista_imgs) -

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Christophe Chisogne
hecchan wrote: Using IE 6 (XP) i can't see the source generated for PHP even the page works properly (It doesn't happend with Mozilla or Opera). The View source in IE 5 and 6 is buggy : it doesnt work as soon as there are too many files in the Temp Internetfiles folder. sic. Solution is of course

Re: [PHP] Q on inhert class code

2003-09-04 Thread Evan Nemerson
It looks like you're trying to access a variable of a class, not an instance of that class. try something more like $authObj = new Auth; $session = Auth::_importGlobalVariable(session); $session[$authObj-_sessionName]['registered'] = true; I'm pretty sure php4 doesn't allow access to variables

Re: [PHP] Too Advanced? Re: Cookies Hidden Image

2003-09-04 Thread Marek Kilimajer
I don't accept third party cookies. Maybe your browser is set up so it does not too. Check the privacy security settings. Nicole wrote: The cookie is being accessed by the same domain it was generated by. The problem is, the script is being pulled up via a hidden image (which resides on a

[PHP] suggestion: recursive calls

2003-09-04 Thread Ronald van Raaphorst
Hi all, Not a real bug, but a suggestion: It would be nice if inifite recursive calls would somehow give an error. I spend quite some time to find the error in my php script. Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to include() N lines?

2003-09-04 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... hello! i need to include() only a given amount of lines (the first 10 for example) instead of a whole file. does someone know how this has to be done? thanks a lot for your effort, best regards include and friends only load a

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Marek Kilimajer
I don't think it is even possible, if the recursive calls don't seem infinite to inteligent human being, how should a stupid computer program find out. Ronald van Raaphorst wrote: Hi all, Not a real bug, but a suggestion: It would be nice if inifite recursive calls would somehow give an

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Ronald van Raaphorst
I normally program in clarion (www.softvelocity.com) and an infinite recursive call will cause a heap overflow... As I only got a This page cannot be displayed page, an error must have occurred, but it's not displayed... At first I thought I had lost contact with the site, but then, after a lot

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Marco Schuler
Hi Am Don, 2003-09-04 um 12.40 schrieb Ronald van Raaphorst: I normally program in clarion (www.softvelocity.com) and an infinite recursive call will cause a heap overflow... As I only got a This page cannot be displayed page, an error must have occurred, but it's not displayed... A

[PHP] mysql Pattern Matching

2003-09-04 Thread Ralph Guzman
I know this question is best for the mySQL mailing list, but I am unable to subscribe to their list at this moment so perhaps somebody here can help me out. I have a table with a field where amenities are listed together using a comma delimiter like: pool,spa,fitness-center To search this table

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Andrew Brampton
I was just testing PHP with this code: ?php function blah($varible) { if ($varible 860) exit(); echo $varible . 'br'; flush(); blah($varible + 1); } blah(1); ? This would show 1 to 860, however if I tried any number greater than 860, ie 861 then the page would give

RE: [PHP] mysql Pattern Matching

2003-09-04 Thread electroteque
i'm doin this offlist -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 10:23 PM To: PHP General Mailing List Subject: [PHP] mysql Pattern Matching I know this question is best for the mySQL mailing list, but I am unable to subscribe to

[PHP] is there a php version with curl already integrated?

2003-09-04 Thread Chris
hello, i must admit, i'm quite a nub when it comes to compiling php myself, so i'm wondering if there is any version of php with curl already bein part of it? i'm running xp with apache 1.3. cheers, chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] is there a php version with curl already integrated?

2003-09-04 Thread murugesan
Refer http://in2.php.net/curl -murugesan - Original Message - From: Chris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 04, 2003 5:02 PM Subject: [PHP] is there a php version with curl already integrated? hello, i must admit, i'm quite a nub when it comes to

[PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread ccj
Hi all Based on descriptions in /urlhowto.php -- Get it on your site, I tried to redirect GET/POST data to a third page, say, aaa.php --- error.php --- bbb.php aaa.php: form action=unknown.php method=GET error.php: ? $QSTRING = $_SERVER['REDIRECT_QUERY_STRING'] ;

php-general Digest 4 Sep 2003 13:20:42 -0000 Issue 2277

2003-09-04 Thread php-general-digest-help
php-general Digest 4 Sep 2003 13:20:42 - Issue 2277 Topics (messages 161606 through 161645): Session_start() corrupt HTML output with IE 161606 by: hecchan 161615 by: Viraj Kalinga Abayarathna 161621 by: Curt Zirzow 161623 by: Curt Zirzow 161632 by:

[PHP] Question regarding OOP and interitance

2003-09-04 Thread Webmaster
Good day, I would like to know a constructor function is also inherited to a child class. I mean the child class also needs to have a constructor function but it must have the same name as the class name. How does that work? Thank you very much. BW -- PHP General Mailing List

RE: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Jay Blanchard
[snip] I would like to know a constructor function is also inherited to a child class. I mean the child class also needs to have a constructor function but it must have the same name as the class name. How does that work? [/snip] FYI ... anything below PHP5 has a pseudo constructor. Since you are

[PHP] Passing objects as a reference and extracting the index of an associative array.

2003-09-04 Thread Webmaster
Hi, i am using the smarty template engine. Here is the problem that I would like to ask about: function initTop($page, $array) { for ($i=0; $isizeof($array) { $page-assignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is supposed to change. Do

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Jason Sheets
I wouldn't want to see a limit placed on recursion depth, IMHO it is the responsibility of the programmer to limit recursion not the language itself otherwise the language is limiting the programmer. Another possiblity is hitting the execution time limit, sounds like you are using IE with

[PHP] gettext i18n

2003-09-04 Thread Catalin Trifu
Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test code. As you can see I try all sorts of things. ?php echo putenv(LANG=de) . 'br'; echo putenv(LC_ALL=de) . 'br'; echo

Re: [PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread Jason Sheets
Hi ccj, GET data is passed in the URL, POST data is not so loss of the information would be expected. It sounds like you should use sessions, it is a better way of passing data between pages. Take a look at http://www.php.net/manual/en/ref.session.php Jason ccj wrote: Hi all Based on

[PHP] Setting register globals in http.conf

2003-09-04 Thread Chris Boget
I'm fairly new to apache so if I say something wrong, that's why. Anyways, I have my virtual host set up in my httpd.conf file as follows: VirtualHost * Port 80 DocumentRoot /blah/blah/blah ServerName www.register_globals_must_be_on.com php_value include_path .:/blah/blah/blah:/blah php_value

[PHP] Re: gettext i18n

2003-09-04 Thread Desi
Hello, Try: putenv(LANG=de_DE) . 'br'; putenv(LC_ALL=de_DE) . 'br'; setlocale(LC_ALL, de_DE, german) . 'br'; Desi Catalin Trifu wrote: Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test

[PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Hi, Thanks for the reply, but it doesn't work this way either. in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/ LC_MESSAGES/ messages.mo btw! on win32 it works :( Catalin Desi [EMAIL PROTECTED] wrote in message

[PHP] Re: gettext i18n

2003-09-04 Thread Desi
Send me your messages.po file, I try it... Gettext is cool, it works very well for me... Desi Catalin Trifu wrote: Hi, Thanks for the reply, but it doesn't work this way either. in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/

[PHP] cookies under php 4.06

2003-09-04 Thread Chris Kranz
okay, i know this is stupid, and i'm gonna kick myself when someone points out the obvious... i've just put a site online, and found the server's running an older version of php (4.06). it's virtual hosting, so i have no control over this... also can't tell you what OS it's running, but it is

[PHP] Re: cookies under php 4.06

2003-09-04 Thread Chris Kranz
setcookie(UserName, $HTTP_POST_VARS['UserName'], time()+(60*10), /, $HTTP_SERVER_VARS['SERVER_NAME']); setcookie(Password, $password, time()+(60*10), /, $HTTP_SERVER_VARS['SERVER_NAME']); print login - set cookie; sorry for kinda answering my own post... but anyway...

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Christophe Chisogne
Catalin Trifu wrote: Try: putenv(LANG=de_DE) . 'br'; putenv(LC_ALL=de_DE) . 'br'; setlocale(LC_ALL, de_DE, german) . 'br'; I would have done this: putenv(LANG=de_DE); putenv(LANGUAGE=de_DE); // better to be paranoid, works for me ;-) putenv(LC_ALL=de_DE); setlocale(LC_ALL, de_DE, german); (see

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Thank you! putenv(LANG=de_DE); putenv(LANGUAGE=de_DE); // better to be paranoid, works for me ;-) this one did the trick ! putenv(LC_ALL=de_DE); setlocale(LC_ALL, de_DE, german); (see some user comments in php manual) i already read the all before posting here :) Again

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Robert Cummings
I've accidentally had infinite recursion at times. Under Linux if configured, you can get a core dump which can be loaded in GDB to see the stack. I usually know Its infinite recursion when GDB shows a backtrack in the 10s of thousands. Cheers, Rob. On Thu, 2003-09-04 at 06:04, Ronald van

[PHP] Passing Objects between scripts and guarateeing that a language has been choosen.

2003-09-04 Thread Webmaster
Hi, I am just starting to understand how the session handling routines work in php. I can pass objects to other scripts. So I can put the language into the object that the visitor chose at the very first page. But what if a visitor bookmarked my homepage and comes back after a few weeks. How can

Re: [PHP] mysql Pattern Matching

2003-09-04 Thread CPT John W. Holmes
From: Ralph Guzman [EMAIL PROTECTED] I know this question is best for the mySQL mailing list, but I am unable to subscribe to their list at this moment so perhaps somebody here can help me out. I have a table with a field where amenities are listed together using a comma delimiter like:

Re: [PHP] mysql Pattern Matching

2003-09-04 Thread Duncan Hill
From: Ralph Guzman [EMAIL PROTECTED] I know this question is best for the mySQL mailing list, but I am unable to subscribe to their list at this moment so perhaps somebody here can help me out. I have a table with a field where amenities are listed together using a comma delimiter like:

[PHP] PHP

2003-09-04 Thread Jalene Joyner
I have a server running Redhat 7.3 and PHP version 4.1.2.###. I have a user that needs for me to load a version of PHP 4.2.1 or higher. What I want to know is this available for version 7.3 of Linux? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Passing Objects between scripts and guarateeing that a language has been choosen.

2003-09-04 Thread Matt Matijevich
[snip] How can I guarantee that a language is always choosen? I mean how is this done professionally? What do I have to write at the beginning of every page? [/snip] You have a bunch of options. on each page you could add something like this to everypage: if (!isset($_SESSION['language'])){

Re: [PHP] PHP

2003-09-04 Thread Chris Shiflett
--- Jalene Joyner [EMAIL PROTECTED] wrote: I have a user that needs for me to load a version of PHP 4.2.1 or higher. What I want to know is this available for version 7.3 of Linux? Yes, although I think you mean to say Red Hat or SuSe or something, as the latest test version of Linux is only

[PHP] -f function ???

2003-09-04 Thread Guillermo Scharffenorth
Hello, I am using a mailing list script which makes use of a function called -f, according to the developers of the script. The fact is that some functionality of the script is not working and the developers claim -f is turned off in my system. I've looked everywhere trying to find info about

[PHP] PHP eqivalent of 'smartypants', and other text educating for XHTML, etc

2003-09-04 Thread Justin French
Hi all, Does anyone know of a PHP-oriented tool that achieves some of / all of / more than the things that smartypants (http://daringfireball.net/projects/smartypants/) does? For those too lazy for the link, it does smart/curly quote replacement, and a bunch of other cool ASCII = HTML

[PHP] session.save_path is a big security hole!

2003-09-04 Thread Rx
Theres absolutely no control over session.save_path parameter in php. By setting it to every directory he wants, every user can: 1. (!!!) Absolutely easily generate new sessions with any content for every site on server. 2. Delete other users sessions by setting gc to 100 and probably legal files

[PHP] syntax error using header and SID

2003-09-04 Thread bob pilly
Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( Location: page2.php??echo strip_tags (SID)? ) but it isnt working for me and all the docs i can find just deal with tagging it to the end of a hyperlink. Any help would be

Re: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Decapode Azur
FYI ... anything below PHP5 has a pseudo constructor. And how will it be in PHP5 ? Since you are inheriting the class the 'constructor' for the parent class should work. If it doesn't (I have not tested it, and neither have you)then the class extension can contain a 'contstructor' that is

Re: [PHP] syntax error using header and SID

2003-09-04 Thread John W. Holmes
bob pilly wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( Location: page2.php??echo strip_tags (SID)? ) but it isnt working for me and all the docs i can find just deal with tagging it to the end of a hyperlink.

Re: [PHP] syntax error using header and SID

2003-09-04 Thread Chris Hayes
At 18:33 4-9-03, you wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( Location: page2.php??echo strip_tags (SID)? ) You are making a row of mistakes that suggest it is a good idea to read a bit on PHP syntax and how

Re: [PHP] Passing objects as a reference and extracting the index of an associative array.

2003-09-04 Thread John W. Holmes
Webmaster wrote: Hi, i am using the smarty template engine. Here is the problem that I would like to ask about: function initTop($page, $array) { for ($i=0; $isizeof($array) { $page-assignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is

[PHP] Front Page User Logout

2003-09-04 Thread John Welty
How can I provide a link which will log the current user out so that they will be prompted again to login. I'm using frontpage authentication on an apache server. I'm using PHP4 to build the pages. Thanks, --John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Passing Objects between scripts and guarateeing that a language has been choosen.

2003-09-04 Thread Curt Zirzow
* Thus wrote Webmaster ([EMAIL PROTECTED]): Hi, I am just starting to understand how the session handling routines work in php. I can pass objects to other scripts. So I can put the language into the object that the visitor chose at the very first page. But what if a visitor bookmarked my

Re: [PHP] -f function ???

2003-09-04 Thread Curt Zirzow
* Thus wrote Guillermo Scharffenorth ([EMAIL PROTECTED]): Hello, I am using a mailing list script which makes use of a function called -f, according to the developers of the script. The fact is that some functionality of the script is not working and the developers claim -f is turned off in

RE: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Jay Blanchard
[snip] FYI ... anything below PHP5 has a pseudo constructor. And how will it be in PHP5 ? [/snip] PHP5 will be using the Zend 2 Engine, and gives a standard way of declaring constructor methods by calling them by the name __construct(). An example from http://www.php.net/zend-engine-2.php

RE: [PHP] Front Page User Logout

2003-09-04 Thread Jay Blanchard
[snip] How can I provide a link which will log the current user out so that they will be prompted again to login. I'm using frontpage authentication on an apache server. I'm using PHP4 to build the pages. [/snip] Are you taking the frontpage variables into PHP? If so you can unset() those

Re: [PHP] syntax error using header and SID

2003-09-04 Thread Tyler Lane
On Thu, 2003-09-04 at 09:33, bob pilly wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( Location: page2.php??echo strip_tags (SID)? ) header( Location: page2.php?. strip_tags( SID ) ); the problem you are

[PHP] Thanks Richard Schwartz

2003-09-04 Thread Joe Harman
Dude stop being a jerk, I don't treat people this way... Ah, anyhow... It's not me who will judge you Is it? -Original Message- From: Richard Schwartz [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 11:28 AM To: Joe Harman Subject: Re: Thanks From Joe: ATM Archives

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Curt Zirzow
* Thus wrote Rx ([EMAIL PROTECTED]): Theres absolutely no control over session.save_path parameter in php. By setting it to every directory he wants, every user can: You can set the value with php_admin_value save_path /tmp 1. (!!!) Absolutely easily generate new sessions with any content

Re: [PHP] Thanks Richard Schwartz

2003-09-04 Thread Curt Zirzow
You should be more careful at whom your including these replies to :) Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Thanks Richard Schwartz

2003-09-04 Thread Chris W. Parker
Curt Zirzow mailto:[EMAIL PROTECTED] on Thursday, September 04, 2003 10:58 AM said: You should be more careful at whom your including these replies to :) But public floggings are good every once in a while. :) c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Rx
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Rx ([EMAIL PROTECTED]): Theres absolutely no control over session.save_path parameter in php. By setting it to every directory he wants, every user can: You can set the value with php_admin_value save_path

[PHP] HTML Template, PHP, Javascript PATH_INFO

2003-09-04 Thread Richard A. DeVenezia
Help: --- problem My page generated via a template can't find some javascript. setup I am hosted on Apache 1.* I have a folder containing many *.html containing content which I want to be displayed in another style of page. Suppose there is foo/ foo/content1.html ... foo/contentN.html

[PHP] Use of php_value in .htaccess is not working

2003-09-04 Thread JR
Hello Everyone, I am running Red Hat Enterprise Linux ES release 2.1 (Panama). Originally I was using the Red Hat PHP package. This package was not the most current version so I removed it and compiled PHP 4.3.3. Since doing this I am unable to set things like path using php_value in a .htaccess

[PHP] RE:[PHP] HTML Template, PHP, Javascript PATH_INFO

2003-09-04 Thread Chris Sherwood
-- snip -- I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for not finding js1.js -

[PHP] multiple select box

2003-09-04 Thread Steve Goodman
Hey all, I'm curious if anyone else has ever come across this problem: I have a multiple select box named 'chosen'. When it is submitted, only the last option selected appears under $_POST['chosen'], when I print_r($_POST). Any ideas? Thanks in advance, Steve -- PHP General Mailing List

Re: [PHP] Q on inhert class code

2003-09-04 Thread jsWalter
Evans, thx for your effort. I see what your says, as I noticed the trouble at 3 this morning! This is how I fixed it... $session = Auth::_importGlobalVariable(session); $session[$this-_sessionName]['data']['_loginAttempts'] = $this-_loginAttempts; Pretty much the way you indicated.

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Curt Zirzow
* Thus wrote Rx ([EMAIL PROTECTED]): Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Rx ([EMAIL PROTECTED]): You can set the value with php_admin_value save_path /tmp If i set php_admin_value, user STILL can change the value with ini_set()! I

Re: [PHP] multiple select box

2003-09-04 Thread Robert Cummings
Did you remember the [] on the select field's name? Otherwise it will treat data as a scalar and constantly overwrite until the last selected entry is reached. Cheers, Rob. On Thu, 2003-09-04 at 16:39, Steve Goodman wrote: Hey all, I'm curious if anyone else has ever come across this problem:

Re: [PHP] Front Page User Logout

2003-09-04 Thread John Welty
I'm only accessing the result of the user logging in through $GLOBALS[PHP_AUTH_USER] I've tried unsetting that but it doesn't change anything. The only thing that logs a user out is them closing their browser and reopening it. I'd like a user to be able to switch usernames by clicking a link that

Re: [PHP] Front Page User Logout

2003-09-04 Thread John W. Holmes
John Welty wrote: I'm only accessing the result of the user logging in through $GLOBALS[PHP_AUTH_USER] I've tried unsetting that but it doesn't change anything. The only thing that logs a user out is them closing their browser and reopening it. I'd like a user to be able to switch usernames by

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread John W. Holmes
You didnt understand. I change save.session_path to other's site session directory, do session_start(), write every variable what i want, write down session number, go to this site and using this generated session. You cannt prevent this ever! Does enabling safe_mode counter any of these writing

Re: [PHP] Front Page User Logout

2003-09-04 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): John Welty wrote: I'm only accessing the result of the user logging in through $GLOBALS[PHP_AUTH_USER] I've tried unsetting that but it doesn't change anything. The only thing that logs a user out is them closing their browser and reopening

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): You didnt understand. I change save.session_path to other's site session directory, do session_start(), write every variable what i want, write down session number, go to this site and using this generated session. You cannt prevent this

[PHP] Re: cookies under php 4.06

2003-09-04 Thread Comex
sorry for kinda answering my own post... but anyway... Or you could use header().. http://wp.netscape.com/newsref/std/cookie_spec.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: cookies under php 4.06

2003-09-04 Thread Jennifer Goodie
setcookie(UserName, $HTTP_POST_VARS['UserName'], time()+(60*10), /, $HTTP_SERVER_VARS['SERVER_NAME']); setcookie(Password, $password, time()+(60*10), /, $HTTP_SERVER_VARS['SERVER_NAME']); print login - set cookie; sorry for kinda answering my own post... but anyway...

[PHP] Creating Images

2003-09-04 Thread Jed R. Brubaker
I have been trying to write some image creation scripts, and although I have a version of PHP that includes image support, I keep getting errors related to imagecreatefrompng(). Here is the latest error: Fatal error: Call to undefined function: imagecreatefrompng() in

[PHP] Re: Creating Images

2003-09-04 Thread Catalin Trifu
Hi, RTFM: http://de.php.net/manual/en/ref.image.php Cheers, Catalin Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been trying to write some image creation scripts, and although I have a version of PHP that includes image support, I keep getting

Re: [PHP] Creating Images

2003-09-04 Thread Curt Zirzow
* Thus wrote Jed R. Brubaker ([EMAIL PROTECTED]): I have been trying to write some image creation scripts, and although I have a version of PHP that includes image support, I keep getting errors related to imagecreatefrompng(). Here is the latest error: Fatal error: Call to undefined

Re: [PHP] Am I dreaming or what :)

2003-09-04 Thread John Taylor-Johnston
But how do i get $files ? thanks :) John Raditha Dissanayake wrote: this is in fact pretty easy. this should get you started [code] $files = split(\n,`ls *gif`); srand((double)microtime()*100); $num = rand(0, count($files)); echo $num = $files[$num]; [/code] John

RE: [PHP] Am I dreaming or what :)

2003-09-04 Thread Chris W. Parker
John Taylor-Johnston mailto:[EMAIL PROTECTED] on Thursday, September 04, 2003 4:57 PM said: But how do i get $files ? What do you mean get $files? This line right here: $files = split(\n,`ls *gif`); get's $files. Try print_r($files); and see what happens. Chris. thanks :)

[PHP] cURL and relative paths

2003-09-04 Thread Colin Kettenacker
I'm coming up against a brick wall on this one. Can one cURL in a web page while automatically resolving all the relative file paths? I've fooled around with regexp to resolve this issue, but it is not a real stable solution. I tried the archives and googled, but there appears to be no solution

[PHP] PEAR

2003-09-04 Thread Richard Baskett
Ok I have loaded the new version of php 4.3.3, but now how in the world do I enable PEAR? I have a couple of scripts that just call a pear php script, but it says it doesn¹t exist.. does this mean that I need to change the include path? How do I include all those pear classes? Thanks! Rick Too

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Raditha Dissanayake
M, very interesting thread, thanx for starting this. Good comments curt. 1. (!!!) Absolutely easily generate new sessions with any content for every site on server. It's because of the 'suspect' nature of sessions and cookies that i never place userid,username or password in

Re: [PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread ccj
Thanks, but it's not the point, I think. Because from aaa.php -- error.php is redirected by Apache. The error.php could not get the POST data via $HTTP_RAW_POST_DATA. If aaa.php send POST data to a existing file , say ccc.php, of course we can get $_POST, $HTTP_RAW_POST_DATA in ccc.php, But if

Re: [PHP] HTML Template, PHP, Javascript PATH_INFO

2003-09-04 Thread John W. Holmes
Richard A. DeVenezia wrote: [snip] I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Rx
Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] M, very interesting thread, thanx for starting this. Good comments curt. 1. (!!!) Absolutely easily generate new sessions with any content for every site on server. It's because of the 'suspect'

Re: [PHP] -f function ???

2003-09-04 Thread Guillermo Scharffenorth
Ok, I get it know. But, can the use of this first parameter be turned on or off using php.ini? According to the developer of the script, it is turned off in my php.ini, but I don't see how it can be turned off and there is no documentation about it. Does this parameter have anything to do with

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Viraj Kalinga Abayarathna
Thank you Curt for the explanation. Viraj Curt Zirzow wrote: * Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): header(Cache-control: private); p.s. and also if there is any one wo knows what exactly this header line means, please post a brief decription. thanks.

Re: [PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread ccj
Sorry, via ErrorDocument 404 /error.php in httpd.conf setting. See http://www.php.net/mirroring.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML Template, PHP, Javascript PATH_INFO

2003-09-04 Thread Richard A. DeVenezia
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Richard A. DeVenezia wrote: [snip] I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert

Re: [PHP] Can Objects be passed to another page?

2003-09-04 Thread Hardik Doshi
Yeah you can pass object using serialize function and later on you can use unserialize function to convert the serialized variable in the original object. --- Radu Manole [EMAIL PROTECTED] wrote: using serialize might work - Original Message - From: Marco Schuler [EMAIL PROTECTED]

[PHP] using PHP curl and a client cert

2003-09-04 Thread Scott
Hello, I am trying to post to a ste that requires me to use a client cert. I can get it to work for both windows and unix, but only on the command line. I have tried without success to use the PHP built-in methods for doing this. Here is the command line that works: curl -d REQUEST_GROUP

[PHP] Persistent database connections in PHP

2003-09-04 Thread Shivanischal
Hi friends, I wanted help on how to achieve persistent database connections in PHP. The database i use is MySQL. I would be grateful if u could also guide me to resources that tell me how to do it. Thanks, -shiva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Startup Seeking Expertise in PHP/MYSQL Open Source : Remote Interns Welcome!

2003-09-04 Thread Lee Shores
We're looking for a few excellent programmers who want to rock out in building out a portal/publisher/record-label/video-distributor using the following applications and technologies from sourceforge.net: phpBB xoops phpnuke geeklog oscommerce postnuke gallery drupal cafelog dmoz RSS/RDF/blogging

Re: [PHP] Restart Apache with PHP???

2003-09-04 Thread Anil Kumar K.
Writing something like this as part of a Web application is definitely a bad idea. The requirement is more like that of a remote administration system and Webmin (http://www.webmin.com/) cleanly and safely fits the bill. Webmin can actually do more than just restarting Apache. But it can be

[PHP] Display after a certain date

2003-09-04 Thread John Taylor-Johnston
Anyone have a quick fix for a part of an html page that I do not want to display until after October 1st, and not after October 31st ? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Header()

2003-09-04 Thread MiXmAsTr
How can i do so header opens a new page in a new browser, instead of opening the page inside the current browser? -kjetil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Persistent database connections in PHP

2003-09-04 Thread Cesar Aracena
I haven't heard of persistent connections with MySQL before, and I think is because PHP can't handle it. PHP will connect to the DB every time it has to. Are you really that annoyed for that 0.0003 second that it probably takes your pages to connect to the DB? What I do to manage just ONE

[PHP] A bd problem

2003-09-04 Thread Carlos Castillo
Title: Mensaje HI, i have the following problem Im working with sql server 2000 in a windows xp pc, then in the bd i have a table called "noticias" and a text type field, when i insert into the field everything goes rigth, but when i try to get the info of teh field, i can get all the

  1   2   >