[PHP] Re: installing php on apache

2001-12-17 Thread LaserJetter
You need to add lines to the httpd.conf file and maybe edit the php.ini file. On windows, the instructions for doing this are in install.txt which is found in the directory in which PHP was installed. If doing this doesnt help (make sure you restart apache!), I'm not sure what to do as my Linux

[PHP] http message

2001-12-17 Thread LaserJetter
Is there a way for PHP to attempt to open a URL and return the HTTP response header? For example, I want to make a PHP page which will redirect a visitor to a mirror site if it encounters a 404 Not found error whilst trying to open the website homepage. This test page will reside on a seperate

[PHP] Re: please help! ./common_db.inc'

2001-12-17 Thread LaserJetter
It couldnt open ./common_db.inc which you referenced in an include() function on line 2 of /var/www/html/myphp/ex.php Its a bit like the PHP version of the 404 not found message. Check the path for typing mistakes etc. You might like to try using ../../dir1/dir2 instead of ./ Caleb Carvalho

[PHP] Re: http message

2001-12-17 Thread LaserJetter
Thanks all of you. I'm sure one of these will work!! -- 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: mysql php error

2001-12-17 Thread LaserJetter
try ?PHP phpinfo(); ? to see if there's any clues in there make sure the mysql daemon is running (not sure how to do this) see if you can connect using the MySQL client (not PHP). If you can then MySQL is running ok It sounds like the mysql exetension is damaged of missing. Check its in the

[PHP] Re: electronic postcard recommendation?

2001-12-17 Thread LaserJetter
I've just been sending some from totl.net. I'm not sure how they do it though and I think they've written the code themselves. Brian Tully [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi there :) i've been asked to implement an electronic postcard app for

[PHP] dns

2001-12-19 Thread LaserJetter
Is there a way to set up a php page to act as a name server under windows? I dont have named etc on that OS. I was thinking of maybe having PHP read from the port used for DNS services and recording the MAC address of the machine in a dateabse for example and linking this to a name i.e.

[PHP] Re: Hiding Filenames

2001-12-21 Thread LaserJetter
You could stop it coming up in the status bar by using javascript IMG SRC=path.gif onMouseOver=JavaScript: window.status = 'Ready' Can PHP read a set of images into a file pointer or array and then echo them back? See the images thread from 20/12/01 in this newsgroup for how to do IMG

Re: [PHP] Question about CREATE_FUNCTION

2001-12-21 Thread LaserJetter
I understand what you want to know (I dont know myself though) I dont see why it should be significantly slower than any other function (unless you're doing it millions of times in a row!!) If it doesnt recommend using a different function in the manual, I would keep using the one you're

[PHP] PHP software tool

2001-12-22 Thread LaserJetter
Does anybody know of or can recommend any freeware text editing tools for editing PHP code in Win32? I can manage with Windows' Notepad but something with code highlighting etc and of a similar footprint to notepad would be useful. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP software tool

2001-12-22 Thread LaserJetter
Does 1st page work well with PHP? The website says its good for Perl, HTML and ASP but it doesnt mention PHP anywhere. :-s -Bd- [EMAIL PROTECTED] wrote in message 028901c18b1c$3c0e4d80$[EMAIL PROTECTED]">news:028901c18b1c$3c0e4d80$[EMAIL PROTECTED]... I use 1stpage from evrsoft.com .. not a

[PHP] Re: 4.0.6 Vs. 4.1.0 ?

2001-12-24 Thread LaserJetter
I found that 4.1.0 is not exactly backwards compatible r.e. the new more secure variables as I think you have to change one of the settings in php.ini to get it to work. I've had no real problems running it as a module under Apache 1.3.20 on Win98. Robert Dyke [EMAIL PROTECTED] wrote in

[PHP] Site running from MySQL

2001-12-24 Thread LaserJetter
Out of interest, would it be possible to load a webpage as a record in a MySQL database, having another field as say a number or a unique name so that a whole site could be placed in a database with a couple of php files? Is there a limit on the size of a field in MySQL which would stop you doing

[PHP] Re: phpbb and ikonboard forum scripts

2001-12-25 Thread LaserJetter
Ikonboard has a very nice interface and I know that its very popular but, as you thought, it is CGI based. I've never managed to get it working - maybe because I couldnt get Active Perl working properly (well, it was a 25MHz 486 with 8Mb RAM!!). If you're more into PHP I'd go with phpbb as you'd

Re: [PHP] Client side fatal PHP error

2001-12-25 Thread LaserJetter
Is there a utility out there that checks for typos, like a spell check but for code? They are the most annoying things ever and probably the hardest of errors to find in scrips. Something simple, even command line would be handy. Also, its interesting that only one user of the script got the

[PHP] Re: 4.10 New Vars Question

2001-12-26 Thread LaserJetter
There's some info in the release notes for 4.1.0 Edward Marczak [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! Two items in the new 4.10 change-log caught my attention: *Introduced a new $_REQUEST array, which includes any GET, POST or COOKIE

Re: [PHP] WebServer

2001-12-29 Thread LaserJetter
AOL UK say their ADSL service isnt good for hosting because it is asymmetrical: you can download data faster than you can send it out which is fine for surfing the net but not so useful for running a server.(I just think AOL dont want people hosting servers using their service though!) We have a

[PHP] What the hell?!?!

2001-12-31 Thread LaserJetter
I've just been preparing a site for upload from my local test server to the net and have come accross a php.error.log file which was 13.4Mb! I'm using PHP 4.1.0 and Apache 1.3.19 on Win98se and ever since upgrading to 4.1 PHP has been creating these error log files all over the place. Does anyone

[PHP] Re: What the hell?!?!

2002-01-01 Thread LaserJetter
I need a program which will let me open it! Using notepat just runs wordpad which wont let me scroll down to see what it says because it's still processing the file. Internet explorer didnt work and MS-DOS editor just said Out of memory and closed on me Never mind! Laserjetter [EMAIL PROTECTED

[PHP] Re: imap extensions..

2002-01-01 Thread LaserJetter
This sounds similar to the problem I had but with other extensions. Does the IMAP extenstion need any dlls from the c:\php\dlls folder to work? (You can find out this somewhere on www.php.net). If it does then you need to copy these to your system folder. (system32 folder probably). Better still,

Re: [PHP] Re: What the hell?!?!

2002-01-01 Thread LaserJetter
ed on me Never mind! Laserjetter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've just been preparing a site for upload from my local test server to the net and have come accross a php.error.log file which was 13.4Mb! I'm using PHP

Re: [PHP] Re: imap extensions..

2002-01-01 Thread LaserJetter
e looked around php.net and i can't find anything about extra dll's. Does anyone know where i can get an up to date version of php_imap.dll from? Maybe my version is old. Thanks Phil - Original Message - From: LaserJetter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January

[PHP] Re: Sending Generic TCP/IP Data

2002-01-03 Thread LaserJetter
use fsockopen to open a socket on the host and call it $f then fwrite($f,$data)?? would that work? LJ Jonathan Hilgeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a host and a port and I BELIEVE that the protocol is HTTPS but I'm not sure. In the

[PHP] Re: PHP Security Alert for Apache/Win32

2002-01-06 Thread LaserJetter
Can you not just delete the ScriptAlias line? What does that line actually do apart from create an Alias? LJ David [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Wow!, i tried it and it really works, this is serious man! is there a fix around it without safe

[PHP] Re: Running php in background?

2002-01-07 Thread LaserJetter
I had Apache running on Win98 and doing a pretty demanding job (well, for a 350MHz K2) and it slowed the machine down noticeably. If the PHP script timed out the computer came back to like but if i closed the browser window or clicked stop it seemed to keep doing it. Maybe MySQL is finishing off

[PHP] Re: Finding PHP Developers for Remote Project

2002-01-10 Thread LaserJetter
You could try guru.com LJ Richard Spangenberg [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I may need some help on a project I am working on. Does anyone know of a good source of PHP developers where I can advertise my needs? Rick -- PHP General

Re: [PHP] Form Question

2002-01-10 Thread LaserJetter
I've noticed on some web pages that when the back button is pressed the data in the fields is still there and sometimes it isnt. I would expect this with a password field but why does it only save the data sometimes? Mark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: Post CGI variable to PHP

2002-01-10 Thread LaserJetter
If you send a form on an HTML page using GET then the variables show up in the URL. If you send it using POST then they dont. With PHP 4.1.0 even if the variable is typed in the URL, PHP should only read the real variables which were submitted if $_GET[$varname] is used (or whatever it is!) I

Re: [PHP] does this work?

2002-01-10 Thread LaserJetter
you have a ?PHP tag missing between body and $tempsql. did you remove this for the purose of this posting or is this what's causing the problem?? Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Show all your code. Did you open a connection to the

[PHP] Re: SMS

2002-01-16 Thread LaserJetter
Site which offer SMS are also closing down / becoming unreliable as the UK networks are charging other network operators for sending messages to phones on their network. This doesnt really affect mobile phone users because the costs cancel out over time but discrimnates against web sites who dont

Re: [PHP] Search Engine

2002-01-16 Thread LaserJetter
If I wanted to do a search engine for the web (and maybe for just a site) I would set up a MySQL database and have a record for each site which is included in the index. There would be fields for URL, Page title, Keywords and maybe description / text extract from the URL. It would be quite a

[PHP] WAP

2002-01-17 Thread LaserJetter
I was fiddling around with the Nokia WAP toolkit the other day and I've created a pretty little WAP site - just listing dates and it has a WBMP image as a welcome screen. Whilst looking for someone to host the site, I noticed a review for f2s which said allows PHP to be combined with WML That

[PHP] Re: password=password('$password') ----- ? help me... :P

2002-01-19 Thread LaserJetter
Try changing all the single quotes to double quotes (' to ). As far as I know, PHP only expands the contents of the variable if it inside double quotes, otherwise it reads it as $variable LJ Hawk [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've been trying

[PHP] Re: password=password('$password') ----- ? help me... :P

2002-01-19 Thread LaserJetter
Forget that last post - sorry!!! Instead of using password('$password') in the query string, I would insert a line before connecting to the DB: $newpass = password($password)-- dont need quotes round here then $query = SELECT username,password FROM users WHERE username=$username AND

[PHP] Re: php login scripts

2002-01-21 Thread LaserJetter
Depending on how secure the login information needs to be, you could just store it in a text file, maybe using password() to encrypt passwords. You could then access it using fopen() and save the contents of the file in an array. I'm not too hot on login and authentication though myself! I did

[PHP] Re: The Euro symbol, default charset and htmlentities()

2002-01-24 Thread LaserJetter
can you not print the charset inside one of the HTML tags? (DOCTYPE it might be in). Also, if you dont want to keep typing out htmlentities(¤,ENT_QUOTES,iso-8859-15) to get a euro, just do: $euro = htmlentities(¤,ENT_QUOTES,iso-8859-15); LJ Sönke Tesch [EMAIL PROTECTED] wrote in message

Re: [PHP] emulate a browser

2002-01-24 Thread LaserJetter
If it is frame forwarded, you would get a 300 OK status becuase you have accessed a web page and it has been server OK. The webpage (which contains the FRAMESET tags) then send a request to another server to get the page to be redirected to. The only way to check for this would be to see if the

[PHP] Re: Dual Pentium Pro 200 vs. Single Pentium II 450

2002-01-25 Thread LaserJetter
I've set up a PHP server (using Apache, MySQL and PHP module) successfully on the follwoing systems: Win98, Pentium120, 32MB Ram -- pretty fast Win95, 486-100Mhz, 16MB Ram -- Was speedy apart from the dodgy hard disk Win95, 486-25Mhz, 8Mb Ram -- chugs along quite nicely as a personal web

[PHP] Re: Human Resource managment system

2002-01-28 Thread LaserJetter
Not quite your thing, but I'm sticking the school's timetable on a server so that anyone can call up their lesson timetable and also find out teacher's timetables and whether or not classrooms are free. The only way I found I could do this was in MySQL and although I dont know of any projects, I

Re: [PHP] COS function

2002-02-01 Thread LaserJetter
Maybe this is something which should be changed in future PHP releases. Even the Windows Calcuator and my old scientific calc know that cos 90º is 0!! Out of interest, have you tried any results using trignonometrical identities ie tan() = sin() / cos() to see if the error cancels out in the

[PHP] Re: external programs

2002-02-01 Thread LaserJetter
Is the external exe waiting for more input from you before it finishes? Also, is the call to system() or exec() whatever inside HTML or BODY tags as sometimes this makes a difference as to whether or not anything is displayed - some characters are ignored by HTML LJ Chris Randall [EMAIL

[PHP] Re: IP based redirection

2002-02-02 Thread LaserJetter
Don't worry, I'll post back to yourmessage with something relevant! I would recommend redirecting according to what language the user has selected in their browser as an IP address can be unreliable e.g. someone in India could be using an IP address which is registered to an English speaking

Re: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-04 Thread LaserJetter
I read somewhere that if you type an underscore it clears authentication info. I haven't tried it and it seems obscure but its worth a try! LJ Frederick L. Steinkopf [EMAIL PROTECTED] wrote in message 018201c1ac67$c4d9c6a0$851a88ac@frederis">news:018201c1ac67$c4d9c6a0$851a88ac@frederis...

[PHP] Re: whic OS is under?

2002-02-05 Thread LaserJetter
There is something. Its one of the enironment vars I think. Look for UNAME or U something. I'm not sure if this gives the current OS or the OS on which PHP was compiled though. Ivo Stoykov [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi group: Is there a

[PHP] Re: !isset ??

2002-02-08 Thread LaserJetter
If you try and use $var in an operation ( i.e. .= == etc) and you get an error saying Undefined variable then isset($var) = FALSE LJ Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hm. I hope I'm not opening an old wound: Curious about the

[PHP] possible bug in date() function

2002-02-10 Thread LaserJetter
Using the code below: $buffer['Last_access'] = 1013336429; $date = date(H:i D, nS M Y,$buffer['Last_access']); print $date; prints 10:20 Sun, 2th Feb 2002 I didnt know there was a 2th of February!! Is this a bug and do I get a prize for finding it? ;o) LJ -- PHP General Mailing List

[PHP] Re: possible bug in date() function

2002-02-10 Thread LaserJetter
I've just realised that the suffix for the day of the month is correct for today (1013336429) but it isn't the 2nd today and my clock is set right. Anyone got any ideas? Laserjetter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Using the code below:

[PHP] Making apps

2002-02-11 Thread LaserJetter
I remeber a while ago there was a question asking if you could make standalone applications but written in PHP rather than VisualBasic or C etc and somebody replied with a website which could help. Could someone re-post the message please! I can't find it in the archives! I think GTK might be

[PHP] How do I send a POST request?

2002-02-12 Thread LaserJetter
I'm currently sending an HTTP request for clientlogin.php?date=2002-02-12type=nl and doing this by opening a socket connection with fsockopen, fwriting GET /clientlogin.php?date=2002-02-12type=nl.. to the socket and then using fgets to read the response. How do I send a POST request using a

[PHP] Re: Refreshing a page.

2002-02-12 Thread LaserJetter
If the login form is processed by a PHP script, just do header(Location: newpage.html); This will either redirect the page in the fram or redirect the whole document in the browser window. LJ Morten Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi,

[PHP] Opening sockets

2002-02-24 Thread LaserJetter
I'm running GTK on Win32 and have made an app that connects to a server and downloads some data. I tested it over my LAN and it works fine, using both 10.0.0.1 and gethostbyname(amd) as the host in fsockopen(host, 80, 30) I've now tried running it over the internet, trying to connect to the

[PHP] Re: Opening sockets

2002-02-24 Thread LaserJetter
!!! Laserjetter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm running GTK on Win32 and have made an app that connects to a server and downloads some data. I tested it over my LAN and it works fine, using both 10.0.0.1 and gethostbyname(amd) as the host in fsocko

Re: [PHP] Help me!!!Can I use PHP to send SMS message???

2002-03-01 Thread LaserJetter
If you had a suitable cable, phone and controlling software, You could send the SMS using the mobile phone. Not sure how you interface with external apps from PHP though. Frank Hertogs [EMAIL PROTECTED] wrote in message

[PHP] Re: PHP Mail() Question

2002-03-08 Thread LaserJetter
Its probably a problem with your mail server software not being able to send email out. I think you need t tell it to connect to another email server outside of your network Mindless Bot [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I hope maybe you

[PHP] Re: index.php question

2002-03-17 Thread LaserJetter
Try adding a slash to the end of the URL i.e. www.whatever.com/~jondoe/ and see if that helps. Maybe Apache tries to parse your PHP file as if it is an HTML file. Omland Christopher M [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I'm new to the