Re: [PHP] Control Point of Access for certain pages.

2002-11-02 Thread Jonathan Sharp
in the url pass two (GET) variables: hash and token generate a md5 hash from a secret string and the token (like time())... oh your page with links to pop ups: ? $secret = Pigs can fly i see; $token = time(); $hash = md5($secret.$token); ? On your popup page: ? $secret = Pigs can fly i see;

Re: [PHP] Session Management

2002-11-02 Thread Jonathan Sharp
first off: IP addresses are not the way to go about this AT ALL. Even if they are behind a proxy, they would most likely be running on a private subnet (say 10.0.0.x) and worse yet, if a company has multiple backbones (like the one I consult at) traffic could go through one of 3 gateway routes

RE: [PHP] Session Management

2002-11-02 Thread Robert Samuel White
I am quite aware that IP's are not the way to go, and why. That is why I asked about the internal ways PHP handles sessions. Thanks. Creating a jump page as you call it does not answer the fundamental question concerning the security of session management, and that is the basis of what I want

[PHP] Re: uping to plaese help

2002-11-02 Thread marcelo
Still needing help please help me Marcelo [EMAIL PROTECTED] wrote in message news:20021102001942.34689.qmail;pb1.pair.com... Hi need some help please What is wrong with my code? it is supposed to upload 2 files but instead gives me this error Warning: Unable to open 'Array' for reading

[PHP] This is a test mail for this mail list!

2002-11-02 Thread Joskey Liaus
Thank you for reading my mail! -- test -- Joskey Liaus [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Can you guys do me a favor?

2002-11-02 Thread PHP Mailing List
I just started a service on my website, for free TopSite Hosting. It's had great exposure from Hotscripts.com, in fact, my Remote-Hosted Search EWngine service has taken off quite well. The only problem here is that people just don't seem to take to it too well. I haven't had one person sign

Re: [PHP] ftp_rawlist problems

2002-11-02 Thread Andrew Brampton
This is a known bug on the windows platform. It has been fixed in CVS, and is most likly fixed in the current 4.3.0pre2 release. I experience this problem a few weeks ago, but once I downloaded the lastest CVS Snapshot it worked as expected. hope this helps Andrew - Original Message -

RE: [PHP] Session Management

2002-11-02 Thread John W. Holmes
I've created a class for handling session management across an unlimited number of domains (without using cookies) however it has some inherent problems. In order to differentiate between users, it is using the IP Address. I realize this is completely inefficient, and I was hoping that

Re: [PHP] Re: Installation prob: I can't see libphp4.so

2002-11-02 Thread Daniele Baroncelli
I can't actually find out where the libphp4.so has been placed. Assuming you have done 'make', 'make install', use 'find / -name libphp4.so' to find where it is. Or just do 'make install' again and watch carefully to see where libphp4.so is copied to. The 'find / -name libphp4.so' didn't

[PHP] Protecting your scripts

2002-11-02 Thread scott
Hi there I wrote some php scripts that I want some friends to be able to use from there php scripts. Some on my server under different domains and some on other servers else where on the web How could I enable them to embed and use my scripts from within there php pages without them getting

[PHP] help on php dbg

2002-11-02 Thread Vivek Kedia
Hello all I am new to programming I need a urgent help, I recently installed PHP 4.2.3 ( ON win me , running apache 1.3.22 ) from the install shield downloaded from php.net. Earlier my dbugger used to work but now it doesnt work, the nupshere phped gives the following error --

Re: [PHP] Protecting your scripts

2002-11-02 Thread Manuel Lemos
Hello, On 11/02/2002 10:26 AM, Scott wrote: Hi there I wrote some php scripts that I want some friends to be able to use from there php scripts. Some on my server under different domains and some on other servers else where on the web How could I enable them to embed and use my scripts from

[PHP] Executing the value of a variable

2002-11-02 Thread Jackson Miller
I would like to store some code in a database and load/execute that code based on a query. Is it possible to execute the value of a variable in a php script? I am aware of several other ways to accomplish the same task, but I just want to see if there is in fact a performance hit from storing

Re: [PHP] storing inc.php outside doc root/security/includes

2002-11-02 Thread Marek Kilimajer
I know how it works, I just want to know the error (or warning you get) example: *Warning*: Failed opening ... for inclusion (include_path='.:/php/includes:/usr/share/php') in */var/www/... *on line ... Also check if your $_SERVER['DOCUMENT_ROOT'] really corresponds to real filesystem path,

Re: [PHP] using mysql_field_type to disginguish between a blob anda text field.

2002-11-02 Thread Marek Kilimajer
Use method found in user comments on http://www.php.net/mysql_field_type John Meyer wrote: I've recently found out that mysql returns blob for both blobs and text fields. Now, how do I distinguish between the two? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Executing the value of a variable

2002-11-02 Thread John W. Holmes
www.php.net/exec Make sure you read the entire page and are aware of the security concerns of using this function. ---John Holmes... -Original Message- From: Jackson Miller [mailto:anything;jaxn.org] Sent: Saturday, November 02, 2002 8:03 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Executing the value of a variable

2002-11-02 Thread Marek Kilimajer
You want to look at eval(); Jackson Miller wrote: I would like to store some code in a database and load/execute that code based on a query. Is it possible to execute the value of a variable in a php script? I am aware of several other ways to accomplish the same task, but I just want to see

Re: [PHP] Executing the value of a variable

2002-11-02 Thread Rick Emery
eval() - Original Message - From: Jackson Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 02, 2002 7:02 AM Subject: [PHP] Executing the value of a variable I would like to store some code in a database and load/execute that code based on a query. Is it possible

RE: [PHP] Executing the value of a variable

2002-11-02 Thread John W. Holmes
www.php.net/eval I mean... duh! sorry... ---John Holmes... -Original Message- From: John W. Holmes [mailto:holmes072000;charter.net] Sent: Saturday, November 02, 2002 9:24 AM To: 'Jackson Miller'; [EMAIL PROTECTED] Subject: RE: [PHP] Executing the value of a variable

Re: [PHP] Re: Installation prob: I can't see libphp4.so

2002-11-02 Thread Daniele Baroncelli
Now it works. I repeated the installation from scratch and now it finally creates the libphp4.so file. Daniele Daniele Baroncelli [EMAIL PROTECTED] wrote in message news:20021102130710.81040.qmail;pb1.pair.com... I can't actually find out where the libphp4.so has been placed. Assuming

Re: [PHP] Problem with 4.2.3?

2002-11-02 Thread Adam
output buffering = off This is already set to off Any other suggestions? -Adam Jason Wong [EMAIL PROTECTED] wrote in message news:200211021451.44280.php-general;gremlins.com.hk... On Saturday 02 November 2002 06:16, Adam Humphrey wrote: I just upgraded my PHP from 4.2.2 to 4.2.3 and now I

[PHP] Fwd: Quarter question..

2002-11-02 Thread Jim Hatridge
HI all, In the code below I'm trying to get the last column to show 1, 2, 3, or 4 according to which quarter of the year it is. But all it shows in that column is Resource ID # X. The X starts with #3 and goes to 18. There are (at the moment) 15 items in the table. Any ideas what's wrong?

[PHP] Time limit exceeded when uploading files

2002-11-02 Thread Eduardo M. Bragatto
I'm using a single php script to send files named upload.php, here is the source code: ?php set_time_limit(500); copy($userfile, log\\$userfile_name); echo htmlheadtitleUploading file.../titlemeta http-equiv=\refresh\ content=\0; url=http://test.com/file_sent.html\;/headbodycenterfont

Re: [PHP] Fwd: Quarter question..

2002-11-02 Thread Jonathan Sharp
try this: -js table border=1 ? $i = 0; while ( $myrow = mysql_fetch_array($result) ) { $c = ( ++$i % 2 ? 'yellow' : 'white' ); echo tr bgcolor=\$c\; printf('tda href=%s?id=%sdelete=yesDelete/a/td', $PHP_SELF, $myrow['id'] ); $q = ceil( 4/(int)date('n', strtotime($mydata['date'])

Re: [PHP] Fwd: Quarter question..

2002-11-02 Thread John Nichel
When you run mysql_query, it just sends back a resource id to the result set. To get the data, use something like mysql_fetch_array() $sql = SELECT * FROM `myDataBase.myTable`; if ( $result = mysql_query ( $sql ) ) { while ( $data = mysql_fetch_array ( $result, MYSQL_ASSOC ) ) { print_r (

[PHP] Problem with is_dir function

2002-11-02 Thread Roger Lewis
I'm having a problem with the is_dir function, or maybe I don't understand how it supposed to work. I'm using the following code to check whether or not a directory called $user_dir exists. If it exists, I am returned the proper message. But if it doesn't exist, I get the following error

php-general Digest 2 Nov 2002 19:07:18 -0000 Issue 1681

2002-11-02 Thread php-general-digest-help
php-general Digest 2 Nov 2002 19:07:18 - Issue 1681 Topics (messages 122503 through 122531): Re: Problem with 4.2.3? 122503 by: Jason Wong 122526 by: Adam Re: -How to do Mapping ? 122504 by: Jason Wong Control Point of Access for certain pages. 122505 by:

Re: [PHP] Problem with is_dir function

2002-11-02 Thread Andrew Brampton
what values of $user_dir are you passing to is_dir? echo them out before the test, you might be sending paths which are most certainly not directories... for example: c:\windows /home/blah would be valid, but c:\windows\win.com /home/blah/myfile http://somesite/somepath

RE: [PHP] Problem with is_dir function

2002-11-02 Thread Roger Lewis
I believe the path is of the correct format. So for example, if $user_dir = /home/sites/home/users/demodocs/web/userforum/user and $user_dir exists, then is_dir($user_dir) should = 1 however, if $user_dir doesn't exist, then is_dir($user_dir) should = 0 Isn't this the correct logic? Roger

[PHP] XSLT Sablotron output

2002-11-02 Thread Daniele Baroncelli
Hi guys, I have typed a simple script to test the Sablotron module recently installed. I found out that the HTML is output all in one line, without newlines, which is very annoying. Anyone can tell me if this is a bug of the module, or I have to specify something somewhere? Here is the script on

[PHP] Send $out embedded in a mail in HTML FORMAT

2002-11-02 Thread Kevin Fradkin
I read from a template, insert data and save it as a new file with html code... i want to send that file that is the same as $out via mail embedded in it... i do $fifi = fopen ('/'.$cursada.$cuatrimestre.'/'.$registronro.'.htm', w); $fp = $fifi; fputs ($fifi, $out . ); fclose ($fifi);

[PHP] Geographic IP location

2002-11-02 Thread olinux
Hi all, I am looking for a way to determine the geographic location based on IP address. I understand that 100% accuracy is impossible. Does anyone know of a good software or service provider that provides quality geographic detection to US state level based on IP of website visitors. I have

Re: [PHP] Geographic IP location

2002-11-02 Thread Jason Reid
http://www.phpclasses.org/netgeoclass that 'should' work for what you want... someone else suggested it a while age for another project Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: olinux [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday,

Re: [PHP] Geographic IP location

2002-11-02 Thread olinux
This is a great class, but NetGeo uses only whois records, I think that the more accurate solutions also use some sort of ip domain name analyisis to find city location. Thanks, olinux --- Jason Reid [EMAIL PROTECTED] wrote: http://www.phpclasses.org/netgeoclass that 'should' work for

[PHP] ereg (Why, Does sort of work)?

2002-11-02 Thread David Jackson
I'm comparing the values of a check box, against another form field, and it sort of works, but I don't understand why (A better solution? is listed below it? TIA, David Jackson --- And part of the HTML Form: --- tdbAccount Type:/b/td

[PHP] Cookies disabled, new session ID each click!

2002-11-02 Thread Steve Fatula
I posted this but not sure Google works, so using my own account as it did not show up yet. I am fairly new to PHP, and am running a shopping cart app written in PHP. Most people using this cart do not have this issue, but I do! I have boiled the program down to a few lines, and it doesn't

RE: [PHP] Session Management

2002-11-02 Thread Robert Samuel White
These were all the same assumptions I made, thanks. I knew that it was more of an HTTP thing than a PHP thing when it came to the blind faith thing... I was just hoping that was something better out there. I'm not willing to use session management as blindly as it is currently implemented. I

[PHP] need help with project

2002-11-02 Thread Karl James
Hello people Im in need help with creating a system where it will let me Add/drop players off a web page..basically of a roster with salary cap control And I want to do trades as well This is for a fantasy football page. And I need to have username and passwords so my owners can login and

[PHP] Re: need help with project

2002-11-02 Thread David Jackson
Karl -- Before you go reinventing the wheel , you might check http://freshmeat.net ... of course there is nothing actually wrong with reinventing the wheel *grin* David Jackson Karl James wrote: Hello people Im in need help with creating a system where it will let me Add/drop players off a

Re: [PHP] Cookies disabled, new session ID each click!

2002-11-02 Thread Chris Shiflett
Steve, Check your php.ini file. PHP uses cookies for maintaining your Web client's unique ID, and unless you have use_trans_sid set, it will not attempt to pass the unique ID on the URL for those who have cookies disabled. Chris Steve Fatula wrote: When you click on the link in the code, it