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:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "SMTP" And "smtp_port" Setting In Php.ini
- "Paging" (First/Previous/Next/Last To Limit # Of Listings Per Page)
- Any File Size Limit In <PARAM Name="***" Value="***"> ?
- 'echo "": No Such File Or Directory" Error Using "exec" To Pipe In PHP Script
- How Do I Do Something Like $color = ("red", "yellow", "blue")[$colornum]?
- Mysql/php - "LIMIT" And "ORDER"
- Preventing Visitors Ability To "re-visit" A Page Via The "back Button"..
- Errors Won't Show Up Even With Error_reporting(E_ALL) And Ini_set("display_errors","1")
- [regex] Stripping Out "name" And "value" Values Out Of Tags, Aaargh
- Group Mailing, Want To Suppress All The "to" Addresses In The "to:" Field
- 'Parse Error' Problem In "isset" And "empty"
- Echo "<!--#include File="top.html" -->";
- How To Do PHP "require()" Or TCL "source" In Bash Script
- Show "Result Page Previous 1 2 3 Next " Like Google
- Error In Page When Checking Http_get_vars("myvar") And "myvar" Was Not Passed In URL String
- Another "print" Adds To The Previous Line
- "Short Description" : String Character Limit
- Coding "NEXT" And "PREVOIUS" Buttons
- Sticking "if" Or Changes Within A MySQL "where" Array?
- Cookies And "include" Or "require"
- FTP_login + $pass="" And $user=""
- Alphabetize Results Ignoring "and" And "the"
- Why Use "Stripslashes" And "Addslashes" Function
- Easy Way To Make "pages" From A Database List
- PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
- How To 'select' The Latest, "soon To Be" Auto_increment Number?
- Drop Leading "0" (zero's) From Number
- Getting "true" Number Of Days Remaining ?
- "<<previous<< 2 3 4 5 >>next>>" Scheme
- Parse Errors With "case "action":
- Alternative To Printf("%04d",$number)
- Reading Only The Last Number From I.e. "1234" (4 That Will Be)
- Calculating "the Power Of" Any Number
- How To Count "Hit" And "View"
- "echo" Or "print" ?
- Getting Rid Of "Index Of" Pages.
- Make "blabla" Into Keywords As In "php.net/blabla"
- If("0X0"=="000"){echo "boo";}
- Error Using Header("", FALSE) To Show Multiple Images From MySQL Db
- Reading An Array Of Records From MYSQL Then "Save As" Them Back As Copy
- Force Reload Of Page When User Press "Back" Button
- Bizarre Phantom Bug (Calling A PHP Script From An Apache "Action" Directive)
- Another "Fatal Error: Call To Undefined Function: Mysql_connect()"Question
- Mime_content_type() Returns "text/plain" For Large Quicktime Files - HELP
- Pear Install Error "no Signature Found For Package.info"
- "failed To Open Stream No Such Directory Or File" Apache Suse 10.0
- Formmail.php Brings Up Error Message About Configuring "sendmail_from" Line
- How To Create A "send-a-message_and-show-the-sended-message"-homepage?
- "Cannot Send Session Cookie ..." I Truely DON'T Output ANYTHING Before Calling Session_start()
"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....
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 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.
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:
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.
[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?
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?
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.
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.
Another "print" Adds To The Previous Line
I am searching for something which is opposite to the "". print "aaa bbb"; will output: aaa bbb And I need two print-commands write to one line: print "aaa"; print "bbb"; Desired output: aaabbb Can I reach the goal by putting something after aaa?
"Short Description" : String Character Limit
I am in the process of redesigning a web site for my work, we sell many products on eBay and are looking to sell multiple items on the site. I was thinking about doing a 3x3 display of random products on the front page, which I can code with no problems. The "short description" shown on the front will be taken from the complete description of the product, but will need to be limited to a certain amount of characters (to keep each product display a reasonable size). The problem is that the ending character for the "short description" will not always be the end of the word. I need to figure out how to validate that it is the end of a word, even if it exceeds the character limit. I just don't want to end up with partial words.
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.
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...
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.
How To 'select' The Latest, "soon To Be" Auto_increment Number?
I have "auto_increment" for one of my fields. I'd like to know how to do a query to get the "next auto_increment" number. Example: I inserted a record and the record was assigned the Ƈ' for its auto_increment field. The next automatically auto_increment number will be 2. Can i write a query that tells me that the next auto_increment number will be? if so, what would it be?
Getting "true" Number Of Days Remaining ?
im writting a script, that alerts me when a set number of days are remaining to an event...(which im fine with!!!) The problem that i have, is the way that im getting the remaining days, the script is dividing the results by the number of seconds in the day... So say that today is the 3rd July and the alert is excuted at 1pm, the the script will return 1 day, if say the event was on the 5th July....logically thinking it would return 1 day, but phyiscally there are two days remaining. PHP Code:
"<<previous<< 2 3 4 5 >>next>>" Scheme
I am creating a web project with php/mysql. one of qeury result is too high. it returs several thousand rows. But I can't show them in one page. So I wanna create more than one pages then I shall use "<<previous<< 2 3 4 5 >>next>>" scheme. but i don't have any idea. If user clicks 3rd page. I shall show the 3rd page. How should I do this ? should I again query the whole or a portion ? what is the function related to this.
Parse Errors With "case "action":
I want to call an action that is in a file called "configm.php" but I get a parse error on line 8. (the bit that goes 'case "add":') Code:
Reading Only The Last Number From I.e. "1234" (4 That Will Be)
as 1st, sorry on my clumsy english (now I realy miss some words) I have one language specific problem with my site. I would like to tell how meny pictures someone have in his or her gallery and I would like to have it properly speled (in Croatian). So, I don't want to write: "number of pitures in this gallery: 123" rather "John have 123 pictures"... but, here is my problem, I will write now some little Croatian with differences in capital letters: 1 slikU 2 slikE 3 slikE 4 slikE 5 slikA 6 slikA 7 slikA .... 20 slikA 21 slikU 22 slikE 23 slikE 24 slikE 25 sliKA .... 99 slikA 100 slikA 101 slikU 102 slikE... so that is pattern: all numbers which ends with 1 need to have "U", 2-4 = "E" 5-x0 = "A" and question: how to read only the last number from count(*) ?
Calculating "the Power Of" Any Number
Can you please let me know how to calculate "the power of" any number in php. For example, say i need to calculate 5 "to the power of" 3. The result should be 5x5x5=125.
How To Count "Hit" And "View"
I would like to know when a user logs in, he clicks Mike's E-mail. It will count one which mean "Hit". So that I will be able to know how many times users click Mike's E-mail. Like Sitepoint. When other users read other problems. Views will count 1. I would like to know how to do it. Could you explain with script?
"echo" Or "print" ?
Can tell me someone is some big different between "echo" and "print". What You prefer to use?
Getting Rid Of "Index Of" Pages.
I run a sever in my home network and I'm planning to go on-line. But I've noticed that when you type in a file name in the address bar it will come up with a page that shows all the files in on my server. This is a major security risk and I'd like to know how to stop this. I'm using Apache 2 to host my server.
Make "blabla" Into Keywords As In "php.net/blabla"
I know this must be documented, but I cant seem to find it. How would you transform the URL into values? Like how php.net does; www.php.net/date does a search for "date" in their database... I have built a simple search function on my site, and I would like to do the same.. anyone who knows how? Or who has seen an article in the subject? Or has any other tips?
Error Using Header("", FALSE) To Show Multiple Images From MySQL Db
Many people seems to have problems when displaying multiple images from their database (mySQL db). Often you can read error statements like "Header already sent out ...". To solve this, people often propose to use include files. To keep the scipt it would be nice not having this problem, being able to sent out multiple headers to a browser without getting these error messages. In the PHP4 manual, we can read an option that can be added to the header statement, Header("xxx",FALSE). It would enable multiple headers to be sent out. For instance the following statement: while ($product = db_fetch_object($result)) { header("Content-type: pv($product->filetype)",false); echo pv($product->image)" } However, it doesn't work. Anybody has any idea why? Does anybody use this option FALSE with success?
Reading An Array Of Records From MYSQL Then "Save As" Them Back As Copy
Hi all, Ok here is what I want to do then I will show you what I have. I have some records in a MySQL DB that I want to store in an array and then immediately copy them back where the only thing that would change would be one field - the date. So here is my table: ------------------------------------- |userName | date | value | -------------------------------------- | theDano | 200005 | 123 | -------------------------------------- | theDano | 200005 | 345 | -------------------------------------- | theDano | 200004 | 678 | -------------------------------------- | joeUser | 199908 | 897 | --------------------------------------- So if I am querying for the user "theDano" on a specific date (format yyyymm) in this case 200005 (year 2000 month of May) Here is my array to query all records to fullfill this request: if ($update=="future") { if ($month!="01") { $db = mysql_connect("localhost", "dbuser"); if($db) { mysql_select_db("dbName",$db); $result = mysql_query("SELECT * FROM tableName WHERE userName = '$userName' AND date = '$date' ORDER BY value DESC ",$db); if ($result) { $num=mysql_numrows($result); $i=0; while($i < $num) { $userName = mysql_result($result,$i,"userName"); $value = mysql_result($result,$i,"value"); echo "<tr>"; echo "<td width=Ê×'>" . $userName . "</td>"; echo "<td width=ï`'><div align='right'>" . $value . "</div></td>"; echo "</tr>"; ++$i; } } } } } Now I want to take the array of records queried which was: | theDano | 200005 | 123 | -------------------------------------- | theDano | 200005 | 345 | and copy them to look like this back into the database: | theDano | 200006 | 123 | -------------------------------------- | theDano | 200006 | 345 | so you can see that the only thing changed was increasing the month by one. Would seem simple to most but I am having a tough time wirting the code to read the array and increase each date value by "1". Thank you in advance for anyone that replies. ) Dano
Bizarre Phantom Bug (Calling A PHP Script From An Apache "Action" Directive)
I am using an "Action" directive in my Apache configuration to map a certain file type (by means of AddType and AddHandler) to a PHP script. I wasn't sure if this would work, since the Apache docs say the Action directive is for mapping a handler name to a CGI script in particular. But it seemed to work at first. Then a mysterious bug arose: Sometimes it works perfectly, and other times the output is a totally blank page. It seems that if I haven't viewed a page for a while, it chooses to do one of these at random (though it is blank more often than not), and then it persists in the same behaviour until I reload it many times. (That is, usually a page appearing blank will eventually display if I reload it many times; however, only rarely will a correctly-displayed page regress to appearing blank after reloads.) Checking with `curl -i', it would appear to a client program that the request was perfectly successful: all the headers are there (with the correct content-type), it has an HTTP/1.1 200 OK line, and so on (and there's nothing unusual in the server's access or error logs), except Content-length is 0, and there is indeed no content at all after the two newlines. WTF?? Since when do computers behave non-deterministically? I should hope, if a program is not going to behave correctly, that it at least do so predictably and consistently. That would make debugging it much easier. But what am I to make of this Schrodinger's Bug? How do I even approach the debugging process? (Also, if anyone could suggest a workaround, an alternate method of having a PHP script handle files with a certain extension, then that would be just as welcome. Though I'd like to stay within mod_php, avoiding a CGI-based technique, because I'd prefer to not start a process every time these pages are requested.)
Another "Fatal Error: Call To Undefined Function: Mysql_connect()"Question
I am getting the following error when I try to view a test page in my browser. This test page just reads a table in mysql and outputs the results. Fatal error: Call to undefined function: mysql_connect() in /var/web/public/test.php on line 2 I'm using: Apache 2 MySQL 4.1.12 PHP 4.4.0 I have tried upgrading PHP to PHP5. I went back down to PHP4. I verified that mysql.so was being loaded. I tried using the OLD_PASSWORD feature in mysql. Verified that the PHP module is loaded in apache. What is weird however (at least I think) is when I run the following via telnet: php ./test.php It pulls up the page, connects successfully to the database and displays the records. No error message.
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?
Formmail.php Brings Up Error Message About Configuring "sendmail_from" Line
This may not be the best place to put this but i have set up apache as a testing server on my local machine. Whenever i try to use a formmail.php script i downloaded is always come sup saying that i need to configure sendmail_from. I have changed this (in php.ini) to be to my email address and the smtp server is set to be my university's smtp server (which i hope should work). But it still comes up with the error. The actual error is: Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing
"Cannot Send Session Cookie ..." I Truely DON'T Output ANYTHING Before Calling Session_start()
there are many postings on this subject, I have read them put don't have an answer. I get these warnings: Cannot send session cookie - headers already sent in, but my php-scripts are okay. As you can see in the code and response below, I really don't output anything. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = my PHP-Code #!/usr/bin/php <?php session_start(); if (!isset($_SESSION['content'])) { $_SESSION['content']=""; $_SESSION['task']=0; } session_regisyoter("content"); error_reporting (E_ALL); set_time_limit(0); ....
|