Latest Tracked Programming Questions Of PHP

PHP : mysql > php   (Views   1954)

Posted On: Wednesday 24th of October 2012 12:33:01 AM
HI ...I want to make a form in php that will allow my users to view, edit records from a mysql database Would this be hard to accomplish considering I do not know php. I have attached an excel spreadsheet of the form I want to create. You will have to rename it to .xls.Show More

PHP : information over multiple blocks   (Views   236)

Posted On: Wednesday 24th of October 2012 12:33:00 AM
How do i split the record fields over multiple blocks.(e.g. in the "find file option" of windows. there are three blocks : "name & location", "date" , "advanced")The validation for mandatory fields on each blockShow More

PHP : calling php from inside    (Views   201)

PHP : PHP, mySQL, and QuickTime links...   (Views   237)

Posted On: Wednesday 24th of October 2012 12:32:56 AM
This is my first php app. I've got a details page which has filenames of QuickTime movies. I'm trying to make them open up into a new browser window of a specified size and play. I can only manage to get them to open up as a fullsize browser window, not the 400x300 or 200x150 I've specified....Show More

PHP : strip URL out of a Database field   (Views   223)

Posted On: Wednesday 24th of October 2012 12:32:54 AM
I have some text that is stored in a database field called 'Body'. Within this field there are URLsI want to be able to get the URL out of the Body field and show it as a Link on a pageI am a novice user and I'm still not to sure how to get this working.Show More

PHP : php mail() and firewalls   (Views   256)

Posted On: Wednesday 24th of October 2012 12:32:52 AM
I've created an email form that emails from my client's web site to my client using the php mail() function. The web server and mail server are on seperate machines. It works on all email addresses I've tested (it's a script that I've used many times before) except my client's email address. ...Show More

PHP : Problem capturing output from GPG command in shell...   (Views   180)

Posted On: Wednesday 24th of October 2012 12:32:50 AM
I am uncertain what I am doing wrong here....I have finally sorted out that it was permissions that were preventing me from running the gpg commands I was trying to run and I can now run them. The problem is that I am having real trouble capturing the output from the commands I am...Show More

PHP : Problems with gpg in php   (Views   200)

Posted On: Wednesday 24th of October 2012 12:32:49 AM
I have been working oon this problem non stop for the last two days and think I am going to go out of my mind.From all the research I have done my coding should work, but alas it does not.I am trying to get the values from a form encrypted, and then emailed.I...Show More

PHP : Display error message when user tries to add duplicate record into MySQL   (Views   169)

Posted On: Wednesday 24th of October 2012 12:32:47 AM
I am letting users add some information into MySQL database via forms. I have set one of the fields in the database as"unique" to prevent duplicate records. What I want to do is to display message to the user when he/she tries to add the same record twice(i.e submit ethe same form with the same...Show More

PHP : posting diifferent time zones   (Views   234)

Posted On: Wednesday 24th of October 2012 12:32:45 AM
I want to post the date and time it is here (PMT) and the date and time in Austrailia (whatever that is) on the same page so you can see what the difference between the 2 are... any suggestions would be great.Show More

PHP : lookijng for a file upload/download database script.   (Views   153)

Posted On: Wednesday 24th of October 2012 12:32:43 AM
Hi i was wondering if anyone can point me in the direction of a script.I need a script that lets people upload a zip file to my website but also fill in a form with some fields.Then i want to be emailed notifying me of the uplaod and for me to have to manually allow it...Show More

PHP : multiple indirections through object methods   (Views   249)

Posted On: Wednesday 24th of October 2012 12:32:41 AM
I've been trying to get something like the following to work, but I can't figure out if PHP has any facilities/hacks for making it work: PHP Code: Show More

PHP : forms and headers   (Views   262)

Posted On: Wednesday 24th of October 2012 12:32:38 AM
so there's all the bs about how u cant type anything before using a header("Location..."), (assume we're also using sessions for authenticating user) then how would u implement code such that u have a form - call it formA. Show More

PHP : Does php still support configure with java   (Views   227)

Posted On: Wednesday 24th of October 2012 12:32:36 AM
I found several pages that explained step by step how to configure php with java support. I followed the instructions and everything went well until it got to the point of copying libphp_java.so from the modules directory to the php install directory. The problem is - libphp_java.so doesn't...Show More

PHP : Can I simulate "back" button    (Views   242)

Posted On: Wednesday 24th of October 2012 12:32:34 AM
I have this form with a lot of stuff to fill in,when one submits it, the values are checked and you get an error message if you forgot to enter some things ( like the date ).Now if you press 'back' on your browser, you still have all the values filled into the form. If I make...Show More

PHP : preg_replace problem   (Views   254)

Posted On: Wednesday 24th of October 2012 12:32:32 AM
Ok, I am trying to encrypt specific strings in a file.current code: Code: Show More

PHP : array allocation   (Views   244)

Posted On: Wednesday 24th of October 2012 12:32:30 AM
if i say $test['question'][5678] = 38will this allocate space for all the elements from 0 to 5677 or just for one elementShow More

PHP : Serializing objects and storing them is sessions   (Views   164)

Posted On: Wednesday 24th of October 2012 12:32:29 AM
I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable and am not using session_register(). Here's what I'm doing.On first page:Show More

PHP : date - day finder   (Views   256)

Posted On: Wednesday 24th of October 2012 12:32:26 AM
How can i find out if a date in future is between Sunday - Thursday, or even a particular date is Monday, TuesdayShow More

PHP : Verifing username and passwords from .htpasswd   (Views   218)

Posted On: Wednesday 24th of October 2012 12:32:25 AM
I am having problems reading my .htpasswd file, or I think I am. I borrowed this PHP Script from a zend.comarticle. But I am getting a false value and not a true value. Show More

PHP : deleting files from server   (Views   234)

Posted On: Wednesday 24th of October 2012 12:32:23 AM
i've tried searching on here and google and havent found anything, how can i delete files from the server using php , i actually did try the manual, buti must of been searching the wrong thing,Show More

PHP : time() - to nearest half hour   (Views   248)

Posted On: Wednesday 24th of October 2012 12:32:21 AM
I need to write a function that can return the number of seconds between present time and the nearest coming half hour.For example: If the time is 22:12, I want the number of second to 22:30.I didn't think this was hard, until i tried it... I just can't find an easy way...Show More

PHP : quiz problems..   (Views   215)

Posted On: Wednesday 24th of October 2012 12:32:19 AM
im creating a quiz system that allows visitors to create their own quizzes on their own webspace and use my site including some $_GET variables that incldue the given path where they saved the quiz info, and then it generates the multipage quiz from the array of provided questions. the only...Show More

PHP : Order by, PHP and MySQL   (Views   208)

Posted On: Wednesday 24th of October 2012 12:32:17 AM
When I try order by, it prints in assending order, how can I do this to print in deseding orderShow More

PHP : string striping question   (Views   203)

Posted On: Wednesday 24th of October 2012 12:32:15 AM
hi i have a bunch of values like$a = 1/2/4$b = 12/12/4$c = 12/4/4$d = 4/12/4what i would like to do is to get rid of the "/" and store each number in between them. so for the first one$var1 = 1;$var2 = 2;$var3 = 4;and for number 2Show More

PHP : Getting double line breaks when send with mail...   (Views   238)

Posted On: Wednesday 24th of October 2012 12:32:13 AM
I've been searching on and off for a few weeks to get rid of double line breaks (\n\n) when I send e-mail via the mail command (in text format, not HTML)For example, if I send a $message looking like :line1line2line4... I get in the e-mail :Show More

PHP : disapering zeros and forms   (Views   218)

Posted On: Wednesday 24th of October 2012 12:30:24 AM
Hi I'm new at this so pray forgive me if I break netiquete in some way...I have part of a form that collects an isbn (book ID number). These frequesntly start with zero. There are 4 fields to collect the part of the isbn to avoid user error.$form.="Show More

PHP : Include security   (Views   227)

Posted On: Wednesday 24th of October 2012 12:30:22 AM
I have a sensitive PHP file on my server and I want stop anyone being able to do a PHP include to the file and grab the variables etc. How can I stop thatShow More

PHP : Accessing multiple databases   (Views   205)

Posted On: Wednesday 24th of October 2012 12:30:20 AM
Hi all, in a bit of a pickle, hope you can help.Assume i have 1 database with a users and a comments table, the, followign sql is fine,SELECT u.name, c.comment FROM user u, comment c WHERE c.userid = u.userid;Now, how could this be achived if the user table...Show More

PHP : Looking for PHP4 ClipText Library   (Views   218)

Posted On: Wednesday 24th of October 2012 12:30:18 AM
I have been all over the net looking for a quick language reference (not the manual) or preferably a cliptext library for PHP that can be plugged into an editor. Does this exist Can anyone point me in the right directionShow More