Questions and Answers
Here are all the questions currently listed on PHP Questions that are waiting for an answer:
Can you answer any of these questions? If so, simply click on the link below for that question and type in an answer.
Remember to give your name and website with your post so we can credit you accordingly when the answer is added to the site.
How can I call online a PHP function. It works local but when I put it online it does nothing.
I call online a php function to load pictures into my flex application.
Thanks
Bart
How can I show an image from mysql?
Can I use a variable from a .php file to give a value to an HTML FormMail form field thus: ?
Thank you
I am trying to find the most recent directory that I am working in.
example
http://www.mysite.com/apples/index.php
how do I get php to find the directory "apples" so I can make it a directory
Hello - I am writing a PHP program to control an external camera connected to the USB port. For example I issue commands such as 'up', 'down', etc via an external program that I call using exec("cameracontrol.exe"). I would like to store
How can i load images with php?
How can i create a hyper link to my site in php?
1.want to know simple logic and procedure of FORM VALIDATION?
2.How to check Login and password in PHP?
Hi.
i have a music samples website. in one table, id like a different sample to appear every time the page is refreshed.
how do i acheve this? how can i alterate and retrieve these bloody mp3's?
surely i can use a PHP script?
thankyou
How to i decimal, comma, and $ format a number called from mysql displayed in a table cell using php. This is the call script
and this is the formatting script
How do I replace the $value=123... with my call script? Thanks
What is the return value of array_unique()?
I have Apache installed and working properly on my machine. The problem is when I try to exetute php files. Instead of showing the result it simply displays the php code. But it executes properly in php editors installed. I use Luckasoft - Enginsite edito
How do i check that a valid email address is entered?
I had installed WAMP server on my pc and i make small prograsm of 3 lines and save it as .php extension but when i open it through internet explorer it result nothing.
Program is
plz help what error it could be. how i make it correct.I just started l
I have uploaded a vbforum which is al coded in php. and i also have a php.ini file. i turned the display_errors off. so now whern i try to go to the site i see a blank page. And everything is correctly coded because i didn't change anything. But it works
Hey,
I need a php script to copy a complete directory to a new one (which is a variable). i.e
www.webpage.com/example/ --> www.webpage.com/folder_just_created/.
I've looked for hours
Kurt
Hello There...I'm Having This Error which says Parse error: parse error in C:\Program Files\xampp\htdocs\WebFolder\page.php on line 914 BUT that line of code doesn't exist in my programme.Can anybody HELP me? Pleaseee....
p/s:-By The Way, I'm Usi
How can i add a chatbox to my site?
What is this form of code for a website?
http://www.virginamerica.com/va/home.do
the drop down menu's. whats the name for that. im trying to incorporate it into my design, but dont no the name for it.
Hello,
I have a php file that has octet binary numbers in it. How can I see the actual wording?
This is an example of how it look:
00111010
11010010
And so on.
How to display multiple images in a form
path came from database and images are store in Image folder(assume 10 images are uploded that i want to display)
Hello all, I am trying to save a page in word document using header() function in php. Well, I used common tags for html like and .. everything works fine with me and it is dispalyed correctly in doc file.
But then, I tried to insert an image and save
How can I access information sent through $_GET on a form?
How can I access information sent through $_POST on a form?
How do you email the contents of a form to someone?
How to access information sent trough $_GET on functions?
What are causes of seeing the actualPHP code in my web browser
How do i validate the name into form ?
How to upload large files like mp3 songs in php
I have a main WEB page that will be sereved. This page has text data on it that will come from a file(iframe). The data in the file will be changed when other applications make requests to the apache server to server data from a database. When this hap
I was wondering how do i make all the logs and comments go to an email account so my client does not have to keep logging in, she can get them and answer any questions via email..
Thanks
Sort
Where do i go to paste my google adsense code?
Where do i go to paste my google adsense code?
How do I get my chat script to include the contents of the msg file in real time instead of only when the page is refreshed?
How to Store data( resultsets of a sql query) in sessions so that each time the database need not be approached...?
How to find the contents/values of specific number or field?
How can i fix my internet webpage?
What is output of variable $b.
In this php
How do i send the information from one page to another page using post method.
How to create a search engine
How do i send email through php script?
I get this error every time I execute a php program.
PHP Warning: Module 'gd' already loaded in Unknown on line 0 PHP Warning: Module 'mysql' already loaded in Unknown on line 0
My website www.quicheandpie.com has navigation buttons which were added by going to admin/categorylist and adding a category.
I can add category = navigation buttons and update them, but I can not delete them. Any ideas how I can find where the info
I am extracting data from a MySQL Database of which one of the data stored is seperated by a comma. For example, step1,go here,step 2,go there,step 3,go back etc etc. I want to know how to split the data at the comma and format it in html. Using the split
Difference between fetch_array function & fetch_row function
Difference between fetch_array function & fetch_row function
How can you reset an array in PHP
When i fetch the record in the database but they skip first record in the database
i start a new session with : session_start();
then i set some session variable like this : $_SESSION['name']=$_POST['name'];\
and some another variables.
at bottom of page i set header to diffrent page : header('location: index.php');
exi
WHAT IS THE CORRECT WAY TO OPEN THE FILE "time.text" AS READABLE?
I'm trying to replace multipl occurences of "[nuber_goes_here]" in a string using preg_replace.
$string = 'This is a sentence with a [25] in it.';
echo $string.'';
$pattern = '/(\[)(\d+)(\])/';
$replacement = ' '.return_name(
Is there a PHP framework like we have ASP.NET framework?
Design a calculator application using php
How can we display a particular data from database by creating a function
How to display like table from database records?
There are 2 text boxes and one button.if v enter values in the text box and
click on the button..it should get added to that table..so it shoud keep
on adding the rows as v click on the button.
How to avoid the refresh or goback to submit the post values in database
I have two web solutions I downloaded from the internet. Jobs Portal, Classified and a forum script. Each of the scripts has its own signup and log in module. How can I make visitors register and login through one webpage without having to login in all th
Why will this statement not print a column with "lastname space firstname"?
Print " .$info['businessname'] ";
Print " .$info['firstname']. " " .$info['lastname'] ";
I want to see 2 columns - a
I am unable to make pages for my search result.Below I am giving the code that I am using.
Career Search result
Yami says
Is it possible to create php programs and view them if my operating system is DOS, not unix?
Whether I create a DocumentRoot of C:\public_html, or C:/public_html, in my httpd.conf file, the result is:
When go to http://127.0.0.1, I see:
Index of
Hello,
Is it possible to specify a character-encoding in the filter_var function.
Thank you for your reply,
Jan
How can we erase some data in a txt file after some bytes
My web site www.innovativephp.com is not configured properly to dns how can i do that?
I am having a form. Here, i am submitting the form using java script as its necessary. If the form method is get, i am able to get in redirection page and can get the hidden values in the form. But if the form method is post, i am not able to get those hi
Mail
I currently use this form on my site:
Name
Hi,
I need to fetch data from a web page with PHP. The only problem that I face is that I need to log in with name and password.
I am taking over a position from another programmer, and want to change some php code, but part of it has me baffled.
The code creates a form and after it is filled, the client wants it to go to a separate thank you page – right now, it re-uses the for
Getting first five lines from a file
I recently updated from shared servers to virtual dedicated, I now cannot see any of the images I try to upload. The hosting company says that the script for the images are in the root directory but the images are not.
The programmer said he didn't c
Hello:
I receive two error messages when I try to submit a form. The messages are:
Warning: mysqli_query() [function.mysqli-query]: Empty query in /home/content/PRIVATE/html/riskyjobs_riskybusiness_Database_TableSetup_riskyjobs_Table_Chapter9_Page5
How can i get the data by using get(),post()methods?
Which function can assign the output to a string variable?
I need to store a multi-dimensioned array into a file. there is plenty of info. on creating md-arrays but i cant find anything on writing a md-array to a file.
1-what is a
header("Location:http//www.website.com");
2-how does it work?
3-What is a reason to use this function?
I have an array of a hundred or so lines, each line has data with "|" separated values. I need to scan through this array, and select the line whose first 5 characters matches a text string. Any ideas or questions?
How do you hash the password in this php script:
define(sb db user name, admin store);
define(sb db password, mypassword);
How to get gmail inboxmessages in php using username and password
I have 2 forms in one website... What do I name the php files for each form? The first php file is named: send_form_email.php, what do I name the second, or do they both go in the same php file?
Hi all ,
I use CURL to login to webtrafficagents.com .
I got the script and modified it to login to several sites , but it can't login to this one , any experts can help , a reward is granted :)
what i want :
I want to be able to view the source
1. How do i find out the number of parameter passed into function?
2. What are encryption function in PHP?
3. How many values can the SET function of MYSQELtake?
Can we use include ("abc.php") two times in PHP page "makeit.php" ?
What is the latest release version of PHP.
How to expire cookies when user pressed a button in webpage?
I want have a link in my website then delete cookies.
Hello,
I began developing an application using PHP 5.3 and have included several classes.
Now my client is saying he wants to use PHP 5.1.?.
I switched the PHP version and tried it and immediately received an error about a line that access
How do I change:
function wordlimit($string, $length = 50, $ellipsis = "...") {
$words = explode(' ', strip_tags($string));
if (count($words) > $length)
return implode(' ', array_slice($words, 0, $length)) . $ellipsis;
else
Dear all,
i am using the Ireport to do the interface of my report and i want to combine it with the ATK Framework using Zend studion.
but when i click "Print"(cetak), the page is blank. and the url showing the nokp=array.
is there anything wr
Explain why the meaning people have of health may contrast with the meanings other people may hold.
Print(1 . " + " . 2 . " = " . 1+2 . "n");
gives answer 3 why?
Why does this code not work?
Returns this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ClaimNo = AND UserName = john' at line 2
Would like to create a web page by using the contents of file#1 as input, writing contents of a variable as content, and ending with contents of file#2. Would you please help me learn how to do this? Here is my attempt:
$in1 = 'input1.html';
$in2 =
Help : how to automatically upload files every 5 minutes ?
Hi ,
Can anybody help me with this php code :
I want to read the file names from a folder ( word document files or media files with extentions) and
enter the url of the files in mysql d
I have a form that I need to do two things: send all the input values to a confirmation/pay page, and send to me via email.
Payment is based on what the customer picks (naturally).
The way I have it set up is the form action goes to the confirmat
If i send values to database ,but in that table zeros is added ,how can i rectify the error
If i send values to database ,but in that table zeros is added ,how can i rectify the error
I'm shuffeling through numbers range(1, 10). Can I eval resulting random numbers and convert to appropriate text? 1 = username1, 2 = username2...etc?
PHP program to register students' record
THIS IS THE CURRENT CODE:
---------------------------------
Please can any one help me to solve this problem
how to comparer two images and show the dissimilarities in third image in php code?
How can we save the screenshot of a webpage using php.
DYnamic Dropbox when I select a value it has to add a textbox to a specific position in the form how do I do it??
If I could change the dropbox in a textbox and make it add Textboxes depending on the number typed it would be even better but dont think th
Where do i write down the codes of php? and where do i use mysql?
Can someone look at my code and tell me if I am on the right track to authenticating a user who logs into my online form? When I place the code in the file, the form disappears.
When running a php script, is it possible to have it pull from one txt. file and then a 2nd txt. file?
Hello everyone.
i just copied the www.facebook.com/login.php source code and pasted it into fblogin.php page in my wamp directory.
now i made the following changes
at the beginning of fblogin.php i added this code
what i wanted this code t
Is it possible to submit a form without
a submit button
What is the correct way to connect to a MySQL database?
I have had a login script on a website for a few months working fine without a problem. But the pastfew days it now returns an error.
This is the error:
Parse error: syntax error, unexpected '{', expecting '(' in D:Hosting6189501htmllog.php on li
I get a Parse error on my login page... need some help please!
When i run this script
HOW CAN I DELETE ALL THE ELEMENT OF THE ARRAY
The code is running well without errors but y is it that three of the columns in the table do not insert data?
How do I save text inside a textarea so that it can be updated later?
I have correctly coded an email from my website to my gmail and hotmail account. The code recognises that it has been sent, but the message doesn't reach its destination.
The only thing I can come up with is that I am not connected to a mail server.
How do i keep my site menu in one file?
In .$array->description doesn't work "description" is suppose to stay black and turns colored and is ignored Why?
Hi.
1st site is 1st-site.com
2nd site is 2nd-site.com
in 1st-site.com/index.php there is a frame.
in this frame src="2nd-site.com/top.php"
how can i know the 1st-site.com from 2ndsite.com..which xode i must use to get the adree in the adr
I want to tell a search engine to look into a specific websites only and not the entire webs, how can I implement this in php?
How to get most repeated value in an array?
I need to set the object variable at run time, it is working, but PHP returns me:
Creating default object from empty value (/sct/fw FW_List.class.php:1142)
function set Template (&$object, $tpl_names){
foreach($tpl_names as $tpl_type) {
$
How a values entered in an array from keyboard?
I need to test database time needed to execute scryp (like 10 000 inputs)
with what command i can start measuring time, start scrypt, and then to stop time when scrypt is done and get time resault?
How to verify that a function exists before you try using it.
When I run:
$ php -r 'echo "foon";' | less -c
the "less" program behaves wrong. Pressing "q" does not quit the program: the "q" echoes to stdout and you have to press ENTER afterward. How to avoid this behavi
Reverse an array
I got a weird problem on float number.
I stored an integer number into an array like $number[$i]['duration']= 9 ,and return this array to main function. Then I need to do some calculation in main function with this number like:
1.$temp=0.5
2.var_du
Hello, My question is about general practices. With classes, is error handling usually done inside of the class' functions, or would you just do the bare bones amount of work in the class, and then do error checking when you use the function elsewhere?
How sorting an array with keys?
Hello
I found this code somewhere and tried to create online dictionary with it. I managed to insert the code in to my template index.php. But after the user click submit button the result shows in other blank self created page something like index.php?a
I have a database with a table and in the table I have a row named php_code and I want to print the code of this row in my site as script. Example in row: and in my site: hello.
WHICH OF THE FOLLOWING VARIABLES IS NOT A PREDEFINED VARIABLES
Dear Helper,
I am new to PHP and WAMP Server. I have installed the WAMP Server 2.1e and I have tested it with a simple PHP program but there is no response when I load it in the IE. What are the probable causes for that?
(Note: The WAMP server wo
What is this:
=>
It appears like an operator, but what does it mean or what does it do ??
Equip table and Vendor table. Each piece of equipment has a matching vendor ID. How to display vendor name instead of ID in PHP output?
How do i upload a file to database
I need to send confirmation email after registration!!
I have my own domain!!
do I need any smtp id or something?? if yes, how to get that?
Jquery date picker already shows when I open jquery popup box without clicking calender icon in IE browsers.How can I do?
Percentage Questions
How do I compare strings in two file and return similar string in another file?
How do i list a record in front that is recently added to the table?
Im getting a Resource id #5
$rs_comp = mysql_query("select * from company where autoID='$row_settings[compid]'");
The uploading status shows success but not showing in the server is empty the written php file is first gave warning cannot uploaded warning in foreach loop but i corrected mistake by keeping above if condition and no error status shows success upload b
Hi,
im fernando and im a newbie to php.
i have a question regarding after user registration process.
i want to redirect a user to a static web page according to their username.
for example. if we use localhost, and the user name is john,
the web
Hi,
im fernando and im a newbie to php.
i have a question regarding after user registration process.
i want to redirect a user to a static web page according to their username.
for example. if we use localhost, and the user name is john,
the web
My echo command works fine like this:
echo " $row[studentName];
however when I try to center the data using div it fails...
echo "$row[studentName];
I want to use the php include function to bring in a file that is related by $ref to this page and I cannot get it to use the $ref variable.
my code line is
where echo $ref is the property number
basically it is a view of different properties an
I have used the funtion Rate (code below) and i have some troubles with it. When i use it with the following values:
(Wrong)
Excel - RATE(228;-196,02;-49005;961546,464646;1;0,05) gives: 0,0119
Php - RATE(228,-196.02,-49005,961546.464646,1,0.05) gives
I have used the funtion Rate (code below) and i have some troubles with it. When i use it with the following values:
(Wrong)
Excel - RATE(228;-196,02;-49005;961546,464646;1;0,05) gives: 0,0119
Php - RATE(228,-196.02,-49005,961546.464646,1,0.05) gives
I have the following list :
Tom T1
Tom T2
Bill T1
Bill T2
Jack T1
Jack T2
I need it converted into :
Tom T1,T2
Bill T1,T2
Jack T1,T2
What is var_dump function in php?
What are php array functions?
How can i print a file without opening it ?
I just wanted to put a textbox beside the query of the evaluation form. how can i do that?
==========================
here is my php form
index.php
PERFORMANCE APPRAISAL INSTRUMENT
var Event = {
add: function(obj,type,fn) {
Index.php file is automatically deletes from the server.
How to display only product image with product name in 4 column set from mysql database?
I want to create a webapp that has 2 fields to fill in with variables there should be 2 random variables to choose from per field there are some meals that both are able to appear in the first and 2nd box if you'd randomize it i want to make a cycle that
Hi guys i have a problem with my script it says my strings are undefined but i clearly did it worked before some help please
Patientnaam:
geboorte datum:
Afdeling:
Hi guys i have a problem with my script it says my strings are undefined but i clearly did it worked before some help please
Patientnaam:
geboorte datum:
Afdeling:
Is there a way to use readfile() and not have it display the byte number at the bottom?
Is there a way to use readfile() and not have it display the byte number at the bottom?
Dear Friends,
I need to enable the user to add a drop down menu and a text field by only clicking on button (in case the user wants more) I have the following codes how do I make it better:
Enter User :
Truck Mixer
What is the starting salary of Php developer in india?? after 1 year experience how much i could get??
I have a site named profile.php where i want to replace the following:
http://www.youtube.com/watch?v=yoXE031j8d0
into:
i know i could use str_replace to replace
into
... but i need to know the URL so i can check if it rea
Hi;
I had an email from my hosting company which said that my account was hacked and one script in images folder is trying to send thousands of spams(file name : "/public_html/images/sm5vy7.php"). they blocked my account and asked me to check
Hi;
I had an email from my hosting company which said that my account was hacked and one script in images folder is trying to send thousands of spams(file name : "/public_html/images/sm5vy7.php"). they blocked my account and asked me to check
I was learning about cookies and create a simple page to set a cookie as follow:
Cookies
when I check with firefox I can see that the cookie exist under the local host folder however when i want to cal
I was learning about cookies and create a simple page to set a cookie as follow:
Cookies
when I check with firefox I can see that the cookie exist under the local host folder however when i want to cal
OK I've been trying to echo out the arrays "$people and $other people" using the for-each method in alphabetical order. but when i see what this displays it does it in some other order.
THIS IS THE CODE
PHP Ch8 Lab
How to get theses to player side by side
)
7 Using regular expressions check for the validity of entered email-id. The @
symbol should not appear more than once. The dot (.) can appear at the most
once before @ and at the most twice or at least once after @ symbol. The
substring before @
If I have a string "$obj = new class()" how can I echo this in another file so that a class appears?
If you set an infinite loop within in which is an echo() to print something then why does anything at all get displayed in the browser as I thought that maybe the document is not sent to browser till done and if php engine stuck in infinite loop then why
I have a script that spits data in this format :
Title
1.a
2.b
3.c
Title 2
1.a
2.b
and so on. The code is quite simple. echo $title echo $lines. How can i make a selection and change the display?
Can somebody help me... im trying to create a search engine using 4 button n php but the problem is i couldn't display the result after i click the buttons.. how to use 4 or more button to search in php?
