t: 0131 553 3935 | m:07816 996 930 | [EMAIL PROTECTED] |
http://www:blue-fly.co.uk
I cannot delete a couple of folders on the server as the have the owner
'nobody'. All I am doing is making the folders with
mkdir($customer_id, 0755);
Now is there a way to set the ownership when I created th
This work localy but not on my remote host. How can I debug it?
if(!(is_dir('images/$customer_id')))
{
mkdir("images/$customer_id", 0700);
}
The file is in the main public_html folder and there is a images folder.
What should the permissions be?
Thanks
--
PHP General Mailing List (http://ww
Hi,
I want to create random customer ids. I have an auto incremented coulumn but
I would rather have a 6-8 digit/letter id randomly generated that can be
used as a unique identifier across 3 tables. Does anyone have a algorithm to
generate such a string and can you give the odds against 2 dupl
I want to force users to insert landscape rather portrait images. I don't
want to be too pedantic about it but they do need to have an approximate 4x3
aspect ratio.
This is my code so far.
$max_height = "500"; // This is in pixels
$max_width = "500"; // This is in pixels
list($width, $height,
if I have an array of 3 images
1.
2.
3.
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have an array of files to be uploaded
2.
3.
I can get the name
foreach ($_FILES['userfile']['name'] as $value) {
echo $value
}
but I want the index position, any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have an array of facilities, how do I define them all in one go so I do
not get the undefined index error?
input name="facilities[5] " type="checkbox" id="facilities[5] "
value="Credit Cards Accepted" >
Credit Cards Accepted
>
Towels
>
Luggage Storage
>
-
May be a stupid question but can I link to images with doscument root
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
echo "";
I am certain the path is correct,
If not what are my alternatives?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
my .htacces file only contains 2 lines
allowoverride all
php_flag display_errors on
I get a 500 server error, any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On my localhost this works fine
$result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title,
id, display FROM NEWS");
while ($row = mysql_fetch_assoc($result)) {
but on my remote i get a mysql_fetch_assoc(): supplied argument is not a
valid MySQL result resource
Can someone expal
Hi,
I have a checkbox array (about 20 lines)
input name=\"box\" type=\"checkbox\" value=\"$id\">
input name=\"box\" type=\"checkbox\" value=\"$id\">
input name=\"box\" type=\"checkbox\" value=\"$id\">
I do some client side checking with javascript however the javascript array
name=\"box\"
does
Hi,
I am using tinymce to save news articles with very basic html styling in a
database. This works well upto a point but when I get over a certain number
of characters and then the 'you have an error in your SQL syntax' error. I
am saving in as a LONGBLOB so it should not be a data type misma
How can I do the equivalent of this in windows or is there a tool I can
use?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to define a folder like this
define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT']."/mysite/property_images");
I am working on a windows machine running apache and this does not work. It
doesn't seem to like the forward slashes.
the document_root gives C:/Apache/htdocs/
Does anyone know a way t
14 matches
Mail list logo