[PHP] Incoming mail to PHP as Apache module

2001-11-03 Thread Ross
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

[PHP] 5.2 installer not working and iis looking for password

2007-01-10 Thread Ross
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

[PHP] reg globals

2007-01-11 Thread Ross
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.

[PHP] apache and include

2007-01-12 Thread Ross
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

[PHP] better protection?

2007-01-17 Thread Ross
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

[PHP] protection 2

2007-01-17 Thread Ross
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

[PHP] phpmyadmin & mysql extensions

2007-01-18 Thread Ross
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

[PHP] still trying to setup phpmyadin

2007-01-18 Thread Ross
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

[PHP] Re: still trying to setup phpmyadin

2007-01-18 Thread Ross
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

[PHP] ouput the contents of a folder for download

2007-01-22 Thread Ross
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:

[PHP] no database selected

2007-01-23 Thread Ross
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')

[PHP] php installation problem

2007-01-23 Thread Ross
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

[PHP] graphical form validation

2007-02-08 Thread Ross
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

[PHP] Re: insert html into php variable

2007-02-12 Thread Ross
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

[PHP] easynav breaks my page

2007-02-16 Thread Ross
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

[PHP] registered globals on localhost (apache)

2007-02-22 Thread Ross
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

[PHP] rich html emailer

2007-03-02 Thread Ross
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

[PHP] template engine/template class

2007-03-05 Thread Ross
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

[PHP] create and save file to folder

2007-03-07 Thread Ross
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:

[PHP] server error or script error

2007-03-08 Thread Ross
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.

[PHP] why did it stop working?

2007-03-08 Thread Ross
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

Re: [PHP] server error or script error

2007-03-08 Thread Ross
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

[PHP] a php stats package

2007-03-16 Thread Ross
Can someone recommend one please? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php search engine

2007-03-19 Thread Ross
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

[PHP] read only texbox to html with php

2007-03-21 Thread Ross
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.

[PHP] getting a variable from a file

2007-03-23 Thread Ross
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 $

[PHP] Re: getting a variable from a file

2007-03-23 Thread Ross
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

[PHP] syntax question

2007-03-26 Thread Ross
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

[PHP] Re: syntax question

2007-03-26 Thread Ross
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

[PHP] combine empty and trim

2007-03-26 Thread Ross
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

[PHP] mixture of GET and POST

2007-04-03 Thread Ross
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

[PHP] storing functions

2007-04-04 Thread Ross
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. -

[PHP] uk date to mysql date and back again

2007-04-10 Thread Ross
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:/

[PHP] Re: uk date to mysql date and back again

2007-04-10 Thread Ross
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

[PHP] downloading an image

2007-04-11 Thread Ross
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

[PHP] Re: downloading an image

2007-04-11 Thread Ross
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&#

[PHP] secure login

2007-04-15 Thread Ross
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

[PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Ross
any reason why this should be? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Ross
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

[PHP] redirect with header still not working

2007-04-17 Thread Ross
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.

Re: [PHP] redirect with header still not working

2007-04-17 Thread Ross
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

[PHP] running linux

2007-04-20 Thread Ross
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

[PHP] Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll'

2005-02-13 Thread ross
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

[PHP] Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll'

2005-02-13 Thread ross
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

[PHP] calling php function when submit button is pressed

2005-02-14 Thread ross
Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fancy Form processing Ideas

2005-02-14 Thread ross
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

[PHP] retrieve single field from database without while loop

2005-02-16 Thread ross
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

[PHP] showing the decimal places

2005-03-16 Thread ross
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

[PHP] trying to load mysql extensions

2005-04-13 Thread Ross
server is running ok. Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] phpmyadmin blank screen.

2005-04-13 Thread Ross
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

[PHP] stripping of the last character

2005-04-18 Thread Ross
thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] putting the results of a query inro an array

2005-04-18 Thread Ross
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

[PHP] Getting Credit card details

2005-04-26 Thread Ross
fully accepted. Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail problem

2005-04-29 Thread Ross
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

[PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
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

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
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

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
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

[PHP] just going with LIKE

2005-05-02 Thread Ross
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

[PHP] insert not working

2005-05-05 Thread Ross
$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

[PHP] is this the correct syntax

2005-05-05 Thread Ross
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

[PHP] re: insert not working

2005-05-05 Thread Ross
Just a type error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] browser detect and redirect

2005-05-08 Thread Ross
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

[PHP] setting up browscap.ini with .htaccess

2005-05-09 Thread Ross
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

[PHP] using header ('Location:) to pass varaiables

2005-05-10 Thread Ross
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

[PHP] carriage returns in php mailer

2005-05-12 Thread Ross
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

[PHP] Sending a string with $_POST/$_GET

2005-05-17 Thread Ross
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

[PHP] setting browscap.ini

2005-05-19 Thread Ross
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

Re: [PHP] should I be looking to eliminate all notices?

2007-04-21 Thread Ross
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

[PHP] how do I pass a variable with header?

2007-04-21 Thread Ross
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

[PHP] using ImageTTFText in a page

2007-04-23 Thread Ross
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,

[PHP] transparent gifs with matte?

2007-04-24 Thread Ross
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

Re: [PHP] cannot make directory at remote host

2007-06-07 Thread ross
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

[PHP] directories - again

2007-06-07 Thread Ross
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.

[PHP] Re: directories - again

2007-06-07 Thread Ross
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

[PHP] file permissions

2007-06-07 Thread Ross
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

[PHP] taking a single payment online

2007-06-08 Thread Ross
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.

[PHP] any security problems with this?

2007-06-12 Thread Ross
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

[PHP] need to collect credit card details

2007-06-12 Thread Ross
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

[PHP] sending mail from localhost

2007-06-13 Thread Ross
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

[PHP] Re: need to collect credit card details

2007-06-13 Thread Ross
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

[PHP] GD Library and outputing image

2007-06-13 Thread Ross
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

[PHP] gnererating geocodes from a postcode

2007-06-14 Thread Ross
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

Re: [PHP] passing a url to a page

2007-06-15 Thread ross
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

[PHP] passing a url to a page

2007-06-15 Thread 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

Re: [PHP] passing a url to a page

2007-06-15 Thread ross
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

[PHP] outputing image part 2

2007-06-15 Thread Ross
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

[PHP] Re: outputing image part 2

2007-06-15 Thread Ross
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

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Ross
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

[PHP] resize and upload image problem

2007-06-16 Thread Ross
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

[PHP] apache file paths

2007-06-19 Thread Ross
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

[PHP] looking for a good gateway - php

2007-07-03 Thread Ross
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

[PHP] php security books

2007-07-04 Thread Ross
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

[PHP] need a form for connecting to paypal payment pro.

2007-07-12 Thread Ross
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.

[PHP] problem with array

2007-07-15 Thread Ross
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

[PHP] html emails and plain text dectection

2007-07-16 Thread Ross
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

[PHP] problem with pcode function

2007-07-17 Thread Ross
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

[PHP] simplexml_load_string();

2007-07-18 Thread Ross
$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

[PHP] link problem

2006-07-31 Thread Ross
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

[PHP] saving and retrieving an array from a database

2006-08-07 Thread Ross
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

Re: [PHP] saving and retrieving an array from a database

2006-08-07 Thread ross
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   2   3   4   5   >