[PHP] Re: index.php question
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 mailing list, I hope I'm in the right spot. I have installed php, and .php files work fine, unless they are my index file. For example http://whatever.com/~jondoe/info.php will work. But if I make a index.php file and go to http://whatever.com/~jondoe it wont work. I can view the source and see my php code, which I know means the server isn't translating it. I'm running RH LINUX, and running apache webserver. I have checked the httpd.conf file and the load modules lines are in there, and they are correct??(I THINK) Any help would be appreciated. Thank You. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Mail() Question
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 can help me with this problem... I've been working with PHP/mySQL for about 6 months now, this is causing quite a headache! When I try to send confirmation email (from a form the user fills out) - it works fine when sending within the company network but fails when sending to other emails (like hotmail accounts). Any suggestions? I have full rights to the php.ini file on our server, I've tried editing the send_mail path, nothing seems to work! The server is running on a Solaris 5.8 machine - I'm assuming Apache server. $email, $first, $last are pulled from a submitted form (using POST). $welcome is a standard message used in several places - easier to change one file when changes are required. $toaddressSent = $email; $subjectSent = $first $last, Your Request Has Been Received; $contentSent = $welcome; mail($toaddressSent, $subjectSent, $contentSent, $additionalSent); Thanks! Brian _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help me!!!Can I use PHP to send SMS message???
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 004f01c1c0a4$b5752f50$3400a8c0@fritzzz57619dp..">news:004f01c1c0a4$b5752f50$3400a8c0@fritzzz57619dp..; Another way of doing it is thru an e-mail to sms gateway; free or paid. That way you could make a simple form and use mail(); Just a thought. Frank. -Oorspronkelijk bericht- Van: Simon Willison [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 28 februari 2002 12:30 Aan: hei CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] Help me!!!Can I use PHP to send SMS message??? hei wrote: Help me!!!Can I use PHP to send SMS message???If yes, how can I use it??? (((Please e-mail the answer to me [EMAIL PROTECTED]))) One very cheeky way of doing this would be to sign up to one of the free SMS services on the web (such as lycos mobile) and set up a PHP script that can pretend to be a browser, log in to your account and post a message to the send SMS form. You could do this using something along the lines of CURL or Snoopy (I recommend Snoopy as it doesn't require anything to be installed on your web server): http://snoopy.sourceforge.net/ You would have to figure out how the authentication scheme for your chosen web-based SMS service works (most of them use cookies). The main disadvantage is that it's a bit of a dirty hack and it would stop working if the free web service went down or changed the way its authentication / SMS form worked. Free services also tend to limit you to a certain number of messages a day. The professional alternative is to invest in some kind of web to SMS gateway, but I think that's quite an expensive option. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Opening sockets
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 server www.lottery-machine.co.uk or gethostbyname(www.lottery-machine.co.uk) but it won;t connect to the server. The window that displays the downloaded data contains a webpage which is produced by the web host when there's an error of some kind. If I type in the GET request (www.lottery-machine.co.uk/clientlogin.php?username=mepassword=password) in a web browser it works fine as expected. I'm in touch with them about the problem but does anyone know what is causing this? Does the host only accept connections from web browsers or something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Opening sockets
Well, after browsing through the HTTP/1.1 standards I found that an optional header Host after the GET request could be used. I now write GET /clientlogin.php?username=mepassword=mypassword HTTP/1.0\r\nHost: www.lottery-machine.co.uk\r\n\r\n to the open socket... and it works fine!!! 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 fsockopen(host, 80, 30) I've now tried running it over the internet, trying to connect to the server www.lottery-machine.co.uk or gethostbyname(www.lottery-machine.co.uk) but it won;t connect to the server. The window that displays the downloaded data contains a webpage which is produced by the web host when there's an error of some kind. If I type in the GET request (www.lottery-machine.co.uk/clientlogin.php?username=mepassword=password) in a web browser it works fine as expected. I'm in touch with them about the problem but does anyone know what is causing this? Does the host only accept connections from web browsers or something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How do I send a POST request?
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 similar method? I'm doing this in PHP-GTK so I cant write an HTML form and submit it with Javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Refreshing a page.
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, I got a page, which uses frames. When a user logges in I would like to refresh a frame, but I don't know how to do that. Can anybody help me? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Making apps
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 what I'm looking for but I'd like alternatives if it isn't. LJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] possible bug in date() function
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: possible bug in date() function
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: $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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: !isset ??
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 proper way to test for the existence of a variable, I decided to read up on isset() at php.net's function manual pages. It seems at first to be a way to test whether or not a variable has been set. But reading the annotations below the documentation is mind boggling. Back and forth, it seems to go -- and then to find out that one method is to be used to test for POSTed variables, and another to be used for GETted variables (for $_POST, use $_POST['var'] !='' , and for $_GET, use !isset($_GET['var'])). Pretty confusing. Can anyone shed some light on whether or not there is a final definite way to do this? I've used (!($_POST['var'])) with no problems in the past, but does good coding style suggest that I use (!isset($_POST['var'])) now? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: whic OS is under?
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 way to guess which OS the script is running? I couldn't find anything in the manual about this. Thank you Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache authorization: how to logout. Help!
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... While I've never done this before, couldn't you use a session and have session variables tied to the user name and password and then have the logout function kill the session? - Original Message - From: Rodolfo Gonzalez [EMAIL PROTECTED] To: Matthew Walker [EMAIL PROTECTED] Cc: Aras Kucinskas [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 8:26 PM Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help! On Fri, 1 Feb 2002, Matthew Walker wrote: Does anyone have the answer for this question? I need it too... As I learnt before, it's not possible without closing the user's browser. My site is in directory which is protected with .htaccess file. I want to develope a logout function, which can reset Apache authorization. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: IP based redirection
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 company. If you only wanted to allow certain users access to certain pages (those using IP addresses which you know are from an Indian ISP) then this method would be ok. You can read the $REMOTE_ADDR or $X_FORWARDED_FOR variables from any PHP page usually and this will give you the IP of the user. If your site is running on Apache web server, it has a built in language selection 'service' which loads a page with a different file extension depending on the language chosen by the user. If the user had [en-gb] selected (english - uk) as their first language and a request is sent for index.htm, Apache will produce index.htm.en instead but it will appear to the user as index.htm (this might only work though if you request index.htm by typing http://www.youraddress.com/). Similarly, if the user had [in] selected for Indian Apache would produce index.htm.in You have to enable this in httpd.conf and there's more infor in the Apache docs I think. LJ [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Could you please help us, to redirect some of our pages to based on IP address. We have used SmartRedirect program but it is not working on with some of our ISP's IP address. We are located at India, and like to have some language specific pages to be displayed to our Indian user while english language to other world. Thanks, Hemant Kumar DInsol.com http://www.dinsol.com/ -- 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]
Re: [PHP] COS function
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 end? Also, does arc cos(0) give you 90º? Bas Jobsen [EMAIL PROTECTED] wrote in message 0201311400220T.00732@bjobsen">news:0201311400220T.00732@bjobsen... Cause there is no exact representation of PI, you get a floatingpoint representation of nearly zero. Try: echo intval(cos(0.5*pi())); echo printf(%.1f,cos(0.5*pi())); Op donderdag 31 januari 2002 13:39, schreef michael Rabbitte: I was wondering about the cos fuction in PHP when I try to get cos of 90 degrees I'm not getting 0 but some weird no. (i.e 6.28...E-17) is there anything I can do to get zero as my answer. P.S. I have converted my degrees to radians! Mike. -- 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: external programs
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 PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm having a bit of a problem, i have in my php script a call to system(), it calls an external .exe, php hangs waiting for a return value from the .exe [i believe], i've recompiled the program i'm calling with system() to return 0 and even 1, but it still does not work, would any body have any suggestions perhaps? -- 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: Human Resource managment system
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 think this is the kind of structure you would be after. M.E. Suliman [EMAIL PROTECTED] wrote in message 012c01c1a822$44203380$c2b81fc4@avalanche">news:012c01c1a822$44203380$c2b81fc4@avalanche... Hi Are there any PHP Projects that are developing a HR management system. We hope to create this and in future integrating with payroll and tax deductions etc. I will appreciate anyone who can advise where I can find info relating to this. Thanks Mohamed - Original Message - From: Michael Kimsal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 27, 2002 8:08 PM Subject: [PHP] Re: CGI vs. ISAPI Benjamin Deruyter wrote: I'm fairly new to PHP, having worked with ColdFusion in the past. Can somebody shed some light on to the key differences between the CGI installation and the ISAPI installation. I working with IIS on Win2k and using MySQL for a db server. Thanks. - Ben From all practical accounts the ISAPI is still not stable under Windows. The claim is that PHP itself is stable, but the majority of the DLL files which provide the additional functionality (IMAP, GD, etc) are NOT stable (threadsafety I think is the issue) so unless you're doing something extremely basic ISAPI may not be the answer. Only you can tell for certain - set it up on your system and if it works, great. If it starts to crash, don't waste hours or days or weeks trying to fix it - it's not your problem. Just go back to CGI. If you're an experienced C coder under Windows, jump in and try to help debug and patch it, otherwise just stick with CGI. Michael Kimsal http://www.tapinternet.com/php/ PHP Training Courses 734-480-9961 -- 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 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: Dual Pentium Pro 200 vs. Single Pentium II 450
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 server. I think either of your two configurations would be more than sufficient as Mike has said. I've never had any serious performance problems on any hardware using PHP and Apache. LJ Phil Schwarzmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have two PCs, one is a Dual Pentium Pro 200Mhz and the other is a Pentium II 450Mhz (both have 64MB) I want to set one of them up using Linux Red Hat 7.2, Apache, MySQL, and PHP. I only plan to have about 1-3 users accessing it at any one time. Which of those CPUs do you think is better? Will Linux take full advantage of those Dual Processors? Thanks for your advice! -- 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: The Euro symbol, default charset and htmlentities()
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 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everybody! I'm a bit lost. The original problem was (and still is) to get the Euro symbol from a iso-8859-15 string into the HTML code output by a PHP-script (4.0.6 by the way). At first it worked fine using htmlentities(¤,ENT_QUOTES,iso-8859-15). However, this is a bit long, I would have plenty of htmlentities() to fix, and since -15 should be the considered the current standard rather than the outdated -1 it replaced, I wanted to figure out how to tell PHP and its htmlentities() which character set to use as default. First question: Where's the configuration for that? mbstring.* ini php.ini doesn't seem to be the right place (and I didn't expect it anyway). So, after learning that mbstring.* doesn't work I removed these from php.ini and now the extended htmlentities() doesn't work anymore. The line echo htmlentities(¤,ENT_QUOTES,iso-8859-15); results in a Wrong parameter count for htmlentities()-warning. Oops? Second question: What's wrong now? I'm sure it worked earlier and I can't see that this line is wrong anyway. htmlentities() expects upto three arguments, there are three. And, not related to a problem, the third question: Did anybody yet consider setting iso-8859-15 as default charset throughout PHP instead of iso-8859-1? Regards, soenk.e -- 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]
Re: [PHP] emulate a browser
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 page you have sent the request for contains the FRAMESET tags (use GET instead of HEAD) but this would be unreliable as a lot of websites start with a frame based page anyway. LJ Frank Benady [EMAIL PROTECTED] wrote in message 004301c1a4ba$478a41c0$0101@phoenix">news:004301c1a4ba$478a41c0$0101@phoenix... It works really nice, Michael, thanks again. I have one more question, maybe you can answer me : If the domain name has been redirected with hte permanent redirect, I get the 301 Moved Permanently header response. But if the domain name has been frame-forwarded, I have no header response. Is it normal ? Do you know if there is some alternatives so I could check if the domain name is used, even on a frame-forward type redirectection ? Moreover, if the domain has been redirected, is it possible to get the url it has been redirected to ? Thanks again for your help Frank - Original Message - From: Michael Sims [EMAIL PROTECTED] To: Frank Benady [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 2:28 AM Subject: Re: [PHP] emulate a browser At 01:45 AM 1/24/2002 +0100, Frank Benady wrote: Hi All Can I emulate the first request of a browser when it tries to connect to a distant server using a domain name and parse the answer from the remote server to know if there is a website located there or if there is no hosting (or even some kind of forwarding) configured for this domain name ? Is ther some http functions in PHP which permit to do this test ? You can use fsockopen() to open a socket connection to a remote host via port 80 (HTTP). If fsockopen() returns a valid file pointer then that means there is something listening on port 80 on the host (99% it will be a web server). You could then use fputs() to send a request to the server, such as: HEAD / HTTP/1.0\r\n\r\n Normally browsers use GET instead of HEAD, but in your case you are only interested in the servers response (the HTTP headers) and not the actual file/page itself. You could then use fgets() to read the response sent back from the server and parse it to get the information you wanted (for example, look for a Location: ... line in the headers to see if the page is trying to redirect the browser). I have a function that checks to see if a particular file is available via HTTP from a remote host. It takes a full URL and returns true if the page/file exists, and false if it doesn't. With some work you could modify this script to achieve what you want. I'm posting it below. Ask if you have any questions about it. Oh, BTW, I'm sure that I have (as usually) went totally overboard with this function and someone will now probably point out that PHP has something built in to do what I'm doing here...but I couldn't find it and I had fun writing this function anyway. :-) ? function http_file_exists ($url) { if (!preg_match(/^http:\/\/([^\/]+)\/.*$/i,$url,$matches)) { return Error - incorrect format; } else { $host = $matches[1]; $fp = fsockopen ($host, 80, $errno, $errstr, 30); if (!$fp) return Error - couldn't connect to host; else { fputs ($fp, HEAD $url HTTP/1.0\r\n\r\n); $response = fgets ($fp,128); fclose ($fp); return (eregi(^.+200 OK.+$,$response) ? true : false); } } } ? -- 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: php login scripts
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 get it working, there was a useful example in the PHP manual. LJ XX XX [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi. im new. i installed a login script on my site and after a few days, it stopped working. i reinstalled it and it still refused to work after a dew days. can anyone send me a good login script preferably with no MySql? im very busy atm with all my school stuff. Thanks aron _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- 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: password=password('$password') ----- ? help me... :P
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 to get this to work for a while, and everyone says that I should use the same thing, but it doesn't work, can anyone tell me what I'm doing wrong? from the form on the previous page I have the $username and $password vars mysql_connect($host, $user, $pswd); mysql_select_db($db); $query = SELECT username,password FROM users WHERE username='$username' AND password=password('$password'); $result = mysql_query($query); $num = mysql_num_rows($result); the $query line is made up from what everyone has told me to write.. I tried to add a list($usarname, $pessword) = mysql_fetch_row($result); and it returned .. but when I removed the AND password=password('$password') part the list showed the username and the password in encrypted form I don't know how this could help me in any way, but atleast it shows I have an encrypted password, but the problem is that the line everyone uses doesn't work.. maybe I need to change some setting in mysql och php.ini or something? anyone have any idea? I know I've asked this several times but it doesn't seem like I'm understood with my problem. Hope I will be now. Hawk -- 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: password=password('$password') ----- ? help me... :P
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 password=$newpass; As $username and $newpass are already inside double quotes you dont need to put them in again!! LJ Hawk [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've been trying to get this to work for a while, and everyone says that I should use the same thing, but it doesn't work, can anyone tell me what I'm doing wrong? from the form on the previous page I have the $username and $password vars mysql_connect($host, $user, $pswd); mysql_select_db($db); $query = SELECT username,password FROM users WHERE username='$username' AND password=password('$password'); $result = mysql_query($query); $num = mysql_num_rows($result); the $query line is made up from what everyone has told me to write.. I tried to add a list($usarname, $pessword) = mysql_fetch_row($result); and it returned .. but when I removed the AND password=password('$password') part the list showed the username and the password in encrypted form I don't know how this could help me in any way, but atleast it shows I have an encrypted password, but the problem is that the line everyone uses doesn't work.. maybe I need to change some setting in mysql och php.ini or something? anyone have any idea? I know I've asked this several times but it doesn't seem like I'm understood with my problem. Hope I will be now. Hawk -- 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] WAP
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 would be a pretty neat thing to do - I could have a PHP script automatically port every page to WML and WBMP images. The problem is, how do you include PHP in a WML file? Do you have to use SCRIPT LANGUAGE=php/SCRIPT in a .wml file or can you use .php files? (I can't just fidddle about because I don't have a WAP phone yet!) Also, and I know this isn't really anything to do with PHP, what are the dimensions in pixels of a typical WAP phone screen? I checked my site using the emulator in the Nokia Toolkit and the one at TagTag.com and my WBMP image fitted nicely in the middle of the screen. But when my girlfriend showed it me on her phone, only about a third of the image fitted on!! Making the image smaller wouldn't be a problem but I dont really know what size to make it. Any directions to some useful info would be greatly appreciated. LJ -- 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: SMS
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 earn revenue from recieving messages. Yogesh Mahadnac [EMAIL PROTECTED] wrote in message 004101c19d88$517527b0$[EMAIL PROTECTED]">news:004101c19d88$517527b0$[EMAIL PROTECTED]... Hi everyone! I'd be grateful if someone could please tell me a link where I can find a good tutorial on how to develop a SMS tool with PHP, or if somebody has already developed something like it, or if there are any experts around, please give me some information about it. Thanks and regards, Yogesh Mahadnac. -- 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]
Re: [PHP] Search Engine
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 simple solution and I'm not sure about performance. It would be quite easy to add /modify/delete records as well using this method Greg Schnippel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... * On 15-01-02 at 12:09 * Yogesh Mahadnac said Hi all! I want to develop a search engine in PHP for a portal that I'm working on at the moment, and I'd be glad if someone could please show me how to do it, or if anyone knows of a link where i can find a tutorial for that. I don't think PHP is really a very good language for a genuine www search engine. (although it works very well on site-wide basis) I'm sure more knowledgeable people than I can make some alternative suggestions but I'm certain that PHP won't be the best tool for the job. I would concur with what everyone else is saying. If you need a search engine and you have system-level access on your machine, your best bet is to set up either htdig or mnogosearch (open source search engine packages) because they already have done the hard work of figuring out fuzzy matching and search ranking. http://www.htdig.org/ http://mnogosearch.org/ Alternatively, if you are using a database you can use some tricky sql statements to search your records for the user's search query. Here's a good tutorial that should get you started on this route: http://www.devshed.com/Server_Side/PHP/Search_Engine/page1.html -schnippy -- 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: Finding PHP Developers for Remote Project
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 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]
Re: [PHP] Form Question
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 PROTECTED]... Just let the browser cache it. On Thu, 10 Jan 2002 16:30:01 -0400, Lerp wrote: Hi there, how do I keep values in a form if the user has to go back and fill in some missing fields? Thx Joe :) -- 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: Post CGI variable to PHP
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 have no idea how to combine PHP and Perl - not something I've done. LJ Benjamin Bostow [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to pass variables from a CGI/Perl script to a php page. I know how to pass it through the url (i.e. page.php?tmp=[var1]tmp2=[var2]) but need to know how to pass it so that the information does not show up in the url. Benjamin __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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]
Re: [PHP] does this work?
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 MYSQL server? If so, show the code. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:29 PM To: PHP Subject: [PHP] does this work? It seems that I have a parse error somewhere in the following code (since that's the only code in my script, it's a test script): // arraytest.php $tempsql = SELECT COUNT(*) AS count FROM divisions; $tempresult = mysql_query($tempsql, $db); $temprow = mysql_fetch_array($tempresult); echo $temprow[count]; Yet, it works fine in the mysql client. Thus, I am led to believe that PHP is not capable of constructing the same kinds of SQL statements that can be constructed in the mysql client. Is this the case? Erik PS: what I am -really- trying to do is dynamically fill in a select listbox with options that correspond to all of the records in a given table. Like so: form select ?php foreach ($record_id_and_record_name_pair_pulled_from_mysql_query) { print(option value=\${record_id}\${record_name}/option); } ? /select /form but I am unsure of how to grab multiple values from the mysql_query() and load them into an array. Has anyone done this before? -- 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 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: Running php in background?
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 the query it was last given until it terminates or whatever. If a big, complex query was sent through lots of records this one quesry could take a long time to sort out LJ James Hudnall [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wrote a php program that has to do a lot of processing on a couple large mySQL tables that can take hours, so often the page will time out or kick back a cannot find server errir. But it seems by checking the DB that records are still being updated. IS it possible the job runs in background even though it fails to delive the final results in the browser? I don't need the final results, it just says when the job is completed. Ideally, I would like to run the job in the background anyway. Can that be done? -- 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: PHP Security Alert for Apache/Win32
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 mode like GED suggested? Folks running Apache/Win32 should read this: http://www.securiteam.com/windowsntfocus/5ZP030U60U.html If you run in CGI mode you likely have a line similar to the following in your httpd.conf: ScriptAlias /php/ \C:php\ Also, if you run SAPI mode (apache plugin mode) and used to run CGI, make sure that that line is commented out. Has someone else got an idea for a workaround, without having to go into safe-mode? Would safe-mode be able to prevent this? -GED Northern.CA ===-- http://www.northern.ca Canada\'s Search Engine -- 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: Sending Generic TCP/IP Data
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 event that it's not using HTTPS protocol - how would I go about sending just TCP/IP packets through a socket to the host, since cURL only supports certain protocols? - Jonathan -- 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: What the hell?!?!
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] 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 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 know what to change in php.ini to stop it doing this? Also, apart from my coding being rubbish and causing lots of errors, does anyone know of any reason why an error log file would grow to such a huge size? The page has onle been accessed a few times and I can't think of any way a single page could create 1Mb of error text on each hit. LJ -- 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: imap extensions..
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, why not just copy the lot into that folder to save future hassle!! ;o) LJ Philip Jeffs [EMAIL PROTECTED] wrote in message 000a01c192fb$2d9153b0$01010101@PHIL">news:000a01c192fb$2d9153b0$01010101@PHIL... Hi, I'm having trouble getting the imap extensions to load. I'm running Windows2000 with IIS5. I've put 'php_imap.dll' in 'c:\php\' and i've checked that the extensions directory in php.ini is set to 'c:\php\' I still get told that php was 'unable to load dynamic library 'c:\php\php_imap.dll' Any help would be gratefully recieved. Thanks, Phil - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL PROTECTED] (daytime) [EMAIL PROTECTED] (evening) - -- 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]
Re: [PHP] Re: What the hell?!?!
Nice one, thanks! I forgot about using the more command!! David Jackson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... copy php.log php.txt, now you have a static log to look at. then do more php.txt this will display a screen at a time,hitting space goes to the next screen. To do more advanced work with text files goto: http://simtel.net gnuish directory and download gawk and grep, mainly grep, NOTE: using grep is O.T. for this forum, but you in a nutshell, the command string would look this: grep -i seach_string filename |more or grep -i fatal* filename |more, you get the idea. 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] 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 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 know what to change in php.ini to stop it doing this? Also, apart from my coding being rubbish and causing lots of errors, does anyone know of any reason why an error log file would grow to such a huge size? The page has onle been accessed a few times and I can't think of any way a single page could create 1Mb of error text on each hit. LJ -- 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 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]
Re: [PHP] Re: imap extensions..
http://www.php.net/manual/en/install.windows.php#install.windows.extensions I'm not sure if this says you need an extra dll for just PHP3 though. Philip Jeffs [EMAIL PROTECTED] wrote in message 002501c19307$6824a250$01010101@PHIL">news:002501c19307$6824a250$01010101@PHIL... I've 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 01, 2002 8:32 PM Subject: [PHP] Re: imap extensions.. 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, why not just copy the lot into that folder to save future hassle!! ;o) LJ Philip Jeffs [EMAIL PROTECTED] wrote in message 000a01c192fb$2d9153b0$01010101@PHIL">news:000a01c192fb$2d9153b0$01010101@PHIL... Hi, I'm having trouble getting the imap extensions to load. I'm running Windows2000 with IIS5. I've put 'php_imap.dll' in 'c:\php\' and i've checked that the extensions directory in php.ini is set to 'c:\php\' I still get told that php was 'unable to load dynamic library 'c:\php\php_imap.dll' Any help would be gratefully recieved. Thanks, Phil - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL PROTECTED] (daytime) [EMAIL PROTECTED] (evening) - -- 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 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] What the hell?!?!
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 know what to change in php.ini to stop it doing this? Also, apart from my coding being rubbish and causing lots of errors, does anyone know of any reason why an error log file would grow to such a huge size? The page has onle been accessed a few times and I can't think of any way a single page could create 1Mb of error text on each hit. LJ -- 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]
Re: [PHP] WebServer
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 webserver at school: It doesnt get heavy useage but we run VNC, a chat server, ftp server, MySQL and Apache/PHP on Win98 and dont have any problems with performance! Brent Rieck [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ricardo, I'd bet that behind a 256kbps connection you'll run out of bandwidth long before you run out of CPU, memory, or disk on any machine that costs more than about $500USD - but your mileage may vary depending on your application. My personal experience is that behind my DSL connection, I run out of bandwidth far before I run out of CPU and memory on my PII 233 that's running a reasonably complex web app with heavy DB usage. --Brent On Fri, 2001-12-28 at 05:30, rick wrote: Dear Members , Does anybody of you have a webserver at home using ADSL or other connections ? If any , could you tell me What would be the acceptable Hardware to run 5 or more sites at home with an 256 k ADSL ? (Memory , proccesor , etc etc ) Do I have to have Two Servers ? (The WebServer ) and the Intranet Server to access through my computer ? Would you help me please in a near future with a few questions about how to set up and so on .??? Thanks guys in advance Ricardo -- 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: 4.10 New Vars Question
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 variables. Like the other new variables, this variable is also available regardless of the context. (Andi Zeev) *Introduced $_GET, $_POST, $_COOKIE, $_SERVER and $_ENV variables, which deprecate the old $HTTP_*_VARS arrays. In addition to be much shorter to type - these variables are also available regardless of the scope, and there's no need to import them using the 'global' statement. (Andi Zeev) However, I can't seem to find any documentation regarding these variables on the php.net site. Any pointers? Am I missing something obvious? Thanks! -- Ed Marczak [EMAIL PROTECTED] -- 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: phpbb and ikonboard forum scripts
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 find it easier to tinker around with to get it looking how you wanted. Indera [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I am trying to decide between these two scripts and was wondering if anyone has either of them installed. The one thing I need that I can't figure out if either of them have is whether or not, I can hide categories (that contain the forums and topics) on the category page and based on a users log-in have them enabled. If that is not possible is it possible to create 2 category pages and store them in one database, (hosting company only allows one instance of a forum script to be installed) one for the forums that everyone that comes to my site can see and another category page that will actually only be available in the restricted members only page. If it helps, here are the links http://www.phpbb.com and http://www.ikonboard.com I think I prefer the phpbb forum because ikonboard uses cgi scripts, or it least that's what it looks like. Any help would be greatly appreciated. Thanks Indera -- 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]
Re: [PHP] Client side fatal PHP error
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 error. What about all the others? Are they not as considerate as this one guy who actually reported the problem? Philip Olson [EMAIL PROTECTED] wrote in message Pine.BSF.4.10.10112252053030.8996-10@localhost">news:Pine.BSF.4.10.10112252053030.8996-10@localhost... Call to unsupported or undefined function srtoupper() in on line 82. srt != str (typo). if (strtoupper(substr($xmbrcode,11,1)) != B strtoupper(substr($xmbrcode,11,1)) != P srtoupper(substr($xmbrcode,11,1)) != H srtoupper(substr($xmbrcode,11,1)) != O) { See above. Btw, consider something like: $str = '123456789abcdef'; $bad = array('B','P','H','O'); if (in_array(strtoupper($str{11}),$bad)) { echo 'boo'; } I can't believe people code on Christmas :) Warm regards, Philip Olson -- 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: 4.0.6 Vs. 4.1.0 ?
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 message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi ... I'm getting ready to do a custom install of PHP on a Pair Networks server, and I'm wondering which version I should go with. It seems like version 4.1.0 has some major changes and new features, which can sometimes create bugs in the world of software. What are your thoughts? Pros and Cons? Thanks in advance. Robert Dyke Montana Software http://www.montanasoft.com/ [EMAIL PROTECTED] * For the best results please include the text of this message (cut and paste if necessary) in your reply * -- 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] Site running from MySQL
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 this though and would it be noticeably slower that html / php files? I was only wondering as it would make full text searches an awful lot simpler -- 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] PHP software tool
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP software tool
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 real php editor, but does a pretty good job... 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Hiding Filenames
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 SRC=pictures.php?gif1 LJ Matias Banzas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hiow can i do 2 hide the real Filename / Url of a file? Ive seen it donde in lots of places... i need this 2 show some images and hide the real Location of them Anyone can help me? -- 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]
Re: [PHP] Question about CREATE_FUNCTION
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 happiest with Emile Bosch [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... thx for al the help but i need some help of a php developer i guess cuz i am misunderstood here.. Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Or, to actually prove your point in the original e-mail (I checked it and you're right): ? function echotest() { echo(Testing); } $test=echotest; ? If you now try ? $test; ? it won't do anything -- as you said, ? $test(); ? is the proper code. Something worth mentioning is that even if you do ? $test=echotest(); ? the former version won't work. Bogdan ?php $test='htmlspecialchars'; echo $test('html'); ? Produces : lt;htmlgt; Regards, Andrey - Original Message - From: Alexander Skwar [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 5:35 PM Subject: Re: [PHP] Question about CREATE_FUNCTION So sprach »Andrey Hristov« am 2001-12-21 um 15:52:35 +0200 : Nope $test(); Please explain! Alexander Skwar -- 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] dns
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. server.mydomain It would need to work on the Windows platform and be compatible with whaterver Windows uses for DNS stuff. The process would be as follows: 1: client tries to access server.mydomain in a browser window 2: a request is sent to the server asking it to find the IP address of the machine called server.mydomain 3: this IP address is then sent back to the client and connecting it to say 192.168.1.9 Do you think this could be done? -- 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: installing php on apache
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 experience is limited! Jeremiah Jester [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm having trouble running php on my linux box running apache. the rpm is installed but cant get my simple script to execute. What else do i need to do. Edit php.ini? Edit httpd.conf? Peremissions? Apache runs fine by itself. Thanks. JJ -- 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] http message
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 server. I was thinking maybe attempting to open the homepage with something like fopen() and, using nested if() statements, try the next mirror in the list if the fopen() command didnt succeed. Any ideas? -- 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: please help! ./common_db.inc'
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 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, this is my first real php program -can any one explain to me what this error message means? Warning: Failed opening './common_db.inc' for inclusion (include_path='') in /var/www/html/myphp/ex.php on line 2 thanks a lot, Caleb _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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: http message
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
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 right folder etc and if it is try reinstalling the PHP package. Just off the top of my head!! -- 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: electronic postcard recommendation?
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 a client's website, and was wondering if anyone can recommend an existing implementation, be it open source or commercial -- preferably PHP!. I found a couple of CGI scripts that do a minimal job, but i'm not to keen on doing the CGI thing ever since moving over to PHP for some time now. I'd like to avoid the Internal Server Errors if at all possible ;). anyways, any experience and/or recommendations would be much appreciated. regards, brian -- 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]