aildir type mailbox but its back to front, I can only call PHP before
the message is written to the file because Procmail stops once it is
'delivered'.
I'd appreciate any suggestions or ideas.
Thanks
Ross
__
Do You Yahoo!?
Find a job, p
I am trying to install 5.2 via the installer but the when I try and open a
page IIS asks for a password and the page is not found.
Any ideas?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In a very old site of mine and not knowing any better I never used $_POST.
The server it has on has now decided to turn change it;s config...fair
enough but I am having problems with an attahcment in form. I have change
all the other varible to $_POST but the attachment is causing me trouble.
I recently installed php5 with apache (replacing php4and IIS).
I am moving all my folders to the htdocs folder and but when I run a page
the include does not work
Nothing had change the directory stucture is the same. there are no warnings
or errors jsut a big blank space where the menu shou
If I protect folders via cpanel (HTTP auth) is this more secure than using
php code?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks Colin.
Think I will do both. I can timeout the session with PHP.
Does adding mysql_real_escape_string make this secure to injection or should
I be doing something else?
if ($_POST['submitted']){
$username = mysql_real_escape_string( $_POST['username'] );
$pass = mysql_real_escape_string
did the following...
-installed apache
-installed php (C:\PHP) with the windows installer
-moved my websites to the htdocs folder..so far so good can access pages
- downlaoded php my admin to htdocs
-downloaded the FULL php version
-copied the extensions folder (C:\PHP\ext)
-changd the line in ph
se cold be the problem? Mysql runs fine I can connect with
phpmyadmin.
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cracked it. think the libmysql was an old one!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to output the file contents of a folder to a php page and provide a
link for them to be downloaded.
This is what I have so far but I cannot get a filename or get it to iterate
through all the files in a folder.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I am using this to connect remotely but I get a no database selected error.
The table is contacts but there is not a parameter for database name
according to the documentation. How do I delect my database when conencting
this way?
$link = mysql_connect('.org:3306', 'my_username', 'mypass')
Just installed apache and am looking at an error
Warning: session_start() [function.session-start]:
open(C:\DOCUME~1\Ross\LOCALS~1\Temp\php\upload\sess_ob822kp9sqlndjvu089r845e50,
O_RDWR) failed: No such file or directory (2) in
C:\Apache\Apache2\htdocs\ssn\editor.php on line 4
Should I set
Does anyone know of a form validation class available that gives
(i) feedback in a graphical way like this (the ticks and crosses)
http://forums.oscommerce.com/index.php?act=Reg&coppa_user=0&termsread=1&coppa_pass=1
(ii) Is dynamic..for example I have a checkbox
do you own a car?. If I tick 'no
Nice work Rob!
You were totally correct as I needed to write the header, mail body and
footer before I dumped the whole thing using OB contents.
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tags or anything?
Here is my navigation that is inserted.
one
two
three
thanks,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have my RG's switched off in my local .ini but I am tinkering about with
oscommerce.
php_value register_globals on
I tried to change add this line to the .htaccess file in the catalog folder
but still gives the error
Server Requirement Error: register_globals is disabled in your PHP
config
Hi,
I have created a basic HTML emailer with PHP where the body is created and
text is inserted via a text area.
Now I would like to expand this so the client can put in live URL and mailto
links. I can use htmlentities() to do this but I would also like a button
that allow them to enter it t
I am looking for a template class that will take a basic 2 column template I
have made and let the user
-change the page title
-add an header image
- enter the main body text
-save the file to a folder of their choice
Is there already a class out there that does this or similar. Smarty is far
t
Hi,
I am trying to create a file with php. I want to enter the value of a string
into it and then browse (if possible) and save to a specified folder with
the filename/extension (.php/.txt) entered in the dialog box.
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I use this script but is had sudenly stop working. I think it is a config
change on the remote server. The porblem is the file either doesn't open or
downloads as download.php
Can anyone suggest a way to improve this script or debug to fins out if it
is a script error or server error.
R.
Can someone explain to me why this used to work but then stopped
header("Content-length: $size");
header("Content-type: $type");
header("Content-Disposition: attachment; filename=$name");
and this now works
header("Content-length: ".$size);
header("Content-type: ".$type);
header('Content-Dispos
guess the problem is here :
$query = "SELECT * FROM mypdfs WHERE id =$id";
Change it to :
$query = "SELECT * FROM mypdfs WHERE id =".$id;
-Message d'origine-
De : Ross [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 8 mars 2007 09:39
À : php-general@lists.php.net
Objet : [PHP
Can someone recommend one please?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am looking for a php search engine that provides a suggested words
(soundex?) when items are misspelt, the way google does.
I have used http://www.site-search-pro.com/ i n the past which is great but
as far as I know this feature is not included.
Ross
--
PHP General Mailing List
I have a readonly textbox that gets mailed as a newsletter. The text is a
standard covering letter. The problem is when I try and convert it to html
it doesn't work It is inserted into a variable via a form textarea
$mail_text.
"available on the web site http://www.myurl.org";>http://www.
I am using a script to generate a sitemap. It displays the page names
(mypage.php) but I want it to display the titles. The page heads and
are generated dynamically so the line below does not work
if(preg_match("'(.+)'i", $f, $matches)){
However all the paged titles are stored in a variable $
In answer to my own question
if(preg_match("'pageTitle=\"(.+)\"'i", $f, $matches)){
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can I put post values directly into insert statements?
$query = "INSERT INTO categories (category_name) VALUES
('$_POST['cat_name'])";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks.
""Ross"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Can I put post values directly into insert statements?
>
> $query = "INSERT INTO categories (category_name) VALUES
> ('$_POST['cat_name'])";
--
PHP G
I want to trim any whitepace and check if it is empty in the same line this
is not working.
if (empty(trim($_POST['_createcategory']))) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have 3 'action' buttons and I am trying to send the $id from the radio
button and the action to the same page so I can either, Add Edit or Remove
the property from the database.
Any ideas how I can get this to work? I can either POST the id's or GET the
action but I can't seem to return both
I am wondering how you store and recall your functions.
I have an external file - functions.php, this includes all the functions for
the site. It is included in the pages head and then I just use the functions
when I need them.
Does anyone have a better way to store/recall functions?
R.
-
I have made a very messy function for this that splits the string up does
all kinds of stuff but I was wondering if anyone has a 1 or 2 line function
for gettting a uk date
dd/mm/ (it is a string)to mysql version -MM-DD
and then back again.
ta,
R.
--
PHP General Mailing List (http:/
Thanks all.
Was not aware of the array_reverse() function.
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tthe image does not display although it exists in the table 'images'
This calls the download script
this is the download script
id = $_GET['id'];
$query = "SELECT name, type, size, content FROM images WHERE id ='$id'";
$result = mysql_query($query) or die(mysql_error());
list($name, $ty
yes it is image/jpeg
"Roberto Mansfield" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Verify that your $type is a correct mime type.
>
>
> Ross wrote:
>> tthe image does not display although it exists in the table 'images
I am creating a single user secure login based on this:
http://www.phpnoise.com/tutorials/26/1
Can anyone see any potential security issues with this method? Where should
I store the password/username can I just have it located in the pagehead?
R.
--
PHP General Mailing List (http://www.p
any reason why this should be?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok I have a page that calls my my functions, basically a 6 step signup. All
the steps look like this
function step_one() {
$_SESSION['property_id'] =$_POST['property_id'];
$property_id = $_POST['property_id'];
$postcode= $_POST['postcode'];
$query = "INSERT INTO properties (property_id, postcode
Right,
Have tried the full url for the header and it still doesn't work. I may have
to resort to...javacript redirects unless someone can suggest a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any experience of them.
Thanks all I manged to fix it.
The headers were already sent by a validation class I was using and needed a
bit of output buffering to get it working.
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have an old laptop and would like to either run linux on it or have it
running window and emulate a lixux environment. Is this possible?
What is the easiest way to get linux to run on a windows machine? Is it any
easier to do this on a mac?
Ross
--
PHP General Mailing List (http
I have solved this problem before but cannot remember how.
The php.ini is set up any ideas??
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have solved this problem before but cannot remember how.
The php.ini is set up any ideas??
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am looking for interesting approaches to form submissions and error
checking in the forms.
Thanks,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
variable so I can use it on
my php page.
Thanks in advance,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
when I define a number as
$number = 2.00
then echo it the number shows as 2. How can I get the two zeros to show?
This is not in any of my books but a fairly easy solution I'll bet!
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
server is running ok.
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for the replies to my php_mssql problem.
I have a problem that when I try and run phpmyadmin locally the screen is
just blank. Any ideas?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how can I put the results from the following query into two arrays?
The only fields are 'name' and 'email'
$query = "SELECT * FROM contacts";
$result= mysql_query($query);
$number= mysql_num_rows ($result);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
fully accepted.
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I get the following mail problem when trying to send from localhost. Any
ideas?
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to
relay for [EMAIL PROTECTED] in c:\Inetpub\wwwroot\ssn\adv_mail.php on line
179
R.
--
PHP General Mailing List (http://www.php.net/)
To
Is it possible to use eregi instead of LIKE to filter mysql queries?
If so can someone do a quick example?
Many thanks,
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you understood John
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jay Blanchard wrote:
>
>> Why you'd want to do it this way beats me, the overhead is a lot bigger
>> than doing it in the query.
>
>
> I _think_ he was asking if he could use some sort of pattern matc
you understood John
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jay Blanchard wrote:
>
>> Why you'd want to do it this way beats me, the overhead is a lot bigger
>> than doing it in the query.
>
>
> I _think_ he was asking if he could use some sort of pattern match
Had a look at it and much easier to use LIKE with wildcards. Was unsure
whether the query was case sensitive that is why I asked.
As it turns out it is not.
R
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation,
street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES
('$title', '$fname', '$sname', '$job_title', '$organisation', '$street',
'$postcode', '$city', '$telephone', '$mobile', '$fax', '$email', '$we
Am trying to do an update of a record...
Is this the correct syntax..
$query= "UPDATE $table_name SET fname='$fname', sname='$sname' WHERE id=
$id";
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just a type error
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to redirect anyone not using ie 4+ as there browser.
Is this possible with php?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I would like to use browscap.ini, I believe you can override the php.ini
file values with a php_value line in a .htaccess file.
Is this possible? Is so how?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is it possible to send variables using header() ?
I have tried variations on the theme
header ('Location: email_confirm.php?email=$email);
but nothing seems to work.
Ta,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
http://scottishsocialnetworks.org/mailer.phps
I have a php mailer that takes in some text from a text box and puts in in
an email. The problem is the body text is assigned to a variable to be put
in the email but it does not pick up the returns.
How do i do this??
R.
--
PHP General
I want to write a string to a variable and use $_POST or $_GET to retrieve
it on another page.
I keep gettting an undefined index errror. Can someone show me how this is
done?
Do I have to use session_start() ?
Have checked the documentation, can't find a really basic example.
R.
--
PHP Ge
Hi,
My isp won't give me access to the php.ini file and they insist you can set
browscap.ini up using the .htaccess file.
I don't reeally believe this is possible. any ideas?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt;
> Of course there might be some notices left, which you decide not to care
> about, in production notices should be turned off then
>
> greets
> Zoltán Németh
>
> 2007. 04. 21, szombat keltezéssel 10.01-kor Ross ezt írta:
>> A quick one this morning.
>>
>&g
header('Location: edit_property.php?property_id=.'$property_id'.');
t: 0131 553 3935 | m:07816 996 930 | [EMAIL PROTECTED] |
http://www:blue-fly.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This script work on it's own but fails when emeded in another php file. All
I want to do is create a function and call it passing a text parameter. Also
is it possbile to output the image to a file insert the url into a
tag?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi,
I am looking to create a transparent text gif that allows me to set a colour
for the matte. I have it working as a PNG but this is no good in IE.
Does anyone have an exampe of this?
This is my code so far.
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
Hi,
I can make the files now after setting the permission to my images folder
but I cannot delete the folder or images in it. I have tried unlink and
rmdir with no success. Even with filezilla cannot delete it
The problem seems to be the images that are set to chmod of 600 and cannot
be cha
Hi,
I can make the files now after setting the permission to my images folder
but I cannot delete the folder or images in it. I have tried unlink and
rmdir with no success. Even with filezilla cannot delete it
The problem seems to be the images that are set to chmod of 600 and cannot
be changed.
re
>
> I hope this is what you want:
>
>
> --
> itoctopus - http://www.itoctopus.com
> ""Ross"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hi,
>>
>> I can make the files now after setting the permission to my images folder
&g
x27;images/'.$customer_id, 'ross');
with this I get a
Warning: chown() [function.chown]: Operation not permitted
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have a clinet with a small hotel. I want to send a link to customers
requesting cash similar to paypal. If there total booking is £320 I want to
send them a link to pay £32 online. Is there an alternative non-paypal way
to do this? Other gateways with good PHP based API.
thanks,
R.
I have a page of functions that I include in my page head. In this I have a
function to connect. I can then just call this on each page when i need it.
Does doing it this way cause any potential security risks?
function connect() {
$host="localhost";
$user="x";
$password="xx";
$dbname="x
I have a paypal account setup and am going to upgrade to the virtual
terminal, however the client would like to collect the credit card details
as security (he is a hotelier)
Is it possible to securely send these details via the internet or should I
suggest he just gets them to phone them throu
I usually use a phpmailer class but am creating something from scratch.
when I use the most basic example I can find:
$to = '[EMAIL PROTECTED]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [EMAIL PROTECTED]' . "\r\n" .
'Reply-To: [EMAIL PROTECTED]' . "\r\n" .
'X-M
I wasn't keen to do this anyway. A deposit it is.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Never really used the GD much before very straightforward but how do I
output the image on a page. This is fine on a php page on its own but what
about one where the headers are already sent?
I take it I can do something like this . Anyone got a better method?
$image = imagecreatefromjpeg
I have done this before with a paid service in the uk
www.postcodeanywhere.co.uk but is there a free service where I can
automatically genereate this from the postcode? At present I am using
multimap to get the 'lat' and 'lon' information I want. This is too
slowww.
Ta,
R.
--
P
Nothing happens no errors or anything I tried to debug using
include('display_image.php?img_url=$image_url') I got a parse error.
I would rather use buffers if this is possible?
- Original Message -
From: "Zoltán Németh" <[EMAIL PROTECTED]>
To: "Ross
I have a display_image.php page
I want to output this as an image but cannot get it working. I need to pass
the image url something like this I thought would work
echo "";
any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have manually put in the url my display_image.php page to debug as
sugested and all I get is the URL of the display_image.php page output on
the screen.
This is what I see
http://xxx.co.uk/common/display_image.php
this is the display_image.php file:
$img_url="http://www.xxx
I have manually put in the url my display_image.php page to debug as
sugested and all I get is the URL of the display_image.php page output on
the screen.
This is what I see
http://xxx.co.uk/common/display_image.php
this is the display_image.php file:
$img_url="http://www.x
Thanks Stut we are getting somewhere.
Removing the header gives the full binary output of the file in IE and FF. I
also removes the echos and have the resized image showing in the browser. So
far so good. I know it works.
Now back to sending the URL.
I have this
$img_url="http://www.xxx
I am taking your advice.
I am going to rezize any image greater than 400px wide prior to upload. I
have to combine my upload script
for ($i=0; $i <$total; $i++) {
$fileName = $_FILES['userfile']['name'][$i];
$tmpName = $_FILES['userfile']['tmp_name'][$i];
$fileSize = $_FILES['userfile']['size
Here is my script. The file is not uploading. In my orignal script it is
$_FILES['userfile']['tmp_name'][$i]; that gets uploaded as I have an array
of images and it loops through. It must be something to do with this line
$tmpName = imagecopyresampled($image_resized, $image, 0, 0, 0, 0,
$new_wi
how do apache filepaths match the directories?
This is my document root acording to $_SERVER
/usr/local/apache/htdocs/
but I also sometimes see this
/home/mysitename/public_html/
public_html is where I put my files via ftp so can someone explain where the
'home' folder is in relation to the
Hi All,
Worldpay is far too expensive.I am looking for a good gateway that.
-has a good php/linux sdk
-easy to integrate
-does not open new windows with the gateways logo all over the place but is
contained on my site
- has good rates
- does not take ages to get the cash from your account to yo
y other that will give me a
good solid understanding of PHP security?
Thanks,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I need a secure form. I have one here
http://www.edinburghnights.co.uk/pay/php/curl_https.html but it has no
algorithm check on the CC number. Also I need to make the form secure. Can
someone point me to an example or tutorial.
Many thanks,
R.
--
PHP General Mailing List (http://www.
I am using postcode anywhere for a 'where's my nearest' function.
All the geographical info is contained in an array, which when dumped looks
like this
var_dump ($result);
array(1) { [0]=> array(13) { ["origin_postcode"]=> string(7) "EH2 2BE"
["destination_postcode"]=> string(6) "EH2 2BE" ["di
I am using the code to send an html email (phpmailer class) now I need to
somehow determine if the recipient uses text only email and change email to
plain. Is this possible?
include( 'html_emails/html2.php' );
$mail_body = ob_get_contents();
ob_end_clean();
include("../mailer/clas
I have this postcode selector working on my localhost but remotely it gives
a parse error. It should only call the function when the postcode is
submitted. Any ideas?
The error is:
Parse error: parse error, unexpected T_NEW in
/homepages/3/d154908384/htdocs/legalsuk/consultants/nearest.php on
$data = simplexml_load_string(file_get_contents($url));
Is there a php4 version of this or does this only work in 5? How can I get
around it?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have lots of folders and files some are in the main public_html folder and
some are in their own foder. I need to find a way to make all the links
relative to the public_html folder
For example if I am in the 'gallery' folder, the main index file is located
at ../index, however if I om in the
Hi,
I have an array of values. I want to save them with php to a single field in
my database and then retrieve them to an array.
What is the simplest way to achive this?
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok this seem to work but how do I bring it back? This is what I have so far.
- Original Message -
From: "Peter Lauri" <[EMAIL PROTECTED]>
To: "'Ross'" <[EMAIL PROTECTED]>;
Sent: Monday, August 07, 2006 8:23 AM
Subject: RE: [PHP] saving and r
1 - 100 of 471 matches
Mail list logo