PHP5/Questions Answered by Expert Marty Landman

SubjectDate Asked
Form Processing With PHP4/13/2011
  Q: I am attempting to process a form on my web site, using a software package called Forms Expert. It ...
  A: Kathy, That's quite a lot of code. There are more lightweight form mailers you can try out, ...
Disabling a field3/1/2011
  Q: I'm trying to develop a website that allows registered users to create a wish list. I'm using Drupal ...
  A: Paul, The approach I'd look at first would be setting up a custom content type. The CCK module will ...
Looping multidimensional arrays9/25/2010
  Q: I hace a multidimensional array (let's call it answers). Answers has four columns (id, name, email, ...
  A: Rudolf, Often today these types of data structures are represented by hashes, ie. arrays where the ...
Call C function from Php9/9/2010
  Q: could you please me help about that ? In fact, I just need to call a C function which is in a ...
  A: Try the exec function, for example if you're calling myfunc.exe with the parameter 20 ...
foef & fgets error messages8/27/2010
  Q: I took code for website from one host & placed on to another host. I now receive these errors: ...
  A: Jerry, I agree with you, it does sound like you may have given an incorrect path. One easy way to ...
formatting.php error8/18/2010
  Q: Can you please help me? I adjusted my formatting.php on my FTP server and since then even though I ...
  A: Lisa, To try to solve the invalid header problem with filezilla and notepad++ I recommend you ...
formatting.php error8/17/2010
  Q: Can you please help me? I adjusted my formatting.php on my FTP server and since then even though I ...
  A: Lisa, I suggest rewriting the first 2 lines of the formatting.php file manually. This may be all ...
PHP if/else Script8/16/2010
  Q: I need help with a quick script. I'm going to be split testing different landing pages and I need a ...
  A: James, I hope understand your question adequately. If so, suggest you instead code something like ...
How to have a commenting facility?6/22/2010
  Q: I'm building a website and each web page will showcase an item such as a recipe and I would like to ...
  A: If you can upload files to the server then you may be able to do the installation yourself. In fact ...
How to have a commenting facility?6/21/2010
  Q: I'm building a website and each web page will showcase an item such as a recipe and I would like to ...
  A: Yes I strongly recommend you install Drupal which is a free content management system. It includes ...
Passing an array from one server to another by Form Post6/9/2010
  Q: I have a requirement of sending an array generated from Mysql database and PHP from my server to ...
  A: Thomas, For data this straightforward I'd use CSV files - stands for comma separated values. PHP ...
key=>value pair into array6/1/2010
  Q: Marty Landman I'd like to add a key=>value pair into an existing array, after the array has been ...
  A: Jay, You can do it like so: function add_key_value_to_array($key, $value){ $myArray[$key] = ...
php include2/15/2010
  Q: How are you? I'm building a website where different parts of html are brought together by php. For ...
  A: Tom, PHP runs on the server. You can have the button be a link and then include an argument in the ...
Online form using PHP6/20/2009
  Q: What PHP coding is necessarry to create on online form, where people can enter information and it ...
  A: Rob, HTML and PHP are all you need to know for the form and form data retrieval from the presenting ...
How to retrieve all text from a PHP file from another PHP file6/16/2009
  Q: What I am trying to do is, for instance, having a file called header.php and retrieving its content ...
  A: Fabricio, Just read the file into a variable in your program and then use it accordingly. Here's ...
Ready Scripts6/2/2009
  Q: I'm looking for scripts to make some websites. I've been told I could buy some premade ones but ...
  A: Nabil, It's been said that free software is only free if you don't value your own time. I'm afraid ...
Search Results Pagination3/12/2009
  Q: My question is simple but I'm not sure if the answer is just as simple. Maybe you can help. What I ...
  A: John, You can add to the select statement at the end LIMIT $N where $N is the number of results ...
Mac OS x 10.5 local test environment (MAMP Pro (php, MySQL, and Apache) and Dreamweaver)2/26/2009
  Q: I am trying to set-up a local test environment. I have set-up virtual hosts and can do basic php ...
  A: Tracey, You say this is a local environment. In that case to send emails you need an email server ...
insert query2/18/2009
  Q: I have 3 tables. Members (ID, first, last, email, gender) products(pID,price) ...
  A: Connie, The query is SELECT ID FROM Members WHERE first = $input_firstname AND last = ...
php programming2/12/2009
  Q: marty- I'm a beginner (and I mean REAL beginner) at learning php and database building. I've been ...
  A: Here's an example I 'made up' based on the discussion at http://us3.php.net/while $rich = ...
php programming2/12/2009
  Q: marty- I'm a beginner (and I mean REAL beginner) at learning php and database building. I've been ...
  A: Rich, Look at the tutorial http://www.phpf1.com/tutorial/php-array.html Write back if you have ...
os user in php variable2/11/2009
  Q: i am using php5 with Apache. whenever remote user access home page i want to get os user name. if os ...
  A: Anwar, you probably can't get much info about the client's own machine from a server program, but ...
a simple example of a form2/3/2009
  Q: I'm learning PHP and I found the web but couldn't find a simple example that shows a form in PHP ...
  A: You could do it while they are typing using Javascript - see this tutorial for examples of this ...
a simple example of a form2/2/2009
  Q: I'm learning PHP and I found the web but couldn't find a simple example that shows a form in PHP ...
  A: Connie, There are examples of this on the web, I found one that hopefully will be helpful, looks ...
starting with php1/12/2009
  Q: am looking forward to take a training course in php. i have no exposure to it. i browsed through web ...
  A: Arul, PHP is a programming language which runs on the server. It is an embedded language, meaning ...
question about coaches5/1/2008
  Q: I was wondering if you could help on a matter regarding the use of coaches(ie ',") in php. Where it ...
  A: Shisir, The difference between a single quote - ' - and a double quote - " - in PHP is that single ...
php4/14/2008
  Q: how to store database values to xml file
  A: Vasu, There is an XML parser for PHP http://us3.php.net/xml however you may need to write your ...
Page ID3/18/2008
  Q: I'm new to PHP and can't find the answer to a simpleHow do i associate page ID's with filepaths? ...
  A: Vladislav, How to accomplish this depends on your site architecture. How do you determine the ...
PHP5 installation3/7/2008
  Q: Marty: After suffering a lot, I have just installed php5 and mysql on iis5 on winXP. The problem ...
  A: Patricio, Unfortunately I have no experience with IIS - however here is a link to a Microsoft ...
Crystal Report and Php2/5/2008
  Q: Marty Can we call a crystal report from php? if so how can we call, can pls give an example ...
  A: Ahmed, There is code posted here http://littlelink.webtrouble.com/?B00y If this is not adequate ...
Crystal Report and Php2/4/2008
  Q: Marty Can we call a crystal report from php? if so how can we call, can pls give an ...
  A: Razzak, There is code posted here http://littlelink.webtrouble.com/?B00y If this is not adequate ...
PHP3 vs PHP51/31/2008
  Q: Can you have PHP3 and PHP5 on the same box? (We have a Win2003Server with IIS6) Also, is there an ...
  A: Brandi, I couldn't find any specific info on running different PHP versions together under IIS, ...
CSV File7/24/2007
  Q: Using PHP and MySql I am viewing the database information through Web Browser. I would like to ...
  A: Copy and paste is the only way to do this I know of. Otherwise you have to generate a report by only ...
Deleting Checked checkbox7/19/2007
  Q: I build php page review the email that i receive it or post it and each of these record have ...
  A: Can you show me the code you're using and sample output? Have an idea on what you can do, will be ...
Task Scheduler7/9/2007
  Q: I am using MySql with php. I would like to know how to create task scheduler in php through Web ...
  A: I don't know what your background is, also the operating system that you're using would be helpful ...
Directory cannot e read6/2/2007
  Q: I bought a fully automated ebook store package from the ebay website. I paid the seller $48.00 incl. ...
  A: I did a google search on the phrase "The downloadable products directory cannot be read:" and got ...
php - mysql query2/26/2007
  Q: im taking some data out of a mysql database so it will look like a name followed by a comma (i.e. ...
  A: Dominic, Use the rtrim function, which you can read up on here ...
Development of chat, using Ajax and Sockets.2/22/2007
  Q: I am a nascent one in the handling of php, and still more in the one of Ajax, desire to make chat ...
  A: Jorge, There's an article which is supposed to explain how to do this here ...
login script2/20/2007
  Q: I want a log in script (codes) for members to access certian pages/files with register, login, ...
  A: Sala, Suggest looking for an open source application at sourceforge.net to see if there is ...
pb with implode2/15/2007
  Q: here is my problem : <?php ...
  A: Laurent, I am not having a problem with this. When I run the following on my server <?php ...
redirect in php2/15/2007
  Q: how can i change (redirect) the page automaticly in php 4? i used request(...) method but some times ...
  A: Try this code: header ("Location: http://www.starjokes.com"); /* Redirect browser to starjokes.com ...
php server page2/14/2007
  Q: i'm trying to build an application that runs on the server. for example, i want the server to run ...
  A: If you're running on a Linux type of server then you'll have the crontab available to you. This ...
Insert Image php2/11/2007
  Q: I'm trying to just insert a simple image using php. I have tried to use many example shown on the ...
  A: Tony, I'm not familiar with the insert function that you're using, is it a part of the program that ...
PHP usage2/5/2007
  Q: The text above is a follow-up to ... -----Question----- Hi, I ve just started a course at ...
  A: Just about anything you can imagine doing with a dynamic web page. Database driven content, shopping ...
PHP usage2/4/2007
  Q: I ve just started a course at university with PHP, we have an assignment to create a dynamic web ...
  A: Paul, If you want to dynamically change the CSS it's not that different from what have already ...
learning php2/1/2007
  Q: I would really really like to learn php. The only other computer language I know is HTML so my level ...
  A: Olly, You could start with an open source PHP script and learn to install it - that will hopefully ...
PHP usage2/1/2007
  Q: I ve just started a course at university with PHP, we have an assignment to create a dynamic web ...
  A: Paul, You can very easily use PHP to render the entire page dynamically. Do this: - write a static ...

All Questions in This Category

PHP5

All Answers


Answers by Expert:


Ask Experts

Volunteer


Marty Landman

Top Expert on this page

Expertise

Web development and general programming using PHP, also installation on a web server.

Experience

Have done web projects and installed PHP on numerous servers.

Education/Credentials
MS in CompSci from NYU.

©2012 About.com, a part of The New York Times Company. All rights reserved.