Certain Custom "Page Not Found" Page Problem
I have an ISAPI instalation of PHP over IIS5 server
on Windows 2000. Everything works fine but as I am
under website development I would like to keep
PHP error messages turned on - for my development
purpose. Unfortunately, that concludes that in case
somebody types a fake address like: http://www.myurl/xyz.php
the server replies with something like that:
Warning: Unknown(C:Inetpub
ootxyz.php): failed to open stream:
No such file or directory in Unknown on line 0
Warning: (null)(): Failed opening 'C:Inetpub
ootxyz.php' for inclusion
(include_path='C:InetpubPhpIncl') in Unknown on line 0
This is not the kind a message I would like to be presented to anybody.
In this case I would rather like to see a custom "Page not found" message
instead.
Any ideas how can I configure PHP to keep displaying regular errors
and warnings in all situations but in case of "page not found" - to display
custom error message instead ?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
"Page Not Found" Because Script Takes Too Long?
I am developing an online calculator for my school district. Without going into too much education-ease, the idea is simply that the user puts in some numbers, and the system crunches those numbers. The form, and the form handler are contained in one script, using a hidden variable to tell the script to process the information upon submitting to itself... Everything was working great, until I put in the various algorithms... They are not particularly numerous, lengthy, or complicated, but clicking on 'Submit' now yields a 'Page not found' error. When I commented out half of the math, the page loaded ok...so it seems to be 'timing out'... I'm baffled.... this script is simple, and short... what could be the problem???? Here is the math part of the script..
Preventing Visitors Ability To "re-visit" A Page Via The "back Button"..
I have a rather complex registration/member sign up form.. which gets a little confused, when a visitor "backs" completely out of the form, then for whatever reason returns to the form. The form contains 'cancel' buttons, which naturally cancel the reg process and redirects them to the document just before they started. JS provides us with the "location.replace()" method, but I can't seem to find a way to coordinate the use of location.replace() with the posting of the form values. In short, I want to "replace" the first step of the form with the "second step". I think what's making this tricky, is that each step of the form are located within the "same" page (register.php). The document works like so: The first step is the "Member Agreement" when they click "agree" (submit) the system creates a new row in the temporary register table of the db. It then issues a registration cookie, which carries the row id, and session value. in addition (for those cookie impared users) we carry the row id and session value in hidden elements. So far, as long as the user continues through the process all is fine, but if they (for whatever reason) back all the way out, and click 'agree' again, the process fails. I guess I have to find a way to force a reload of the 1st step "if they've gone back" OR "replace()" the first step with the second, so as to prevent the user from going "back" to the 1st step of the register page.
Error In Page When Checking Http_get_vars("myvar") And "myvar" Was Not Passed In URL String
PHP, coming from ASP coding if (HTTP_GET_VARS['b']==1){ print "Yes"; }else{ print "No"; } when "b" is not passed via (http://www.mydomain.com?b=1 an error occurs and the "NO" is printed but an error is printed too. How can I check for the value of "b" so that no error occurs if b is not passed?? example http=www.mydomain.com $myvar=HTTP_GET_VARS['b'] causes an error because "b" does not exist (ie. its not passed in the URL string. $myvar maybe evaluated as NULL or Empty but the error is printed in the page, anyway.
Question About Using "global" On One Page Then Using The Variable On Another Page
I am taking over an exisitng app. I have the following function on one page: function check($v) { global $user; return $user->validate($v[1], $v[0]); } And it reference $user on the next page. Register_globals are set on the existing server but I am moving to a new server where it is not. The code of the next page is lilke: session_register('user'); $user=$_SESSION['user']; I also want to turn it around so it's: $_SESSION['user'] = $user; But that fails - $user is empty. By the way, $user is an object. Any ideas to how to make sure: $_SESSION['user'] = $user;
"Warning: Page Has Expired" - How To Aviod When Using Browser Back Button?
In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained. Presently we get a "Page has expired" message. How can we avoid this? Full details: Having searched for postings on how to avoid the "Page has Expired" they are numerous, however, I have not found one that answers the question adequately. Hence this posting. One posting directed me to the following webpage: http://in.php.net/session_cache_limiter but I played around with "session_cache_limiter()" and it did not give the desired results. (It seem to make no difference). Also many people say to use HTTP GET instead but this is not an option in this case. Where can I find concise definitive information on how to avoid "Warning: Page has Expired" and allow the user to press the back button and see the form as it was before they submitted it?
How To Refresh Page Without Prompt The "resend Information...."?
I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every minute. But the page always display the dialog box ask me to resend the information. How to disable this warning message. I using POST and REQUEST to get the data from user input page.
"Paging" (First/Previous/Next/Last To Limit # Of Listings Per Page)
I'm trying to get a handle on the best way to handle setting up my listings so that I display groups of about 25 records per page. I currently have a page that returns over 1,000 names/addresses, which is obviously not very efficient. Does anyone have any suggestions on the best way to approach this, or recommendations on what pitfalls to avoid? I'm assuming that I need to be able to count the total number of records that match the search criteria, possibly at the top of the page before any HTML output, then find some way to identify/track the first record, next record, etc...? I know I should replace my existing query with something that limits it to about 25 records at a time, right? <?php include('dbconnect.php'); echo "<TABLE width="100%" align="center" border="0" cellpadding="0" cellspacing="0">"; $query="SELECT * from artists WHERE mentor=Ɔ' ORDER BY country DESC, state ASC, city ASC, lastname ASC"; $result=mysql_query($query) or die(mysql_error("Could not execute query.")); while($row = mysql_fetch_array($result)) { $artistID = $row['artistID']; $firstname = (ucwords(strtolower($row['firstname']))); $lastname = (ucwords(strtolower($row['lastname']))); $mentor= $row['mentor']; $city= (ucwords(strtolower($row['city']))); $state= (strtoupper($row['state'])); $country= (strtoupper($row['country'])); //....etc.... echo " <TD align="left" valign="top" width="50%"><FONT size="2" face="Arial, Helvetica, sans-serif"> <A HREF="javascript:;" onClick="openProfile('artist.php?artistID=".$artistID. "','Artist','resizable=yes,width=750,height=400')">".$firstname." ".$lastname."</A></FONT></TD> //....etc....
PhpDocumentor: No "page-level Docblock" But Worked Without...
I am using phpDocumentor to generate documentation for my files. This worked without problems but today it told me "has no page-level DocBlock, use @package in the first DocBlock to create one" for ALL of my files, but I definetely have those @package lines. Did anyone observe this strange behaviour? Any tips for me? Perhaps new versions of PEAR/PHP/Zend Optimizer I installed recently damaged the installation. I reinstalled phpDocumentor several times (manually AND using PEAR)
"Please Wait" Page While Php Runs Mysql Queries
Does anyone have any idea what I should google to create a "splash page" that tells the user to wait while a few mysql quieries are run through the php page? It takes anywhere from 5 to 20 seconds, and I don't need a progress meter, just a splash page so they do not go anywhere and the user doesn't think there is a problem with their browser or network connection.
Can I "include" A Perl Script With In Php Page?
I was trying to use "include" to execute a perl script in my pHP page. Instead, it just printed out the contents of the Perl script and didn't execute thes cript. Is there any kind of function which executes a script.. i know SSI has this.. does php? something like >> execute("cgi-bin/script.cgi"}
Re-Directing Back To "Sort After" Page&
I am using sessions and a MySQL user database to restrict users to certain pages on a website. If the user has not logged in and tries to access a protected page they will get the login page. Now if they are trying to acess a page like specials.php and they have to logon to access that page, then they get the login page and they then enter login details to access it. If their login is correct, I send a header Location to the Index of the site. How do I direct the user to the page they were looking to access(specials.php) without getting directed to the index.php page. I want to implement this function to all the restricted pages. I know its something pretty simple... maybe keep the url of the "sort after" page in a variable and then re-direct to that page after login ? Can someone give me a hint Thanks
Php Reference In <SCRIPT> Tag Gives "Error On Page" In IE6.0
I have some problems with a PHP reference in a <SCRIPTtag, but only with the Internet Explorer, which gives a "Error on page" message in the Status Bar. The code is as follows : <script> <!-- var stat =<?php echo stripslashes($status); ?>; window.status = stat; //--> </script> The error given is : Line:24 Char:13 Error: Syntax error Code: 0 Char 13 is the "<" or looking to the source of the page with the IE browser, it's ";" I get the error message as said before only in the Internet Explorer browser and it does not affect the display nor the functionality of the page, but it's not good looking ...
How Can I "stick" Yahoo's Page Into Mine
I am trying to "stick" yahoo's home page into the middle of mine using the include function, ie // my page include("http://www.yahoo.com"); // my page continues here but what winds up happening is that links on yahoo's page are prefaced with my URL. For example, the link to Yahoo Finance becomes "http://www.myurl.com/finance" instead of "http://www.yahoo.com/finance" Also, a lot of the pictures are broken images.
Write Text To An "image-page"
If I generate an image, is it possible to write text on the same page then? If it isn't so, there's no special meaning to generate images, who wants to surf on a page that is out of content, right? <? Header("Content-Type: image/gif"); $img = ImageCreate(100, 100); $black = ImageColorAllocate($im, 0, 0, 0); ImageFill($img, 100, 100, $black); ImageGIF($img); ?>
PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved. I'm on a Windows 2003/PHP 5.22 setup. I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well. I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work. The install dumped all the PHP related files under "c:program filesphp". I've ensured that path is in my windows PATH statement for my env vars. I've also verified that "c:program filesphpphp-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine. It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed". I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine. It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error. My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why.
Pear Install Error "no Signature Found For Package.info"
I get the same error trying to install any pear package if it's not alreay installed. # pear install Net_SMTP no signature found for package.info(string,string,bool) # pear -V PEAR Version: 1.3.3 PHP Version: 5.0.3 Zend Engine Version: 2.0.3 Running on: SunOS fido 5.6 Generic_105181-26 sun4u I understand that this is probably a server side error on pear.php.net .... who clears it?
Assigning "page Of ?", Pdf And RegEx
I am currently well into generating a decent pdf report writer. One thing that I will only know after the file is generated (which I am writing to a text file and then rerouting the user to that file) is how many total pages are in the document. So what I need to be able to do is manipulate either the $buffer from PDF_get_buffer or the text file in such a way as to replace a marker with my final page count. Here is the bit of code that I thought would do just that:
Why Do I NOT Get The "Page Has Expired" Warning?
Normally, when you submit a form to a page using the POST method, and you subsequently use the browser's back button to navigate back to that page, it comes up with the standard warning "Page has Expired... To resubmit the information click the refresh button". I understand why that happens - the page resulting from a POST submission becomes immediately stale. BUT... on one of my sites this isn't happening and I can't understand why. I can click Back and the page displays just fine. I don't want that to happen as I want to generate a unique transaction ID each time that page is displayed. The page is submitted via POST to PHP_SELF but I've tried submitting it to a different page and that makes no difference. Has anyone come across this problem before? I've been scratching my head for hours.
No PHP Error. Just "Page Cannot Be Displayed"
I was wondering if someone could explain why I'm receiving this error. It's like a 404 error but I think it might be something else. Basically, I have a page where a user inputs his email address. The system is supposed to look up the email address and send the associated password to that email address. It worked up until a few months ago. Note that the validation works. So, if the user tries to submit a blank text box, it returns an error. If the email address is not found, it returns an error "Email not found." But if the email is valid, it just dies. This code worked a few months ago when I initially wrote it....
Sending "End Of Page" To Browser
I have a script which takes up to 30 seconds to execute. The script generates an image. I need to send a message to the browser so that it thinks the page is complete within 10 seconds. Ideally, whenever the script starts to run, it'd output a message saying that the image will be created soon, and the browser would stop loading the page, then the script would go on to create the image (and obviously not output anything else to the browser). A bit more detail: I'm actually making a page which will be loaded through another website (Facebook). However that site will hit my script, then only wait 10 seconds for the page to finish loading. If my page takes longer than 10 seconds to load, Facebook times out and prints an error message (and anything that was sent from my page is ignored). So even though my page is only generating an image which isn't even used on that page, Facebook times out while waiting for my script to finish. Is there some kind of PHP function sendEndOfPage() or something which would stop it waiting, and just print "Your image will be created soon"? OR, a function like include() but which doesn't wait for the included page to finish- it just starts it and carries on. That way, the 1st script could call a 2nd script and then finish while the 2nd script does all the work behind the scenes. Any other solutions would be welcomed. Other than using cron (which would require quite a lot more work) I don't have any ideas.
PEAR "not Found. Error"
I am not able to get PEAR working And got the 'not found etc… error' When including a pear function For ex: require_once('Mail.php'); require_once('Mail/Mime.php'); (further I know that mail mime require SOAP) How do I fugure if SOAP is installed? Since PEAR is by default present in PHP. I was under the impression that it should open any pear () as any php integrated function? My php.ini include_path as of now is: include_path = ".:/usr/local/lib/php" Do I have to change it?
What Is The Best Way To Use PHP To "reload" Web Page?
I am trying to code my "notfound.html" page when people click on the link that will send them back to home page, that the "entire" browser is "refreshed". Reason for doing this. I have frames on the home page. When user click on the link on "notfound.html", the home page appears within the home page frame. So I see 2 home pages. I have to physically click on the "reload" button on the browser to the the appearance that I want. But I know that "common" user will not think of that, and will determin that the home page is buggy...
"next" Page Howto?
Can anyone help me out by either telling me how to get to the result i need or by pointing me to some documentation about the following question: A certain query to a database give me eg 100 results: $query = "select id, name, addr1, addr2, city from mytable where id=" ..$id; $connection = mysql_connect(etc etc) .... Then: <table> while ($result = mysql_fetch_array($connection)){ <tr> <td>echo $result['name]; </td> <td>echo $result['addr1']; </td> </tr> } </table> This all works well, but will give me all eg 100 results in one webpage. What i want however is max 10 results per page, and then a link in the bottom of a page with "next" reloading that page but then displaying result 11-20 etc etc. Now i've been puzzling about that the last couple of days but i just can't get that to work. Anyone any suggestions / links / idea?
"Custom Language"
Is it possible to hack php to make it so you can write a little mini type language for Browser based games? I don't know how to explain it exactly... but just write something that lets you write some things, and certain things will happen in the game.
How Do I Do Something Like $color = ("red", "yellow", "blue")[$colornum]?
How do I take an index of a literal array, instead of a variable? That is, say I want to get the short name of a month. Can I do something like: $monthname = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")[$month]; or do I always have to do: $blah = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); $monthname = $blah[$month]; It seems a shame to have to create a variable specifically for this one-shot purpose.
[refreshing A Php Page Resulting Page Cannot Be Found Error]
i have a php page that will refresh by itself by using a meta tag and meta timer. however, without a clear indication, my page will just go "Page cannot be found". bizzarre but when i press refresh, the page can be found!. i am not sure whether this is an IE problem or issit my script problem. i don't encounter this problem if it's just a plain file.html. perhaps is my session string? i am passing my session thru the URL and i constantly refreshing it. is that the problem? my url looks like this: domain.com/myfile.php?authorize=mike&token=f5c0f7edd785a6a9448c50249bad18ed
2>&1 Arg In Exec(perl.... + "sh: /perl Not Found Error" TIA For Help
I have the following line in a php file: $msg= exec("perl $scriptPath/insert.pl $d $u $t 2>&1", $returnVal); Can someone explain the "2>&1" argument? Second problem, this same line of code when run from the unix command line returns the following error: sh: /perl: No such file or directory I've verified that perl is located in /usr/bin/ /usr/bin is in the environment variable "PATH" all the directories from php program to the root and back down to usr/bin have 755 permissions. if I run the program (insert.pl) from the command line it works I've tried putting the following in both the php and perl programs: #!/usr/bin/perl #!/usr/bin
Pagnation - Limit Number Of Pages Between "Previous" & "Next" Hyperlinks
Was hoping for some advice with a part of page navigation.... It works at the moment so there is a "Previous" & "Next" Hyperlink underneath the records. In between the Previous & Next links are the number of pages that there is of these records. e.g: Previous 1234 Next This is fine if there are only a few pages of records, but when there are hundreds of pages the numbers are listed and they take up half the web page with them. How can i make it so only limited 10 numbers of pages say appear between the "Previous" & "Next" Hyperlink and as you progress through the pages they are as do the next 10 numbers of pages? Code:
[regex] Stripping Out "name" And "value" Values Out Of Tags, Aaargh
Searched through the site, but couldn't find the right regex syntax I was looking for. the thing i want is, to extract with preg_match_all the given values in a tag... ex. $str = '<input type="text" name="name" value="value">' $pattern = some magic stuff I need to know preg_match_all($pattern, $str, $result); And in result I want to have the values text, name and value AND it's important that the order doesn't matter so structure of tags can be <input type =name= value=> or <input name= class= value= type=> etc, etc...
'Parse Error' Problem In "isset" And "empty"
I've been having some problems with a parse error that I can't figure out (PHP 4.3.11 on Solaris9). Sample code: <?php // getting strange parse errors on this class A { var $value; function A() { $this->value = 1; } function getValue() { return $this->value; } } $a = new A(); if (!empty($a->getValue())) { echo "success"; } else { echo "failure"; } ?> The result of this is: Parse error: parse error, unexpected '(', expecting ')' in /foo/public_html/parse_errors.php on line 15 I also get the same effect with "isset", however, testing with "is_null" or "is_int" produces the correct ("success"/"failure") result. Any ideas?
Headers For "image Not Found" Image
I'd like to serve an image-not-found image for images... that aren't found.. I'm already using a custom 404 handler page.. but this question could apply to images retrieved from a database or script or whatever... Anyhow, is the 1st method OK, or should #2 be used? ie, does the client/bot or whatever recognize the 404 on method 1? Or, does it think everything is dandy because of the redirect. header('HTTP/1.0 404 Not Found'); header('location: '.$image_url); exit; or header('HTTP/1.0 404 Not Found'); header('Content-Type: image/whatever'); readfile($imagefilepath); exit is one way more better?
Echo "<!--#include File="top.html" -->";
I have a search script which returns a page of results, however I'd like the returned page to be in the same format as the rest of my site. To do this I've tried adding the HTML for my site to my PHP page with echo" " commands. This works for the plain HTML, but my regular pages also use SSI to do other stuff (some of them even execute other PHP scripts to generate tables of data etc). I've tried echo "<!--#include file="top.html" -->"; but it doesn't work as I get a parse error. My question is, how do I go about doing this properly? Is this possible at all? And if not have you guys got any suggestions to get around this?
Any File Size Limit In <PARAM Name="***" Value="***"> ?
I embed an applet in my php script which has a parameter providing an input file for the jar. Does this file has size limit? The code is as follows: <APPLET ARCHIVE="myapplet.jar" WIDTH=372 HEIGHT=360 VSPACE=0 HSPACE=0 ALIGN=middle> <?php echo "<PARAM NAME="data" VALUE="myfile.">";?> when "myfile" is beyond 15M, my applet cannot load sucessfully, but while this file is limited like 5M or 7M, it works well. Does anybody know is the reason caused by php script limit, applet mechanism, or by different browser?
How To Do PHP "require()" Or TCL "source" In Bash Script
I can't figure out how to explain this any better than this. In PHP we have a command "require()" that obtains a file and logically places it into another file. I cannot figure out how to do this in bash script as the requirement is necessary for a migration script to obtain the code from a .cfg file and then be able for the "parent" script to run the code it "imported" from the .cfg file, much like PHP's require() or TCL's "source". This is what I have so far and it fails: if [ -f ivc.cfg ]; then cat ivc.cfg fi Anyone really know bash script well please help, it's a barrier for me not to be able to get just this one piece working.
Coding "NEXT" And "PREVOIUS" Buttons
Hi I am stuck here. I am doing a form which dispalys details of client companies. My query includes this statement: .... WHERE CompanyName LIKE %$name% .... What I need is following: if a query returns more then one result I what to "flip" through result with NEXT and PREVIOUS buttons.
Mysql/php - "LIMIT" And "ORDER"
In the following fragment of code, I am querying a database that in order to display a list of films. The list is very long and I would like to offer the possbility to restrain the range of results showned by page keeping in mind that the user should be able to browse forward or backward data if applicable. I know that I have to add the LIMIT method in the MySQL query but I have a hard time figuring how not to get lost in setting it dynamically in the PHP script. Then I have a second question. Is there a more elegant / straightforward way to deal with the display order of the data (cf. $ot, $od and $oy)? Code:
Sticking "if" Or Changes Within A MySQL "where" Array?
I'm not exactly sure how to even ask the question, and I know my terminology is not good as I'm a SQL beginner, but, here goes. I need to find a way to make an if statement within an array...or, the "while" portion of a recordset. The best way I can ask is show what I mean. http://oscarguy.mechphisto.net/awardbrowse.php If you go there and select an award (like Best Picture), leave the year field alone, and select YES and submit, you'll see a lot of results. And I have HR's dividing each entry. What I need to do is group all the entries of the same year, or at least only put HR's between the blocks of years. So, I'd have all the entries for 2002, an HR, then all for 2001, an HR, etc. Here at the bottom I'll include my PHP code I'm using so far. But I have no idea where to even start looking for an answer...if it's even possible. If someone can just give me the name of the function or process or technique, then I can go Web/book searching myself...I just need a direction of where to go. PHP:------------------------------------------------------------------------ ------ $query_RS_award = "SELECT * FROM $award WHERE id != Ƈ' ORDER BY year DESC, w DESC"; //$query_RS_award = "SELECT * FROM $award WHERE year = "$year""; $RS_award = @mysql_query($query_RS_award, $connection) or die("Couldn't query: " . mysql_error()); $totalRows_RS1 = mysql_num_rows($RS_award); while ($row_RS_award = mysql_fetch_assoc($RS_award)) { $award_id = $row_RS_award['id']; $award_tblid = $row_RS_award['tblid']; $award_award = $row_RS_award['award']; $award_year = $row_RS_award['year']; $award_category = $row_RS_award['category']; $award_won = $row_RS_award['w']; $award_film = $row_RS_award['film']; $award_nominee = $row_RS_award['nominee']; $award_note = $row_RS_award['note']; if (!($award_category)) { $award_category = "n/a"; } else { $award_category = $award_category; } if ($award_won == "1") { $award_won = " - Award Winner"; } else { $award_won = ""; } $display_block_Award .= "YEAR: <span class='normalText12White'>$award_year</span><br>FILM: <span class='normalText12White'>$award_film</span><br>CATEGORY: <span class='normalText12White'>$award_category</span><br>NOMINEE: <span class='normalText12White'>$award_nominee</span><span class='normalText12BoldWhite'>$award_won</span><br><blockquote><span class='normalText12White'>$award_note</span></blockquote><hr>"; }
Cookies And "include" Or "require"
i'm having a problem with my setcookie() instructions. Although there are absolutely no html tags in front of them,for some reason PHP3 sends me back the message "oops...php3_SetCookie called after header has been sent"... I do however use two "require" calls, one to a file with a .php extension, and one to a file with an .inc extension. At the beginning of each files there's a Could the cookie failure and the include functions be related ? In my text, I have even wiped out any HTML tags such as "bold, paragraph, line break" tags, even in "echo" commands, but to no avail what am i doing wrong ?
FTP_login + $pass="" And $user=""
I use the following scrit in an Intranet with the user name = "" and the password = "" : <?php $ftp_server = "192.168.25.25"; $ftp_user = ""; $ftp_pass = ""; $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) { echo "Connected at $ftp_user@$ftp_server "; } else { echo "Can't connect with $ftp_user "; } ?> I have the following message : Connected to 192.168.25.25 Warning: ftp_login(): 'USER': Invalid number of parameters in E:www est_ftp.php on line 26 I tried to : ftp_login($conn_id, "", "") but i have the same result...
Why Use "Stripslashes" And "Addslashes" Function
Can someone let me know why one would use strip slashes or add slashes functions. I know what they do but cannot see the exact use for them e.g. if i have a textfield and encase it in an stripslashes function, it will escape any back slashes etc...
|