Re: [PHP] A quick question - Help Please !

2002-08-19 Thread Adrian Murphy
to do it with javascript u could post the form to another local page with a form with hidden fields - send the mail and use onload="" to post the second form. would be a messy way to do it but would work. adrian murphy - Original Message - From: "Justin French" &l

Re: [PHP] why is html code written like this?

2002-09-02 Thread Adrian Murphy
thats xhtml - it's xml comliant html. tags must be closed so a tag like which didn't have a closing tag is written so,for example in php the nl2br() function now produces instead of the old - Original Message - From: "Victor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday,

Re: Fw: [PHP] question about Location

2002-09-06 Thread adrian murphy
make sure there is no whitespace before first To: "PHP" <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 11:34 AM Subject: Re: Fw: [PHP] question about Location > Put your code that takes care of the post before the line 2, output the > header and exit. Like this > if($_POST['submit'])

Re: [PHP] Source code

2002-09-06 Thread adrian murphy
add nl2br() to make it look pretty e.g - Original Message - From: "Roman Duriancik" <[EMAIL PROTECTED]> To: "PHP-General" <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 11:53 AM Subject: [PHP] Source code > How I show in IE source code of html page with php ? > > > roman >

[PHP] rewrite condition question

2002-10-08 Thread adrian murphy
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.testsite\.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^[^.]+\.testsite\.com$ will this match http://www.user.testsite.comand http://user.testsite.com sorry.i have no way to test this myself.i'm trying to help out my serv

[PHP] lynx and crontab

2002-10-15 Thread adrian murphy
my isp lets me control crontab so i've been trying to run a php script every 30 mins. the command is like this: lynx - dump http://www.mysite.com/test.php which gives the error lynx: Start file could not be found or is not text/html or text/plain what do i telll my isp to do to get lynx to sup

[PHP] about file permissions + cuteftp

2002-06-23 Thread Adrian Murphy
hi, how come when i make a dir thus mkdir($basedir,0777); cute can't then chmod or delete said dir. also vice versa : when i create a dir with cute with 777 access php can't do anything with it. it's very annoying.

[PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
whats wrong with this. it's getting stuck somewhere function urls_clickable($string) { for($n=0; $n < strlen($string); $n++) { if(strtolower($string[$n]) == 'h') { if(!strcmp("http://";, strtolower($string[$n]) . strtolower($string[$n+1]) . strtolower($string[$n+2]) . strtolower($string[$

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
relax friend.i was just asking - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Adrian Murphy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 2:08 PM Subject: Re: [PHP] whats wrong with this functi

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
n > On Wednesday, July 3, 2002, 1:47:05 PM, "Adrian Murphy" wrote: > > whats wrong with this. > > it's getting stuck somewhere > > "Somewhere" isn't very helpful. When asking for help be sure to include as much > information as possilble.

[PHP] mod_rewrite problem

2002-07-18 Thread adrian murphy
Hi, the following code redirects www.usersite.mysite.biz to www.mysite.biz/users/sites/usersite the problem is when the 'www' is left out it doesn't work. could someone help me to fix this? many thanks RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.[^.]+\.mysite\.biz$ R

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Adrian Murphy
as with most other things ... homesite is king.for a variety of reasons. it's customisable.i've added a whole load of custom buttons for php.u can choose your own colour coding.find/replace ,snippets. my favourite is it allows u to do server mappings so u can browse and edit pages with one program

[PHP] Non-existant folders??

2001-01-23 Thread Adrian Murphy
Hi, I'm creating a little app whereby people will be able to create a simple site for themselves (maybe 10 html pages). here's the problem: say their company is called "companyname" and my site is called "www.mysite.com" i'd like their site to be located at "http://www.mysite.com/companyname" Is

Re: [PHP] multple select forms... going to hit my head against a wall ..

2001-01-23 Thread Adrian Murphy
hey, since u are slecting multiple options you'll have to use an array here's how.i u need explanation,feel free to mail me: Chocolate/Chocolate Chip Peanut Brittle/Vanilla Cookie Batter Vanilla/Blueberry Caramel Swirl Other... "; }else{ ///count array $num = count($select); file:/

Re: [PHP] multple select forms... going to hit my head against a wall ..

2001-01-23 Thread Adrian Murphy
hey, in your form do this: } ?> then on the nex page use the same code i.e: $num = count($select); for($i = 0;$i <$num;$i++){ print $select[$i] . ""; } g'luck. - Original Message - From: <[EMAIL PROTECTED]> To: Adrian Murphy <[EMAIL PR

Re: [PHP] email a page as attachment

2001-02-21 Thread Adrian Murphy
In relation to this class: if i want to let users send an attachment,do i have to first upload the file to the server? - Original Message - From: Ankur Verma <[EMAIL PROTECTED]> To: kaab kaoutar <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 21

[PHP] java servlets

2001-02-22 Thread Adrian Murphy
Is there anything java servlets can do that php can't. is there any pressing need for me to learn servlet technology,other than to expand the old skillset. the difference between jsp and servlets is that with the former the code is embedded in the html.correct? -- PHP General Mailing List (ht

Re: [PHP] $submit does not work! strange !!!!!!!!

2001-02-23 Thread Adrian Murphy
try naming the submit button submitX and then see if $submitX is a var. - Original Message - From: kaab kaoutar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 23, 2001 9:58 AM Subject: [PHP] $submit does not work! strange > Hi guys! > > I'm using a form that

[PHP] Manuel Lemos's PHP POP3 class

2001-02-28 Thread Adrian Murphy
anyone using this class: whats a good way to extact the address of who sent the mail and stick it in a variable,in order to reply? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Newbie question about running JAVA classes on PHP scripts

2001-03-01 Thread Adrian Murphy
try this article: http://www.phpbuilder.com/columns/marknold20001221.php3 though i must admit i couldn't get it to work on windows. - Original Message - From: Federico Ragazzoni <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 9:24 AM Subject: [PHP] Newbie ques

Re: [PHP] PHP & mySQL primer?

2001-03-06 Thread Adrian Murphy
first i'd set up phpmyadmin. http://www.phpwizard.net/projects/phpMyAdmin/ it' great and really easy to use for you mysqldb. once you've done that.there's a useful tutorial on webmonkey for what u need. http://hotwired.lycos.com/webmonkey/00/05/index2a.html?tw=programming g'luck - Original M

Re: [PHP] Novice question - please help

2002-02-11 Thread Adrian Murphy
use str_replace() instead of ereg_replace() ...in the same way described - Original Message - From: "brendan conroy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 11, 2002 9:15 PM Subject: [PHP] Novice question - please help > Hi, >THANK YOU for reading this.I wo

[PHP] image generation issues

2002-02-11 Thread Adrian Murphy
Hi, I'm using the code in the manual to draw text on a png. but Its not working - ImageString() works but not ImageTTFText() I uploaded arial.ttf from windows to fonts/ folder Any Ideas: as a side note: PNG's - any real disadvantage to using them instead of gifs - not withstanding the compuserve

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
i get 'Could not read font in..' i set permissions to 777 on both file and folder - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Adrian Murphy'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, Feb

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
ve it from the server using: > unlink("some_name.png"); > hope this helps. > Hugh > > - Original Message - > From: "Martin Towell" <[EMAIL PROTECTED]> > To: "'Adrian Murphy'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
ruary 12, 2002 3:38 AM Subject: Re: [PHP] image generation issues > Hi > Some of MS fonts wont work, try downloading some freeware fonts. > Tom > > > At 01:24 PM 2/12/02, Adrian Murphy wrote: > >tried everything suggested and still get 'could not read font' oh we

[PHP] Php contract dublin ireland

2002-02-13 Thread Adrian Murphy
Hi dublin php people here's a 1 month contract i can't do. PHP /MySQL Vacancy Many thanks for registering your details with us during this last 12 months . I have outlined below details of an urgent PHP/MySQL contract which you may be interested in. If you feel the role is suitable please

[PHP] center text on image

2002-02-14 Thread Adrian Murphy
I was wondering if it's possible to centre text precisely on an image.I'm thinking I need to get the width of of the string in pixels?,take this away from imagesx(image) and devide by 2 to get x value. so has anyone achieved this?

Re: [PHP] Re: center text on image

2002-02-14 Thread Adrian Murphy
bruary 14, 2002 6:48 PM Subject: [PHP] Re: center text on image > > If you're using GD2, try looking at ImageTTFBox() and ImageFTBox(). They'll > give you the coordinates for a bounding box around the text. Use them in > relation to the image to center it properly. >

Re: [PHP] Change gif image with php

2002-02-16 Thread Adrian Murphy
button.php fot this to work you need to upload VERDANAB.TTF to a folder called 'fonts' and you call the image like this: to draw 'hello' on a button called 'mybutton.gif' stored in 'images' folder - Original Message - From: "Rodrigo Peres" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECT

[PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Adrian Murphy
Hi, I'd like to implement a system whereby people have a subdomain on my site like so: yourname.mysite.com I've been reading the apache docs that say you can do this via virtual hosts. Can I do it so 'yourname' can be anything - where all requests are sent to the same page where i can parse the ur

[PHP] load testing utility

2002-04-29 Thread Adrian Murphy
anyone have a recommendation for a good free/cheap load testing utility for php/mysql sites? thanx adrian

[PHP] search engine indexing and redirects

2002-05-17 Thread Adrian Murphy
Hi all, firstly: i know nowt about search engines/crawlers spiders really. i'm giving users fake sub-domains i.e www.username.mysite.com gets redirected to www.mysite.com/users/sites/username via mod_rewrite/wildcard dns so i'm wondering if search engines will have any trouble indexing those site

[PHP] apache redirect and request

2002-05-17 Thread Adrian Murphy
Hi, my isp has set up an internal redirect that resolves www.mysite.biz to www.mysite.com how can i check if the request was for the .biz version. thx

Re: [PHP] apache redirect and request

2002-05-17 Thread Adrian Murphy
gt; > Then parse the data as you need to to get to the root of the domain. > > -Jared > > -Original Message- > From: Adrian Murphy [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 9:20 AM > To: [EMAIL PROTECTED] > Subject: [PHP] apache redirect and

[PHP] looking for training course in london

2002-05-17 Thread Adrian Murphy
Hi, anyone know/done good php training courses in london thx adrian

Re: [PHP] what does this mean in plain english?

2002-05-17 Thread Adrian Murphy
The ? in this senario is called the ternary operator basically shorthand for an if/else statement e.g $theValue = ($theValue != "") ? "'" . $theValue . "'" :"NULL"; is the equivalent of if($theValue != "") { $theValue =$theValue ; } else{ $theValue ="NULL"; } - Original Message - From:

Re: [PHP] Smart URLs

2002-06-02 Thread Adrian Murphy
> whenever a URL like > mysite.com/thumbnails/funny/4 > i called the thumbnails.php is excuted, in which you I think if you call it thumbnails.php it won't work. however if the script is simply called thumbnails then it'll work.of course you then must make sure that 'thumbnails' is parsed as php.

Re: [PHP] if(isset($submit))

2002-02-28 Thread Adrian Murphy
just use an input type=hidden and call it submit,thats what i do - Original Message - From: "jtjohnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 5:32 AM Subject: Re: [PHP] if(isset($submit)) > So I can forget using type="image" :( > Wah, it's

[PHP] mod_rewrite

2002-03-01 Thread Adrian Murphy
As a side issue,there may be a lot of database updating involed in the site and i'm wondering should i use mysql(i am at the moment). any real world examples of the performance of mysql?I know it's great for selects. Thanx adrian murphy

[PHP] preload dynamic image problems

2002-03-06 Thread Adrian Murphy
This seems strange to me but i promise it's happening. I'm dynamically creating images for a page ,calling them so: I'm also preloading the mouseover versions. the problem is that the images are not being preloaded: javascript problem you say? the strange thing is that when i use the source of th

[PHP] what should be my wishlist?

2002-04-02 Thread Adrian Murphy
Hi I'm creaating my wishlist for my php build for my isp. I've got the usual stuff gd/ftp/xml etc and was wondering what else should i ask for e.g. i've never used pear but it might be useful? curl etc.

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Adrian Murphy
or use javascript or if you really wanted you could encrypt the variable pass it via the url and then decrypt it on the next page! to avoid a reload put no-cache in the header. - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday,

[PHP] using .htaccess to repoint

2002-04-10 Thread Adrian Murphy
Hi, my isp uses wildcard dns to point to the root. I want to put a .htaccess file in the root to repoint the wildcard requests to a sub-folder but leave the normal request alone. plese help or tell me an article i can read(i've looked but haven't found one specifically dealing with this.) adrian.

[PHP] what do i put in .htaccess to achieve this

2002-04-15 Thread Adrian Murphy
Hi, I use wildcard dns to point all requests at the root e.g whatever.mysite.com goes to root etc.however i'll like to redirect these requests to mysite.com/users/sites/whatever so what do i put in the .htacces file bearing in mind that i want requests just for mysite.com to be left alone. thanx

[PHP] what do i put in .htaccesss to achieve this

2002-04-15 Thread Adrian Murphy
Hi, I use wildcard dns to point all requests at the root e.g whatever.mysite.com goes to root etc.however i'll like to redirect these requests to mysite.com/users/sites/whatever so what do i put in the .htacces file bearing in mind that i want requests just for mysite.com to be left alone. thanx

Re: [PHP] Active-X

2001-03-28 Thread Adrian Murphy
allegedly this works,but i haven't tried it and can't remember where i got it but i used google,of course: http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0 ,0" id=ebusiness width=191 height=174>