Knowledge Base Contributions
Below is a list of the knowledge base entries that Ben Udall has contributed to:
- How to install PHP in windows xp?
How to install and run PHP in windows?
How to install and run PHP and MySql in windows xp?
- How to make that $var get read from the url?ex: $var = name -> sample.php?name=John ->output is John
exapmle: http://foo.com/sample.php?name=John -> It writes out: Hello John
- How do you use a hidden field in wml?
- How can I use count_chars() to know if a variable contain spaces? e.g. a username
- Mail config
- If I update a my-sql database in a loop, then only one record has changed, how can i slower this pro
- Any better way to get the last element of an array than $array[array_pop(array_keys($array))]?
- I want to replace 'and' with 'or' in a string but want it to only work on whole words. eg not 'sand'
- What's an easy to find out if PHP is installed & working on an NT server?
- I have urls like "c(some numbers)s.html". How can I find out the number bewteen c and s.html?
- How do I create a file using php?
- How can I send email using mail function in linux. It always shows success if the syntax is correct.
- Is it possible to write a file to the users local C: drive?
- Is there an easy way to check if a table already exisits in a database using PHP?
- I want to download and save the file to client without getting save as dialog box.
- Sample code for populating a PDF document using Forms Data Functions (FDF)??
- Is there a way to find out the refering domain as opposed to the refering page?
- How do I get 2 forms to communicate with each other with the child form updating the parent form?
- How do I create a string with A-Z in it. Like "ABC....XYZ"? Like $x=[A-Z]; or something?
- How can I compare the values in an array and then unset the array if they are all NULL or the same?
- How do I convert variables my_var_1, my_var_2, etc. into an array e.g. my_var[x]?
- How do I create a database on the "FLY"?
- Looking for a good encode/decode function set.
- How can I verify the existence of an email address?
- How can I verify the existence of a file on a remote server?
- Where do I have to increase the script execution time in Apache/PHP configuration?
- How do I send html email?
- mySQL/PHP search - Is there a faster alternative to the 'like' query?
- How to connect to a MySQL db from inside a PHP extension ?
- How can I find the name of the FORM that was used to POST to a page?
- How do I supress HTTP headers?
- How do I get all selected values from a SELECT MULTIPLE element after submitting the form in PHP?
- I have access to Linux, FreeBSD & all Windows versions. Which OS should I use as my MySQL/PHP host?
- I have a customer DB and a transaction DB, how do I view a customer and their transaction history?
- How do I insert a null into mysql using a php var? i.e. '$x' where $x could be null or have a value
- Is there a way to redirect mail to be sent thru another mail server when using mail()? ini_set()?
- Please explain the functions print_r and var_dump.
- When I echo "<a href=...&$t=foo>one</a><br><a href=...&$t=bar>" the foo anchor is text while 2nd one is a hypertext link. Why?
- How can I use PHP mail with the crontab command in Redhat Linux 7 to send mail on a specified date?
- If a PHP script is loaded heavily with comments, does the page load more slowly by Apache (to parse out the comments)?
- One variable in a page should be the filename itself. How to do this?
- In my pageheader I call $category = "vari"; Where vari should be the filename minus .php3. How can this be done?
- Is there a secure way to store a password inside a database that will also allow for password retrieval should a person forget their password?
- Passing variables to the next program.
- The post-variables don't come through
Post Variables don't come through. When I use GET in my forms my CGI work but when I change to use
Post Variables don't come through. When I use GET in my forms my CGI work but when I change to use
Post Variables don't come through. When I use GET in my forms it works fine
My Apache only processes 3/4 of my CGI output and stops mid sentence in the output HTML hence now an
I am trying to POST to a .php document with the <FORM action="validate.php" method="post">. But whe
- How do I make a links page that pulls link text and url from a database?
- After install of php4 I get 500 internal server error when executing php3 files. (Apache/Redhat7)
- I am reading the contents of a directory into an array. How can I read them into the array in alphabetical order?
- How do I insert an image into an Interbase database?
- Can I simulate a form submission using a php script?
- I keep getting http 404 error when attempting run my test.php file. I think I installed php wrong.
- How can I setup a form that counts the number of checkboxes the user selects, then multiplies that number times a dollar amount to achieve a total.
- How do I find out what position an array's internal pointer is at?
- What is the error access violation? Why does it happen?
- Sessions didn't work when using header()
- What is the correct syntax for passing more than 1 variable in a URL? And does the script need to do anything to parse out the variables?
- How can I set the PHP_AUTH_USER and PHP_AUTH_PW variables through a form (without popping up the basic type login)?
- mssql "UPDATE [...] WHERE [...]" updates ALL records in my table!
- Is it possible to prevent the results from a query that are displayed on a web page from being printed out on hard copies via the web browser?
- I am getting an error 'Warning: error opening test.asp in /var/www/html/admin/update_all.php on line 33, everytime I use ftp_get. Please help'
- How can I delete an entry in LDAP recursive - (deletes entries and attributes under this entry)
- Is there a way to trigger a user-defined function when a session expires?
- How can I call the same template from different directories?
- How can I use an mail() to capture and mail HTML form variables to a mail recepient?
- Is there a way to keep stateful information in Java objects within a session between different PHP loads
- How do I make a member area in my site? I have around 700 pages and don't want to change them all.
- Is there a PHP way of allowing users to download zip files from my web server?
- Newbie needs easy to use PHP/CGI code to allow users to upload jpg files to web server
- Where can I find the source of preg_match_all?
- How can I view a folder so I can select a file in the folder?
- Need an easy set-up for Windows
Problems installing with apache
- I want to update DB, send ak, and return the filled form for changing data, all at the same time. How?
- How do I get php to create the new file $variable.inc ?
- How do I replace : with chr(0) using eregi_replace?
- In a multiple page form how can you have multiple answers posted for the same variable?
- How can I use 'array_multisort' to implement sql clause "order by col1 asc, col2 desc, col3 asc" ?
- How can I find the difference between 2 dates in weekdays also excluding holidays
- Is there any way to get the SMTP set on the fly? w/out using the php.ini file?
- How can I search $a for ##rand## and replace every occurence of ##rand## in $a with $b?
- How do I get PHP to check a MySQL dbase for a password and username to ensure that users cannot choose identical names and passwords
- I am encounting: "relocation error: file /usr/local/bin/apache/libexec/libphp4.so: symbol __muldi3: referenced symbol not found" - Any ideas?
- How to do Browser, JavaScript, and CSS detection using PHP?
- How portable is php across browser and server platforms?
- How do I get the file extension of a url: http://cyberparadise.org/example.php (return php)
- Echoing current directory
- Why can't I load the extensions by settings in php.ini?
- How to remove the n last characters out of a string ?
- How do I read the last record and only the last record from a table?
- While on a php page how can I tell if a person has clicked on a checkbox, and how can I pass that value to another page...without using submit?
- Installing PHP on apache according to e-gineer, when we say ./apachectl status error says lynx:can't access startfile http://localhost server status
- I have PHP with PgSQL compiled as a dynamic Apache module. DBConnect gives me this in Apache log: /usr/libexec/ld.so: Undefined symbol "_PQsetdbLogin"
- How can PHP scan all the radio objects on a page and then either set or unset them.
- How do i add the values(which are prices) in an array?
- Does PHP has funtions to allow posting information to a search engine to complete registration form with POST.
- Using PHP, how can I can check which radio button is checked and store its value in a variable?
- How to check which radio button is checked and pass the name of the radio button as argument?
how to check an array of radiobuttons in Javascript
- How to dynamically echo an interactive historical path using MySQL parent-child-root fields?
- How to make Php3 work with Oracle8i?
- How can I parse a directory and delete files based upon the time they were created?
- PHP3 on MSIIS. It only displays a couple of pages then it returns: "Unable to open file.php in - on line 0 No input file specified". Any suggestions?
- I'd like to move files into other directory...do you know some scripts who can help me..
- How can I convert a numeric variable to a string, and viceversa (i.e. 10 to "10")?
- Unable to load dynamic library '/usr/lib/pgsql.so' - /usr/lib/pgsql.so. This lib is this directory, but it don't load. Why?? (it's in php.ini).
- How do I, in PHP, list lines of text in a multi-line listbox (not a drop down listbox)?
- I have a MySQL db with a column named "ID". When user enters ID thru form I want to make sure the ID exists and then perform a db query.
- Can I get the results of a mysql query listed for a specific column, as an array or comma-delineated list instead of looping over the rows?
- How can is stop a user from pressing the submit button twice on a php/mysql data entry form?
- How can I set multiple conditionals for modifying a database entry?
- How do I duplicate an array?
- How do you print the number of result from a mysql search?
- How can I create a LDAP login/authentication system in PHP4?
- How do you set and retrieve information from a cookie using php?
- How do I check the filesize of a file on another server?
- If we have array(1,2,3,4,5) how can we add the values of the array eg this example =10
- How can I access a file on a remote machine in a WinNT network? "\\machine\file" won't work...
- Has anyone else had any problems with getting mysql_insert_id ($result) return a value using mysql 3.23.21 with Win98 and PHP 4?
- How do I replace all sequences of multiple spaces in a string with a single space? str_replace gives error when I try replace any 2 chars w/ 1 char
- Problem with PHP while rebooting Apache server by cron
- using fread, is there a way to ensure only one line is read and or that once the single line from a file is read, a carriage return is not inserted?
- How can I post an object to a PHP script? (example: ...action="form.php?$object)
- Compile PHP as CGI with default environment variables.
- When there is an error in PHP, the parser outputs the line number. Is there some function or variable that will output the current line number?
- How can I save php output to the browser and a file?
- Algorithm: How do you evaluate an infix expression?
- Selct Problems.....$query " Select.....where case.CaseNo like '$CaseNo%' or judge.Initials like '$initials%' and case.aocode=judge.ao_code ???
- How can I get someones e-mail adress by their IP nr.?
- How can I get a visitor of my site's e-mail address?
- How do I install PHP on Apache 1.3.11 on a WinNT that is also running ColdFusion?
- Problem PHP compilation with cc on AIX 4.3.3
- How to get POSTed data when Content-Type is missing.
- Why don't the size of gif and jpg show up when using filesize()?
- In windows PHP, when I load php_mssql70.dll as an extension, PHP stops working. why?
- How can I redirect a to a page using 'header: Location' but point to a .php page as opposed to .html?
- How do I display text retrieved from a database in a text area, so the user can modify the text and save the changes?
- How can I compare two queries that are generated from a MySQL database and specify the differences on the page shown to the page viewer?
- Please tell me how I can read 16 bit binary as an integer. Also please explain how to use pack and unpack functions for binary to integer and visavis
- Can some one help me intall PHP3 on Windows running Apache?
How do I install PHP4 on Windows 98 running Apache
- How can I pass information from a membership database (text file) into the Chat Client. Using PHP?
- How do I know which check boxes have been clicked from any number of boxes.
- Can I install php4 as a user and not as a root?
- Can variables be included in a header? Like header("Location: $dir")
- How do I go about adding a rate calulator such as UPS or FedEx?
- Can I write PHP code to interact with a DIFFERENT server as if php were a browser? Cookies and all?
- How can I get everything that IS NOT the word "sentence", from the string "This is a sentence."
- How do i check for float field? User is required to enter amount of cash spend and i do not want rubbish from them other than float / int?
- How can I add a shipping fee to the MYmarket shopping cart?
- Since IE 5.x doesn't pass the name/value pairs of a submit button, how can you use multiple submit buttons in a way that works with IE?
- If I make multiple select from SELECT TAG, how can i receive array of variables through POST or GET Methods??
- I get 'permission denied' on trying to create or append to a file under NT, why?
Permission Denied! Anything can be done to avoid without giving 777 permission?
- Can PHP be malicious like Javascript? As a surfer do I have any security concerns? I can disable Java, can I disable PHP?
if i add alert() in javascript it runs well else functionality not works properly
- How to display 'June 19, 2021' from the value '2021-06-19' got from a MySQL database using PHP3?
- Where can I find a php script to show mysql db results 20 at a time, with Next and Previous options?
- When i press the submit button i want to send the data to my db and reset my form, i want no confirmation page. How do i do it?
- How can I take the control over the length of a TEXTAREA tag? (as the "maxlength" atribute of the INPUT tag)
- Does anyone have experience deleting LDAP entry attributes?
- How can I reverse a array in PHP 3.0?
- how to access an object variable using a variable variable e.g. object->var_a but "_a" should be read from a str. which instead could contain "_b"
- How can I strip items similar to [some text here] from a string?
- How can I remove *every* character accept letters and numbers from a string?
- If I use session_register($object), the class is rewrite to stdClass, and no methods will be avaible. How can I solve this problem?
- How can I disable the back button from a form?
- How do I execute a function when a checkbox is clicked or a value of a combo box is changed using PHP?
- How can I have a user submit PHP script like <? echo $variable ?> using an textarea field?
- Why I get this Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(111) /path/a.php3
- I store "\" as a hidden data and upon submitting the form, on the receivng php page shows up as "\\". Why is this so ?
- How to exchange data with IE4.0 about "My Favorites"?
- What are the default values of uninitalized variables in PHP?
- How can I sort a file so that rows would be in alphabetical order?
- How can I ensure that data entered by the user is characters A-Z/a-z/0-9 only?
- How can i acess a variable inside a class that was declared in other module(included by require/include) ?
- can someone show me a sample code which will take some values, view it again for confirmation , if it is OK,post to a database or should take back.
- How do I control the number of bytes sent to an output file in PHP?
- Can I store an array of objects as an object variable?
- How can I make a drop down select list of URL's that jumps automatically?
How can I make a select list that automatically redirects to a different page?
- How can I handle unselected checkboxes in PHP scripts?
How can I give unselected checkboxes a value?
- Can you include and call C libraries in PHP scripts? How?
- Can I pass a multi-dimensional array from one script to another?
- Where can I learn more about regular expressions?
What are some good books on regular expressions?
What type of regular expressions are used in PHP?
- Can I make an assignment to $this in a class method?
How can I reset or clear the value of an object?
- How can I search a database for part of a string?
How do I use LIKE in a query?
What is the wildcard symbol in SQL?
How to speed up a like??
How to create an query that uses like and or that doesn't take forever to return reuslts?
How to create an or query with using a like?
- How can I use an array as a form variable?
Can I pass an array from one script to another?
How can I use a multi-dimensional array as a form variable?
- What is a good editor for PHP under Windows (and or Linux, Unix, FreeBSD, Mac)?
- AddSlashes keeps being run automatically. What's happening?
Why are the apostrophes and quotes in my form data always doubled up?
How do I stop my multi page form elements from looking like this: foobar\\\\\\\\'s?