Hi,
I have the need to make a folder writeable to all (Chmod 777) as the user of my PHP/MySQLapplication needs to be able to upload pictures.
I have read that I need to make the folder w...
I am looking for php code that will enable me to hide/show a text box based on the users previous drop down list response.
(1) I want the "additional" text box to ONLY display if the use...
I have a text file with UTF-8 encoded, written and saved by Notepad. It contains both English and Foreign characters. When saved, the file contains 4 byte header that shows UTF-8 file.
When...
my companies working week runs from saturday to saturday. i want to get the date for the end of the week
i pass the current week number and the current year - see my code below.
the cod...
How do I get the text node associated with the element ReturnObject? In the attached snippet, I need the following string: 8b020dc7-7e3d-46d7-9f95-9f11d06dc475
All the examples I've seen se...
I have a text area, but when user type stuff and then hit line break, and write stuff, when I get the data from $_POST and then store in db, and then retrieve from db and print on web page, th...
i am new to xml.i want to know how we can create an xml file in php
Hi,
I am developing a CMS for my friend and he needs to be able to upload videos. I have found a simple script (smashscripts.blogspot.com/2007/05/php-upload-and-convert-avi-wmv-mov-and.htm...
I'm trying to complete the following:
1. Provide an upload script for 1 single file which will accept only .mp3 files
2. Once the form is submitted i would ideally like to display a progre...
Hello,
I would like to validate that a URL is valid. It does NOT have to be iron-clad but it should prevent big mistakes.
For example, these SHOULD validate:
example.com
d...
I use this PHP script for download file, to Hide direct link of file, or for authenticate before Download.
But this code is not allow Resume Download from client (for example , client uses so...
Im trying to create a simple PHP page to connect to LDAP.
Active Directory is installed on the server.
What im want to do is:
1) engineer logs into our machine on the network via AD.
...
Hi,
Im using this:
$allowed = "b|i|u|a";
$str = preg_replace ( "/<((?!\/?($allowed)\b)[^>]*>)/xis", "", $str );
$str = preg_replace ( "/<($allowed).*?>/i", "<\\1>", $str );
Howev...
How do I turn register globals off?
I need to convert a CamelCase (or ProperCase) string into a underscored lower case string.
Bascially, I need to take something like this:
test_ThisIsATest;
and make a new string come...
Hi! I'm looking for a method to create a tree structure or hierarchy from an array like the one below. Is it possible?
Hi,
I have developed a small web service that takes two arguments and then it performs an XSLT transformation over XML and should return the result to a client which will just display it fo...
Hi all,
I have a PHP form that submits data to a MySQL database. Users can search for records or add and delete records from their browsers as it is running in PHP. However MySQL date forma...
Hi there,
I have an XHTML form with inputs that are both array-based and not (eg <input name="cars[]"> and <input name="lastName">). I would like to iterate through all the $_POST variables a...
Hi,
I have been having trouble with emails not being sent and have tracked down what I think is the reason for the error in the mail.log:
2008-03-17 15:34:33 u40334275 4AgFkz-1JbGQ52Uwe-00...
Barthax worked long and hard on this other question, as did neester -- /PHP/Q_21455569.html
And I think the results are important enough for them to summarize here, to help others, as this ...
Hi,
I've using PHP to take a form submission, turn it into a PDF and email the PDF as an attachment. I'm running into problems with large amounts of text running into other columns, etc.
...
I have completed a PHP web project which involves regular visitors and an administrator who controls the show.
One of the things requested for the administrator only (i.e behind a password)...
I'm looking for a way in PHP to delete all files in a folder that are older than X days.
I have a temp folder and would like to run this script each time a particular PHP page is called so ...
Hello,
I need some help with a script, I've managed to do what I need using GD library but it's been producing results I'm not happy with, and have had ImageMagick recommended to me as an ...