[PHP] What would you want in a PHP web host?

2001-08-01 Thread Derek Del Conte
I have been developing PHP for a while now, and I am wondering how other developers find their PHP hosting company. So far this has not been an issue for me because I am always in full control of my servers (well, as much control as possible with any web server :), but recently we have begun to

[PHP] Hmmm?

2001-08-01 Thread Kyle Smith
Whenever i get a php script off a website why is it that most of the main parts in the script have a space from the left border. eg ?php echospazzz; ? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

[PHP] Re: What would you want in a PHP web host?

2001-08-01 Thread Soeren Nielsen
Derek Del Conte [EMAIL PROTECTED] wrote a lot that I snipped :-) Dear Derek To give you some input I can tell you about some recently experienced things in my php world... I: My homepage is running on a server which host a lot of other domains. Therefor I contacted the company to know if they

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 02:02, Yasuo Ohgaki wrote: Meir Kriheli [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I need another pair of eyes to see if I've overlooked something. SNIP so '{pass1}=={pass2}' is converted to

[PHP] warnings in php4

2001-08-01 Thread Melania Popescu
I have a lot of php scripts developed with php3. I've installed php4 and I get some warnings when I evaluate variables there are not set (are empty). In php3 there was no problem (no warning). If I modify the code by using empty($var) or isset($var) it's ok, but there are lots of such issues.

RE: [PHP] Counting Multidimensional Arrays

2001-08-01 Thread Tim Ward
I assume that $m = 07; $y = 2001; $d = 31; echo count($this-arrEvents[$y][$m][$d]); is in a method of the class that $someclass is a method of, something like: class fred { function dispcount() { $m = 07; $y = 2001;

Re: [PHP] Re: storing array in mysql

2001-08-01 Thread elias
Well, you have to treat all the user's input as a string actually. So basically only one data type. Now as for splitting and joining, you can make up a splitting character let's say: |*^| and see if the user entered this in some of his input. It's really rare to have such weird combination of

Re: [PHP] warnings in php4

2001-08-01 Thread Chris Fry
Just set warnings to off in your php.ini - it's on by default Chris Melania Popescu wrote: I have a lot of php scripts developed with php3. I've installed php4 and I get some warnings when I evaluate variables there are not set (are empty). In php3 there was no problem (no warning). If I

RE: [PHP] Hmmm?

2001-08-01 Thread Lawrence . Sheed
I presume you mean code layout Its there to make code easier to read. eg some silly code for ($x=1;$x100;$x++) { while ($i50) { print $i; } } This is more legible than for ($x=1;$x100;$x++) { while ($i50) { print $i; } } Indentation makes it easier to spot

[PHP] Re: warnings in php4

2001-08-01 Thread elias
check php.ini and the key error_reporting Melania Popescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a lot of php scripts developed with php3. I've installed php4 and I get some warnings when I evaluate variables there are not set (are empty). In

[PHP] Re: Hmmm?

2001-08-01 Thread elias
It's called identing. It's just there to make the script more readable. That's common to almost all programming languages. Some programmers doesn't ident they code anyhow. Basically you increase the ident whenever you enter in a deeper code block. Kyle Smith [EMAIL PROTECTED] wrote in message

[PHP] Re: exec problem

2001-08-01 Thread Richard Lynch
Hi I'm trying to create a script which my cron will run once a day to backup my MySQL database, but the exec command doesn't want to work no matter what I try... Uh. cron + PHP is cool, but using cron to run PHP to run mysqldump is kinda silly... :-) Just put the mysqldump line in your

[PHP] Re: php3 - php4

2001-08-01 Thread Richard Lynch
Liviu Popescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a lot of php scripts developed with php3. I've installed php4 and I get some warnings when I evaluate variables there are not set (are empty). In php3 there was no problem (no warning).

[PHP] Re: Pear

2001-08-01 Thread Richard Lynch
Is it worth the while to read up on PEAR? I have seen much of it but I don't know much about it. I am not a complete newbie anymore and I have developed quite a few DB driven sites. Any good readings that you know of? The basic idea behind PEAR is a sort of souped-up code archive of

[PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Richard Lynch
But I'm not using eval() directly on user entered data, and I can't see where it is possible. Yes, you are. pass1 is coming from the user, is it not? You are using eval() to decide if pass1 and pass2 are equal, are you not? You are therefore directly eval-ing user code.

[PHP] Re: Good Tutorial

2001-08-01 Thread Richard Lynch
I have done a few tutorials, but they aren't very long, and have only covered a small amount of what i need to know. Dunno how long it is, but the webmonkey tutorial used to get good reviews here... I've been out of the loop for awhile though. Can anyone recommend any good comprehensive

Re: [PHP] Worldpay module an Exchange Project e-commerce site

2001-08-01 Thread Richard Lynch
I recently just started using PHP. I searched this list's archives first, but couldn't find an answer to my question: Whenever I get a syntax error it's always reported on line 1, even when it's obviously not on line 1. I *never* get an error reported on any other line #. Your file is Mac

[PHP] Re: emailing the contents of a form in PDF format

2001-08-01 Thread Richard Lynch
1) Prompt the user for a target e-mail address. 2) Create a PDF document from the form fields on the current page (I wish to specify the design of the form) and e-mail it to the e-mail address gathered form (1). I'm hoping there's either a module or two that can accomplish this or perhaps,

[PHP] Re: issues with __sleep() and __wakeup()

2001-08-01 Thread Richard Lynch
class Scott { var $svar = array(); // free-form hash for whatever data function Scott( ) { return $this; Like, I don't think you're supposed to return $this from your constructor... } function __sleep() { According to the manual, this is supposed to return an array of the

[PHP] Re: Execute mixed php code from mysql?

2001-08-01 Thread Richard Lynch
echo $row[code]; You want eval, but since your code starts off with HTML, and eval expects to be doing PHP, you need to do more like: $html = $row['code'] eval(?$html?php); In essence, you are sorta doing the opposite of how include automatically switches back to HTML mode, and you break out

[PHP] Re: whats wrong?

2001-08-01 Thread Richard Lynch
FORM METHOD=post ACTION=userinfolistbycompany2.php INPUT TYPE=hidden name=uid value=? echo $uid; ? You are using the short open tag of ? instead of ?php is the only thing really wrong I can see... That won't work in PHP4 --with-xml, or if php.ini has short tags off etc. The $uid is silly,

[PHP] Re: Visual Login

2001-08-01 Thread Richard Lynch
How can i go about doing a visual login on a web page... instead of the pop up window i have at the min like with .htaccess ?? I apologize if this is in the manual, but i couldn't see it If you use HTTP Authentication, you get that popup. Period. If you don't, you don't. Period. So, ditch

[PHP] Re: Another simple question (dont hurt me)

2001-08-01 Thread Richard Lynch
In php, oh wait well this is really 2 questions.. 1 in a form how do i make it email a file to someone, and the second how do i make it get recieved as an attatchement...? You want to read the file upload feature page on http://php.net And you want to snag Manuel Lemos' UpperDesign.com mail

[PHP] Re: PHP Execute as User ???

2001-08-01 Thread Richard Lynch
I have php files which run on various VirtualHost's and there is suexec on those VirtualHosts, however, when I look at the user/group which PHP runs under it always seems to be the main web user (nobody, www, or whatever we set it to). Is there any way for PHP to be able to execute as the

[PHP] Re: MAgic Quotes

2001-08-01 Thread Richard Lynch
How do you turn on/off magic quotes through .htaccess? Is it this posible? php_value magic_quotes off -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: path_info

2001-08-01 Thread Richard Lynch
I am running win2k sp1. The following code works with php 4.0.3 installed however fails with versions php 4.0.5 and 4.0.6. Any assistance would be appreciated ?php echo $PATH_INFO; echo br; echo $HTTP_SERVER_VARS[PATH_INFO]; ? Define fails... What are your php.ini settings for

[PHP] Re: Sort by bigger count(*)

2001-08-01 Thread Richard Lynch
I made a query that uses count(*) now how can i get the results sorted following the biggest count(*) result? select count(*) as score from foo group by y order by score desc may do the trick... I often have trouble with aggregates not being allowed where I want them or not being able to

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 10:20, Richard Lynch wrote: But I'm not using eval() directly on user entered data, and I can't see where it is possible. Yes, you are. pass1 is coming from the user, is it not? You are using eval() to decide if pass1 and pass2 are equal, are you not? You

Re: [PHP] Example high-profile PHP sites

2001-08-01 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ralph Guzman) wrote: Incase you still need it. Here is a big one I forgot to mention: http://www.dialpad.com/ Not sure how much of their site is PHP, but their user registration and member backend is PHP driven. Entertainment site

Re: [PHP] Sorry... but a good PHP editor for Linux/Unix

2001-08-01 Thread Rouvas Stathis
Try vim instead of vi. -Stathis. Ben Bleything wrote: I can't speak for terminal usage... I use pico and or vi... pico on console, vi over ssh. When working locally, I use nedit (www.nedit.org) on *nix (with custom PHP syntax highlighting) and EditPlus on windows. Good luck, Ben

[PHP] PHP and MySQL Insert ID

2001-08-01 Thread John Monfort
Hello everyone ! Question: I'm building an online membership registration system, for a 'membership section' of a website. As it stands, I have a registration form that insert the data into MySQL, then generate a confirmation page--with member ID number, username, and password. I

Re: [PHP] PHP and MySQL Insert ID

2001-08-01 Thread Daniel Rezny
Hello John, Wednesday, August 01, 2001, 11:06:06 AM, you wrote: JM In an environment where it's possible to have multiple JM users register at the same time (relatively speaking), how can I be sure JM that the 'last ID' is indeed the 'intended' last user's ID? JM Ex. JMSay that

[PHP] How can i make it so....

2001-08-01 Thread Steve Wright
Hi, I have modified an authentication script to my own liking, but being new, don't know how to go about my next stage. Once the user has inserted the UN, and PW, it is campared against the MySQL database, nowm what i want to do is get rid of the login form which still appears, and is very

Re: [PHP] Can't write to file via php, just via ftp...Cananyonehelp?

2001-08-01 Thread Richard Lynch
How is it, if I would create the file itself from the php-script itself? To do *that* you need world-writable permissions on the DIRECTORY to create files inside of it. That means any other user on your computer can *also* create any files they like in that directory. Would I be able to read

[PHP] ADV. Natural penis enlargement -without surgery-!

2001-08-01 Thread Guaranteed !
Removal Information = This message is sent in compliance of the new email bill section 301. Per Section 301, Paragraph (a)(2)(C) of S. 1618, further transmissions to you by the sender of this email will be stopped at no cost to you. This message is not

Re: [PHP] How can i make it so....

2001-08-01 Thread Chris Fry
Steve, If you move your validation code to the top of the script you can use the header (Location: loggedin.php); exit; to go to the next page if the user is validated Chris Steve Wright wrote: Hi, I have modified an authentication script to my own liking, but being new, don't know how

[PHP] how can i send SMS from Php Scripts ?

2001-08-01 Thread Damien CAMUS
Sorry for my english but i'm french -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: How can i make it so....

2001-08-01 Thread Richard Lynch
Once the user has inserted the UN, and PW, it is campared against the MySQL database, nowm what i want to do is get rid of the login form which still appears, and is very annoying. I can't seem to see anything on this particular subject, but if their is any, can u point me in the right direction.

[PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Richard Lynch
It does *NOT* stop a hacker from using GET/POST to initialize variables that were never set. Turn on E_NOTICE, damnit. Whoops. That part of my rant was patently false. I was on a roll, though :-) If register_globals is off, of course POST 'i' can't over-ride your uninitialized $i variable.

Re: [PHP] How can i make it so.

2001-08-01 Thread Chris Fry
Steve, The following should work:- ?php $auth = false; // user is not authenticated yet if (isset( $PHP_AUTH_USER ) isset($PHP_AUTH_PW)) { // Connect the MySQL Database mysql_connect( **.net', '**', '***' ) or die ( 'Unable to connect to

[PHP] PHP and Apache 1.3.12

2001-08-01 Thread Peter Yung
Hi, I am using RedHat Linux 6.2. I just got my PHP installed but my Apache 1.3.12 server does not seem to recognize the PHP files and PHP scripting. I have already uncommented the lines in my httpd.conf file which read: AddType application/x-httpd-php .php AddType

Re: [PHP] ADV. Natural penis enlargement -without surgery-!

2001-08-01 Thread Jeffrey Paul
At 09:00 PM 7/31/2001, Guaranteed ! wrote: We are a serious company, offering a program that will enhance your sex life, and enlarge your penis in a totally natural way. I think they got the ASP mailinglist mixed up with the PHP one.. -j --

Re: [PHP] Newbie: Site search, more than one directory

2001-08-01 Thread Jeffrey Paul
At 04:11 PM 8/30/2001, Steve Wright wrote: Hey, I have just developed a simple site search.. .and am after learning how to get it to search all directories... at present, it only searches the one it is in!! snip $cmdstr = grep -i $searchstr *; man grep on my linux box shows:

[PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Yasuo Ohgaki
Hi Richard, I guess you miss my point. I always suggest to check all user inputs (GET/POST/COOKIE), they are all unsafe unless they are checked. Anyone can spoof these variables easily with little knowledge and attackers do not have to be experienced to attack PHP scripts. Elementally school

Re: [PHP] PHP and MySQL Insert ID

2001-08-01 Thread John Monfort
Many thanks, Daniel! I trully appreciate it. -john __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com The world is waiting, are you ready? -+___+- On Wed, 1 Aug 2001,

Fw: [PHP] Sorry... but a good PHP editor for Linux/Unix

2001-08-01 Thread Chris Schneck
Joe has always been my favorite linux text editor. - Original Message - From: Augusto Cesar Castoldi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 7:07 PM Subject: [PHP] Sorry... but a good PHP editor for Linux/Unix Sorry about talking about this subject, but a

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Yasuo Ohgaki
I don't think this is much of a problem. I unset() all the global session variables before I use them so this should be no problem. All inputs (GET/POST/COOKIE) from users must be checked if you worriy about security. You might done already. Even if an attacker tries to set some value for a

[PHP] wish list

2001-08-01 Thread Erick Calder
does anybody know how to submit a feature request? I can't do it via the bug reporting mechanism. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Kyle Smith
Does it really exist? If so could someone post some URLs for me? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

[PHP] FAQ

2001-08-01 Thread Marius Andreiana
Can someone make a FAQ for this list? Every month there are questions about php editors, books... They don't even bother to search the arhives before asking. -- Marius Andreiana -- You don't have to go to jail for helping your neighbour http://www.gnu.org/philosophy/ -- PHP General Mailing

RE: [PHP] PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Jon Haworth
Well, any text editor will do. Here are some links: file://c:\windows\notepad.exe http://www.editplus.com http://www.ultraedit.com Enjoy HTH Jon -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: 01 August 2001 20:09 To: [EMAIL PROTECTED] Subject: [PHP] PHP EDITOR 4

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 10:20, Richard Lynch wrote:   But I'm not   using eval()   directly on user entered data, and I can't see where it is possible.  Yes, you are.  pass1 is coming from the user, is it not?  You are using eval() to decide if pass1 and pass2 are equal, are you not?  You

[PHP] Re: PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Henrik Hansen
[EMAIL PROTECTED] (Kyle Smith) wrote: Does it really exist? If so could someone post some URLs for me? http://alt-php-faq.org/links.html - look under editors, there are maybe more... -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Web site counter

2001-08-01 Thread Kyle Smith
Is it possible to make a website counter with a PHP script and a text document? If so can somebody email me a script (unlikely) or send me to a page with a script (yay) -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM:

[PHP] Re: FAQ

2001-08-01 Thread Henrik Hansen
[EMAIL PROTECTED] (Marius Andreiana) wrote: Can someone make a FAQ for this list? Every month there are questions about php editors, books... They don't even bother to search the arhives before asking. I know of 3 php faqs (I know there are tons), maybe we should make a faq on how to

[PHP] Re: Web site counter

2001-08-01 Thread Henrik Hansen
[EMAIL PROTECTED] (Kyle Smith) wrote: Is it possible to make a website counter with a PHP script and a text document? If so can somebody email me a script (unlikely) or send me to a page with a script (yay) check hotscripts.com -- Henrik Hansen -- PHP General Mailing List

Re: [PHP] warnings in php4

2001-08-01 Thread Phil Driscoll
On Wednesday 01 August 2001 09:21, Chris Fry wrote: Just set warnings to off in your php.ini - it's on by default NO NO NO! On your development machine, set your warning levels to E_ALL in php.ini, and then fix your code! Every warning message you get represents an opportunity for a malicious

[PHP] writing while reading

2001-08-01 Thread Rui Barreiros
hi all, i'm writing a web chat, the frame that presents the text, has a very fast refresh (has to) it's about from 2 in 2 seconds, my problem is writing to the file (chat is file based), when the refresh read the file, it doesn't let php write. i made comething like this.

Re: [PHP] Web site counter

2001-08-01 Thread Werner Stuerenburg
It is easy, but you need to have write privileges on that file (or rather httpd needs that) - so you may include a test that this file only holds a number as a minimal protection. $filename = $GLOBALS[DOCUMENT_ROOT]/your_counter.txt; $fp = fopen($filename,a+); $cnt = fread( $fp,

Re: [PHP] warnings in php4

2001-08-01 Thread Phil Driscoll
On Wednesday 01 August 2001 13:29, Phil Driscoll wrote: Every warning message you get represents an opportunity for a malicious user to find a secutiry hole in your code. Oops - I meant to say 'security hole' - I wish both my hands would type at the same speed :) -- Phil Driscoll -- PHP

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 13:54, Yasuo Ohgaki wrote: I don't think this is much of a problem. I unset() all the global session variables before I use them so this should be no problem. All inputs (GET/POST/COOKIE) from users must be checked if you worriy about security. You might done

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Phil Driscoll
Is this staement safe ? eval('$a = $GLOBALS[pass1]==$GLOBALS[pass2]'); Maybe I'm missing the point, but why not just go: $a = $GLOBALS[pass1]==$GLOBALS[pass2]; -- Phil Driscoll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Meir Kriheli
On Wednesday 01 August 2001 15:46, Phil Driscoll wrote: Is this staement safe ? eval('$a = $GLOBALS[pass1]==$GLOBALS[pass2]'); Maybe I'm missing the point, but why not just go: $a = $GLOBALS[pass1]==$GLOBALS[pass2]; I'm writing a form class which can also validate the form and I want to

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Phil Driscoll
On Wednesday 01 August 2001 13:51, Meir Kriheli wrote: I'm writing a form class which can also validate the form and I want to define the rules for validating the forms, so when defining the form I can add... Sorry - I should have read your earlier post :) I suspect that you are probably

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Yasuo Ohgaki
Take for example the value of magic_quote_gpc. To be sure that your script will work correctly, don't assume that it is alywas on (or off). So you can write if (!get_magic_qoute_gpc()) addslashes($var); or write a function myaddslashes that does the same thing. Right. I don't like magic

[PHP] Make associative array from two arrays

2001-08-01 Thread elias
Hello! I have two arrays: $keys = array(a, b, c, d); $vals = array(1, 2, 3, 4); I would like to get an associative array holding this: $aarray = array(a =1, b=2, c=3, d=4); I know I can do it with a while loop...but I wonder if there is any builtin PHP function that can do that. Or a better

[PHP] Re: how can i send SMS from Php Scripts ?

2001-08-01 Thread elias
hehe:) but what have you wrote already? 3 words? :) Damien Camus [EMAIL PROTECTED] wrote in message sb67ed5f.072@senlis_gwia">news:sb67ed5f.072@senlis_gwia... Sorry for my english but i'm french -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Re: Trying to avoid code exploits..

2001-08-01 Thread Yasuo Ohgaki
Sorry difficult to understand why and how unquoted strings can be dangarous This line should be difficult to understand why and how unescaped strings can be dangerous Regards, -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] Trouble creating a list on months

2001-08-01 Thread Mark Roedel
-Original Message- From: Mario A. Salinas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 7:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Trouble creating a list on months The actual function is as follows: function

[PHP] CGI installation

2001-08-01 Thread Sheni R. Meledath
Hello: We have hosted one php project where PHP Installed as CGI binary. Since the PHP parser binary put somewhere outside of the web tree of files, we have to include #!/usr/local/bin/php as the first line of each file containing php tags. This line will display on each page at the time of

[PHP] SetLocal() problem

2001-08-01 Thread Frédéric Mériot
Hello, I've got a little problem with the setLocal function. In many tutorials they give this syntax: setlocale('LC_TIME','fr_FR'); // for france I tried this but the fr_FR keyword does not seem to work. If I try french instead it works. I've got the same problem with all other countries

Re: [PHP] how can i send SMS from Php Scripts ?

2001-08-01 Thread Tom Carter
There is an open source WAP/SMS gateway, Kannel.. altho the project has gone thru some problems of late (the company who all the main developers worked for has gone bankrupt :-( ) Bear in mind tho you can't send for free, you will need to install a modem of sorts into the computer and have a

Re: [PHP] Web site counter

2001-08-01 Thread B. van Ouwerkerk
Is it possible to make a website counter with a PHP script and a text document? If so can somebody email me a script (unlikely) or send me to a page with a script (yay) freshmeat.net and sourceforge.net are great sources for scripts.. Be carefull not to use anything you see.. check the code

[PHP] Re: PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Owen Rudge
Does it really exist? If so could someone post some URLs for me? I edit my PHP scripts with FmView (www.wincorner.com) and Notepad. :-) -- Owen Rudge http://www.owenrudge.co.uk/ http://www.gamearchive.uk.tt/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] What would you want in a PHP web host?

2001-08-01 Thread pierre-yves
I am not shure a php developer would need help from another php developer at the hosting company. What we need is: -Sys Admin that understand php. -Sys Admin that knows how to secure the server and be able to tell the developer what to follow in order to built secure code. If system command are

Re: [PHP] issues with __sleep() and __wakeup()

2001-08-01 Thread Thies C. Arntzen
On Tue, Jul 31, 2001 at 02:48:48PM -0600, mike cullerton wrote: on 7/31/01 1:48 PM, scott [gts] at [EMAIL PROTECTED] wrote: I am having a problem with __sleep(); there mere existance of it is causing my object to not get serialized at all. __wakeup() works fine. i am using PHP

RE: [PHP] Re: issues with __sleep() and __wakeup()

2001-08-01 Thread scott [gts]
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 3:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: issues with __sleep() and __wakeup() class Scott { var $svar = array(); // free-form hash for whatever data function

[PHP] PHP, C++, and LAN

2001-08-01 Thread Keith Jeffery
Hello, I'm writing some PHP scripts that will only be used over our local Windows NT/2000 network. I've written a directory browser in PHP, but that only sees the server's local directories/files whereas I would also like to be able to see shared network directories. Since the PHP directory

RE: [PHP] Attitude of B van Ouwerkerk

2001-08-01 Thread scott [gts]
so now it's shifted from his attitude to your seeming inability to cope with words related to sexual intercourse? we all need to calm down and relax. -Original Message- From: Alexander Wagner [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Attitude of B van Ouwerkerk B. van

[PHP] Re: PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Keith Jeffery
http://www.soysal.com/PHPEd/ Although, after using it for a while I've decided that I simply like Ultra Edit better. www.ultraedit.com Keith Jeffery [EMAIL PROTECTED] Kyle Smith [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does it really exist? If so could

RE: [PHP] Visual Login

2001-08-01 Thread scott [gts]
if you go this route, you would, however, have to check for valid-login users on every page that you want to have security on. -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Subject: RE: [PHP] Visual Login One way would be to use a database (of any type) to store

[PHP] fopen(fd, w) doesn't work?

2001-08-01 Thread Ibrahim Noor
Dear all, I'm newbie with PHP, but it so nice for me. I tried to create file by fopen(fd, w) function, but it didn't work. Permission Denied, server said. I tried with fopen(ftp://user@pass:ftp.server.com/test.txt;, w) the address I changed according to my server host, but once again server

[PHP] Re: Hmmm?

2001-08-01 Thread Keith Jeffery
Simply indent formatting for readability. I personally don't indent after the ? tag, but to each his/her own. Kyle Smith [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Whenever i get a php script off a website why is it that most of the main parts in the script

Re: [PHP] Attitude of B van Ouwerkerk

2001-08-01 Thread Alexander Wagner
scott [gts] wrote: so now it's shifted from his attitude to your seeming inability to cope with words related to sexual intercourse? we all need to calm down and relax. Hey, all I said was that he did not RTFM, but RTM, the version without fucking. regards Wagner -- Madness takes its

[PHP] Re: fopen(fd, w) doesn't work?

2001-08-01 Thread Keith Jeffery
for the first part, make sure that you have write permission to the directory specified, and for the second, you can't open a file for writing from a remote location. Keith Jeffery [EMAIL PROTECTED] Ibrahim Noor [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

RE: [PHP] Example high-profile PHP sites

2001-08-01 Thread scott [gts]
www.audiogalaxy.com is almost entirely PHP -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 4:57 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Example high-profile PHP sites In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ralph

Re: [PHP] Sorry... but a good PHP editor for Linux/Unix

2001-08-01 Thread Mauricio T?llez Jim?nez
I think EMACS is the best choice for any language you like. Just install de php suport for EMACS. Bye On Tue, Jul 31, 2001 at 11:07:14PM -0300, Augusto Cesar Castoldi wrote: Sorry about talking about this subject, but a really wanna know if any one nows a good editor for linux/unix.

RE: [PHP] writing while reading

2001-08-01 Thread scott [gts]
try only locking the file on a write, *not* on a read. you are going to have many times more reads than writes, even on the busiest day what you need to have is a blocking-lock your writes and not bother with locks for reading. the way you have it setup now, there's no locking for writes,

RE: [PHP] OT!!: Attitude of B van Ouwerkerk

2001-08-01 Thread Bruin, Bolke de
People, with all respect I think this thread has become way offtopic to be on this list. Do you mind not cc'ing the list while replying to each other? -Oorspronkelijk bericht- Van: Alexander Wagner [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, August 01, 2001 4:39 PM Aan: scott

Re: [PHP] PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Miles Thompson
Kyle, This has been covered exhaustively and every time it appears it burns up bandwidth. You can check the archives at www.php.net, I believe through the support link. Some has also set up a page which describes the various editors that people use; I didn't bookmark it, but you will find it

[PHP] PHP and push buttons

2001-08-01 Thread Don
Hi, How do I make a Push Button call a PHP script? This is not a POST operation per say as I already have Submit and Reset buttons. What I'd like is to have my third button call a PHP script and process all the form data in an alternative manner to what the Submit does. As a FORM tag can only

Re: [PHP] Attitude of B van Ouwerkerk

2001-08-01 Thread Miles Thompson
What!!? I always thought it was the fine manual. Gosh, I'm so naive. Blushing in Nova Scotia - Miles At 04:39 PM 8/1/01 +0200, Alexander Wagner wrote: scott [gts] wrote: so now it's shifted from his attitude to your seeming inability to cope with words related to sexual intercourse? we

Re: [PHP] Sorry... but a good PHP editor for Linux/Unix

2001-08-01 Thread Sheridan Saint-Michel
If you are working by SSH I would suggest going ahead and taking the time to read the manual and use vim. There is more documentation on vim then you will probably ever need here http://www.vim.org/docs.html Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com

[PHP] function that will print the url for embedded links

2001-08-01 Thread sgibbs
I'm looking for a way to have a url for a link explode into the actual url address. So for example, on a dynamically created webpage, I have a link called: Contact. When someone chooses to view the printer friendly version of this page, I want the link on the the printer-friendly page to

[PHP] RE: Make associative array from two arrays

2001-08-01 Thread Tim Ward
How about ... foreach ($keys as $key=$value) $new_array[$value] = $vals[$key]; Tim -- From: elias [SMTP:[EMAIL PROTECTED]] Sent: 01 August 2001 15:16 To: [EMAIL PROTECTED] Subject: Make associative array from two arrays Hello!

RE: [PHP] Re: FAQ

2001-08-01 Thread Johnson, Kirk
I know of 3 php faqs (I know there are tons), maybe we should make a faq on how to find faqs? :) http://alt-php-faq.org/ http://www.php.net/manual/en/faq.php http://php.faqts.com Rasmus, do you think there would be any value in adding these 3 links to the PHP General Mailing List

[PHP] Strange behaviour while adding a line at the BOF

2001-08-01 Thread Er Galvão Abbott
Hi folks: I'm going nuts trying to add a line of data in the beginning of a text file. The text file looks like: 02_01 03_01 04_01 and so on. When I try to add a line so the text file becomes this: 01_01 02_01 03_01 04_01 I get the following result: _01 03_01 04_01 Here's how I'm

RE: [PHP] Re: issues with __sleep() and __wakeup()

2001-08-01 Thread scott [gts]
i added a (hopefully helpfull) addition to the online notes regarding magic-functions: http://www.php.net/manual/en/language.oop.magic-functions.php Here's what i posted, if anyone's interested: Here is a sample class and some test statements to demonstrate how __sleep() is used. If you do

RE: [PHP] Re: FAQ

2001-08-01 Thread scott [gts]
and adding a little explanation of the http://php.net/function syntax for searching the php.net site would be a big help too. -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re:

Re: [PHP] How can i make it so....

2001-08-01 Thread Sheridan Saint-Michel
The odd thing about PHP is sometimes you have to code backwards, That is your code is in a different order than the pages it produces. This is one of those times. You need to have the Successful login page first, and the login form second in an if statement. ie... ?php $auth = false; if

  1   2   3   >