[PHP] funny

2004-06-28 Thread adrian murphy
I hate to put a url in but there are some choice words in the extract.
You may have come accross it before but if you are a sys admin u should read this.
It's funny unless u know the guy i suppose.hell it's just funny!
Its a reply email after the guy was given some helpful advice on installing ImageMagick

http://imajes.info/archives/2003/03/30/user_support

a

Re: [PHP] dynamic table

2004-05-26 Thread adrian murphy


>
> >Hiya,
> >
> >How can i draw a new  AFTER FIVE   in the following loop
> >
> >(i want to echo the records in 5 columns width tables whatever the number
> of
> >records will be fetched)
> >
> >..
> >echo '';
> >
> >while ($myrow = mysql_fetch_array($sql))
> >{
> >echo $myrow[0];
> >}
> >echo '';
> >
> >
> >regards
>
> $i = 1;
> echo '' . "\n";
> echo '' . "\n";
>
> while ($myrow = mysql_fetch_array($sql)){
>
> echo '' . $myrow[0]. "\n";
>
> if ($i % 5 == 0){
> echo "\n";
> }
>
> $i++;
> }
>
> $odd = ($i - 1)  % 5;
> if ($odd){
> echo ' ' . "\n";
> }
> echo '' . "\n";
> echo '' . "\n";
>
>
> adrian

sorry the $odd bit at the end aint right but you get the idea.

adrian

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] dynamic table

2004-05-26 Thread adrian murphy

>Hiya,
>
>How can i draw a new  AFTER FIVE   in the following loop
>
>(i want to echo the records in 5 columns width tables whatever the number
of
>records will be fetched)
>
>..
>echo '';
>
>while ($myrow = mysql_fetch_array($sql))
>{
>echo $myrow[0];
>}
>echo '';
>
>
>regards

$i = 1;
echo '' . "\n";
echo '' . "\n";

while ($myrow = mysql_fetch_array($sql)){

echo '' . $myrow[0]. "\n";

if ($i % 5 == 0){
echo "\n";
}

$i++;
}

$odd = ($i - 1)  % 5;
if ($odd){
echo ' ' . "\n";
}
echo '' . "\n";
echo '' . "\n";


adrian

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 supprt .php files?
(i get a better response from them if i tell them exactly what to do ;-)  )

tia 
adrian



[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 server admin.
tia,
adrian



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 General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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']) {
> do what needs to be done
> header("Location: nextpage.php");
> exit;
> }
>
> include "start_html.php"
>
>
> Meltem Demirkus wrote:
>
> >I tried , but it is giving this error:
> >
> >Warning: Cannot add header information - headers already sent by (output
> >started at C:\FoxServ\www\debugger\project_module\project_update_.php:2)
in
> >C:\FoxServ\www\debugger\project_module\project_update_.php on line 37
> >
> >the line 2  is   
> >
> >and  start_html.php includes:
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> >and line 37 is the header I wrote  >?>
> >
> >
> >- Original Message -
> >From: "Marek Kilimajer" <[EMAIL PROTECTED]>
> >To: "PHP" <[EMAIL PROTECTED]>
> >Sent: Friday, September 06, 2002 12:55 PM
> >Subject: Re: [PHP] question about Location
> >
> >
> >
> >
> >> doesn't mean output unless you use echo or print or whatever to
> >>output from there anything.
> >>Just use header("Location: yournewpage.php"); at the end.
> >>
> >>Meltem Demirkus wrote:
> >>
> >>
> >>
> I mean  I made a page with php and other stuff..And there is form
.When
> 
> 
> >I
> >
> >
> click on okbutton  php is dpoing what it should . But after want the
> 
> 
> >page
> >
> >
> 
> 
> >>>to
> >>>
> >>>
> >>>
> >>>
> come to another link.I asked that before and they told me that ..
there
> 
> 
> 
> 
> >>>must
> >>>
> >>>
> >>>
> >>>
> be no uotput but I am using  which means  output..
> 
> so I dont know what to do..
> meltem
> 
> 
> - Original Message -
> From: "Brad Bonkoski" <[EMAIL PROTECTED]>
> To: "Meltem Demirkus" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, September 06, 2002 12:36 PM
> Subject: Re: [PHP] question about Location
> 
> 
> 
> 
> 
> 
> >Not quite sure what you are getting at here?  A hyper link would
direct
> >the user to another page :-)
> >If you mean after a timeout/auto-magically perhaps you can try meta
> >
> >
> >
> >
> refresh:
> 
> 
> 
> 
> >http://www.htmlhelp.com/reference/html40/head/meta.html
> >
> >HTH
> >-Brad
> >
> >Meltem Demirkus wrote:
> >
> >
> >
> >
> >>Is there anyway  to direct my page to another after the php and
output
> >>process work on the page?
> >>
> >>thanks
> >>meltem demirkus
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >>>
> >>>
> >>>
> >>>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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, September 02, 2002 12:16 PM
Subject: [PHP] why is html code written like this? 


> When I learned html it was always written like this:  now I see
> people write it like this: ... why?
> 
> - Victor > www.argilent.com
> 
> 
> __ 
> Post your free ad now! http://personals.yahoo.ca
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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" <[EMAIL PROTECTED]>
To: "Dan McCullough" <[EMAIL PROTECTED]>; "PHP General List"
<[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 3:09 PM
Subject: Re: [PHP] A quick question - Help Please !


> That's REALLY strange that the payment site doesn't return anything...  So
> the user just hits a dead-end or what?  Can we see a test site?
>
> And the fact that it all needs to be secure makes it a little more
> challenging.
>
> Essentially, what you need is for one form to POST to two separate
> scripts... one local, and one on another server.  My thoughts are that
you'd
> need to POST to a local script which produces the email AND THEN submits
> info to the merchant.
>
> But the fact that this probably needs to be done:
> a) with POST
> b) with SSL
>
> Will prolly make it very tricky.  Search the archives for "emulating POST"
> or "faking POST", because I know it's been discussed before.
>
>
> Yes, you probably CAN do it with javascript, but I'm not sure I'd be
> comfortable relying on it AT ALL -- if it doesn't exist, then your site
> breaks -- either the email or the merchant stuff will break if you rely on
> JS.
>
>
> Justin French
>
>
> on 19/08/02 11:54 PM, Dan McCullough ([EMAIL PROTECTED]) wrote:
>
> > Hello everyone,
> >
> > I have a quick question.
> >
> > I am trying to do two seperate things on one submission, it would be
easy if I
> > was submitting to
> > my own page, but I am submitting to a payment processor company, and so
> > several things will occur
> > off-site, and there is nothing that comes back from the payment
processor when
> > then payment is
> > made so I can't handle it on the return.  And so what I am doing now is
when
> > you land on the page
> > to confirm that you want to place the order an email is created and sent
to
> > the owner, I would
> > like that to only get sent when the submit button is clicked .. and yes
I have
> > tried onSubmit with
> > it calling my php function.
> >
> > Any thoughts?
> >
> > thanks,
> >
> > dan
> >
> > __
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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$
RewriteRule   ^(.+)%{HTTP_HOST}$1  [C]
RewriteRule   ^www\.([^.]+)\.mysite\.biz(.*) http://www.mysite.biz/users/sites/$1
RewriteCond   %{HTTP_HOST} ^www\.[^.]+\.mysite\.ie$
RewriteRule   ^(.+)%{HTTP_HOST}$1  [C]
RewriteRule   ^www\.([^.]+)\.mysite\.ie(.*) http://www.mysite.biz/users/sites/$1


adrian.



Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy

thnks,
i didn't write the function so i've now replaced it
with something better.
- Original Message -
From: "Stuart Dallas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 2:30 PM
Subject: Re: [PHP] whats wrong with this function


> 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.
>
> Laying out your code so the structure can be seen...
>
>  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[$n+3]) . $string[$n+4] . $string[$n+5] . $string[$n+6]))
>   {
> $startpos = $n;
>
> while($n < strlen($string) &&
eregi("[a-z0-9\.\:\?\/\~\-\_\&\=\%\+\'\"]", $string[$n]))
>   $n++;
>
> if(!eregi("[a-z0-9]", $string[$n-1]))
>   $n--;
>
> $link = substr($string, $startpos, ($n-$startpos));
> $link = $link;
> $string_tmp = $string;
> $string = substr($string_tmp, 0, $startpos);
> $string .= "$link";
> $string .= substr($string_tmp, $n, strlen($string_tmp));
> $n = $n + 15;
>   }
> }
>   }
>   return $string;
> }
>
> $text = "http://www.somewhere.org ";
> echo urls_clickable($text);
> ?>
>
> It's getting stuck because you're moving the goalposts. It's a very bad
idea to
> base a loop on a variable that is changed within the loop. I suggest you
loop
> through one string while building a second string as the return value.
>
> On the other hand, I seem to remember seeing a regex posted on this list
> recently that did exactly this. I suggest you search the archives for it
> because it would save you a lot of hassle.
>
> --
> Stuart
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 function


> Yes, your problem is it doesn't work.
>
> HTH,
> ---John Holmes...
>
> PS: Think that's a worthless answer? Well...same for your question...
>
> - Original Message -
> From: "Adrian Murphy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 03, 2002 8:47 AM
> Subject: [PHP] whats wrong with this function
>
>
>
> 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[$n+3]) . $string[$n+4] .
> $string[$n+5] . $string[$n+6])) {
> $startpos = $n;
> while($n < strlen($string) && eregi("[a-z0-9\.\:\?\/\~\-\_\&\=\%\+\'\"]",
> $string[$n])) $n++;
> if(!eregi("[a-z0-9]", $string[$n-1])) $n--;
> $link = substr($string, $startpos, ($n-$startpos));
> $link = $link;
> $string_tmp = $string;
> $string = substr($string_tmp, 0, $startpos);
> $string .= "$link";
> $string .= substr($string_tmp, $n, strlen($string_tmp));
> $n = $n + 15;
> }
> }
> }
> return $string;
> }
>
> $text = "http://www.somewhere.org ";
> echo urls_clickable($text);
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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[$n+3]) . $string[$n+4] . $string[$n+5] 
. $string[$n+6])) { 
$startpos = $n; 
while($n < strlen($string) && eregi("[a-z0-9\.\:\?\/\~\-\_\&\=\%\+\'\"]", 
$string[$n])) $n++; 
if(!eregi("[a-z0-9]", $string[$n-1])) $n--; 
$link = substr($string, $startpos, ($n-$startpos)); 
$link = $link; 
$string_tmp = $string; 
$string = substr($string_tmp, 0, $startpos); 
$string .= "$link"; 
$string .= substr($string_tmp, $n, strlen($string_tmp)); 
$n = $n + 15; 
} 
} 
} 
return $string; 
}

$text = "http://www.somewhere.org ";
echo urls_clickable($text);



[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.



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.do this with a .htaccess file :


ForceType application/x-httpd-php


- Original Message -
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 02, 2002 1:20 PM
Subject: Re: [PHP] Smart URLs


> You can do this with just PHP, but I think php must be installed as a
> module.
> Basically place a file called thumbnails.php in your site route, then
> whenever a URL like
> mysite.com/thumbnails/funny/4
> i called the thumbnails.php is excuted, in which you chop up the URL, and
> find all your varibles...
>
> Here is a example of some URL chopping (some code I stole from my source)
> /*
> Sample URLs:
> /s/1/2/SchoolName/StudentName/ -Shows Student Page (with ID 2)
> /s/1/0/SchoolName/-Shows Students At School (with school ID 1)
> /s/1/2/   -would work as well (name in URL for search engines)
> /s/1/0/   -would work as well
> /s/-Shows Schools
> */
>
> $url_array=explode("/",$REQUEST_URI);  //BREAK UP THE URL PATH
>//USING '/' as delimiter
> if ($url_array[1] == 's')
>  {
>  if (isSet($url_array[2]))
>   $url_sID=$url_array[2];  //School ID
>  if (isSet($url_array[3]))
>   $url_stID=$url_array[3];//Student ID
>  if (isSet($url_array[4]))
>   $url_sName=$url_array[4];  //School Name (not used)
>  if (isSet($url_array[5]))
>   $url_stName=$url_array[5];//Student Name (not used)
>  }
> /*
>
> There was a article on phpbuilder.com that explains the benefits and
> pitfalls of this idea... Here is the URL:
> http://www.phpbuilder.com/columns/tim19990117.php3 and I think there was a
> follow up article as well
>
> Enjoy
> Andrew
>
> - Original Message -
> From: "Scott 'INtense!' Reismanis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 03, 2002 5:28 AM
> Subject: [PHP] Smart URLs
>
>
> > Hey all,
> >
> > I was recently trying my luck at dabbling in some mod_rewrite
> > stuff, and I have run into numerious errors. Basically my aim is to
> > re-write my sites URLs so instead of being say,
> > mysite.com/thumbnails?type=funny&gallery=4 the URL is neat, similar to
> > many sites who would have something like mysite.com/thumbnails/funny/4
> >
> > What ways are there of achieving this (excluding, redirecting the URL
> > and creating the page say index.htm automatically)? I have tried
> > mod_rewrite for two days solid to no avail. I am not sure if it is my
> > poor coding or the fact that I am running apache2 on a Windows platform
> > which are said not to support such a module well. If any alternatives
> > could be proposed or even better someone could suggest a mod_rewrite
> > routine which would transparently transform any url like
> > mysite.com/whatever/4/6 to mysite.com/whatever.php it would be greatly
> > appreciated. So far the rewrite you see below will work with
> > mysite.com/whatever/ however the minute you add something onto the end
> > i.e. mysite.com/whatever/4/ it will raise the error "Premature end of
> > script headers: php.exe", instead of loading whatever.php as intended.
> >
> > RewriteEngine On
> > Options +FollowSymlinks
> > RewriteBase /
> > RewriteRule ^/(.+)/(.+) $1.php [L]
> >
> > Thanks for your time and hopefully someone understands what I am trying
> > to say :), and as always any suggestions at all would be awesome!
> >
> > Regards,
> >
> >
> >Scott 'INtense!' Reismanis
> >Mod Database System Administrator
> >[EMAIL PROTECTED]
> >http://www.moddb.com/ - "Every Game, Every Mod, One
> > Site... Go Figure!"
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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: "Jeff Field" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 6:23 PM
Subject: [PHP] what does this mean in plain english?


> Hi. I'm fairly new to PHP and programming in general.  I'm learning mostly
> by deconstructing what others have written...but even though I have plenty
> of PHP books and have searched the Internet high and low, I'm stumped by
the
> exact meaning in the following function of what the question mark's ("?")
> and colon's (":"), mean and do?
>
> BTW, I'm not looking for an explanation of the function; just what the
> question mark's and colon's mean in plain english, so I'll know how to use
> them in other places.  Thanks!
>
> Jeff
>
> --
> function GetSQLValueString($theValue, $theType)
> {
>   $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) :
$theValue;
>
>   switch ($theType) {
> case "text":
>   $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
>   break;
> case "int":
>   $theValue = ($theValue != "") ? intval($theValue) : "NULL";
>   break;
>   }
>   return $theValue;
> }
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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] apache redirect and request

2002-05-17 Thread Adrian Murphy

naw.i tried that and all i get is the .com all the time
- Original Message - 
From: "Jared Boelens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 2:34 PM
Subject: RE: [PHP] apache redirect and request


> getenv("HTTP_HOST"); 
> 
> 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 request
> 
> 
> 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
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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



[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 sites.
i was talking to an 'internet consultant' who
has a flash red sports car and earns about 5 times more than me and he said i should 
look into this.
i would have thought that server-side redirects are no problem for crawlers.
i set up a google adwords thingy for one of the sites and it
worked for a while but now they've come back to me saying the url 
doesn't work when it clearly does.i've asked the google folks about this and am 
waiting for them to get back.
was just wondering if anyone had experience of this sort of thing.
thanks
adrian



[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] 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
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
adrian



[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.



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, April 02, 2002 4:02 PM
Subject: [PHP] Passing a variable invisibly via a href?


> Hi,
>
> i need to pass a variable by letting the user click on a link. Right now i
> do it like: page.php?variable=value
>
> However, i don´t want the variable, and it´s value to appear in the adress
> bar of the browser. And i don´t want people to be able to pass the same
> variable by reloading the destination page.
>
> Any pointers on how i can do this?
>
> Regards
> # Daniel Alsén| www.mindbash.com #
> # [EMAIL PROTECTED]  | +46 705 38 10 30 #
> # ICQ: 63006462   | +46 8 694 82 22  #
> # PGP: http://www.mindbash.com/pgp/  #
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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.



[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 the php
page and save it as a html page,the html page works fine!
I've encountered a few strange problems with image generation stuff.any ideas
adrian




[PHP] mod_rewrite

2002-03-01 Thread Adrian Murphy

I'm building a website buider app and I'm giving users a
url of the form  username.mysite.com but I want to redirect
all url's that end with mysite.com to a script and query
the db based on username.I've learned that I need to use
mod_rewrite for this.The documentation suggests that this will cause
extra load on the cpu.should I be worried about this?
I'm hosting with a third party.What will their reaction to this be.
Has anyone done this sort of thing and is it advisable.
I don't want to redirect from a 404 page as there's a search engine issue with that.
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



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 not fair!
>
> :) J
>
> Martin Towell wrote:
>
> > I used this code
> >
> > 
> >  > value="submit">
> > 
> >
> > when I clicked on the image, I got this url
> >
> > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20
> >
> > so php would get this as $submit_x and $submit_y
> >
> > HTH
> > Martin
> >
> > -Original Message-
> > From: jtjohnston [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 28, 2002 4:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] if(isset($submit))
> >
> > Has anyone tried:
> >
> >  > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\">
> >
> > instead of :
> >
> > >\">
> >
> > I can't get this to work:
> > if(isset($submit))
> >
> > with:
> >
> >  > src=\"next.gif\" border=\"0\" align=\"ABSCENTER\">
> >
> > I'm not coding correctly?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> John Taylor-Johnston
> --
---
>
>   ' ' '   Collège de Sherbrooke:
>  ô¿ô   http://www.collegesherbrooke.qc.ca/languesmodernes/
>- Université de Sherbrooke:
>   http://compcanlit.ca/
>   819-569-2064
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 uri and query a db based on 'yourname'.
any reason why my isp might be reluctant to do this.I'm presuming I can't
do it via .htaccess?
as a side note what are the affects of this kind of redirection as far as search 
engines
go.I've heard that doing this kind of thing on a 404 page is a bad idea.



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 PROTECTED]>
Sent: Saturday, February 16, 2002 7:49 PM
Subject: [PHP] Change gif image with php


> Hi list
>
> I have some buttons made in photoshop in .gif format. This buttons have
> round corner, feather, multiple colors etc. There's a way to open it with
> php and write some text to it. I know that is possible to create images,
but
> what about to change them??? I need to do this because the text that will
> fill the buttons come from mysql and change everyday.
>
> Thank's in advance
>
>
> Rodrigo
>
>
> ps: If someone want to see the button I'm talking look in
> http://www.celebnet.com.br/home.php under the "AS ++".
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: center text on image

2002-02-14 Thread Adrian Murphy

cool, only i can't get it exactly centred in the y position
cos the numbers are baseline relatedi.e the letter 'y' goes under the
line. any ideas?
- Original Message -
From: "J Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 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.
>
> J
>
>
>
> Adrian Murphy wrote:
>
> > 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?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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?



[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 reply on the email address
[EMAIL PROTECTED]   and I can call you to
discuss the role in more detail.
 
This is just a one month contract and will consist of more debugging than
developing. We are looking for someone to start immediately.




Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy

Thanx for all the help.I discovered the STUPID
little problem.my ftp software was set so it uploded .ttf
in ascii instead of binary.all works now.
thanks again
- Original Message -
From: "Tom Rogers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 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 well
> >thanx.
> >
> >- Original Message -
> >From: "hugh danaher" <[EMAIL PROTECTED]>
> >To: "php" <[EMAIL PROTECTED]>
> >Sent: Tuesday, February 12, 2002 3:00 AM
> >Subject: Re: [PHP] image generation issues
> >
> >
> > > Adrian,
> > > If you're using the code displayed, you need to use $im before you
destroy
> > > it.
> > > If you want to deal with it as a .png then use:
> > > ImagePNG($im,"some_name.png",100);
> > > and then pick up the file anytime using
> > > 
> > > You can later remove 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]>
> > > Sent: Monday, February 11, 2002 6:36 PM
> > > Subject: RE: [PHP] image generation issues
> > >
> > >
> > > > when you say it doesn't work, do you mean that you get an error
message
> >or
> > > > it just doesn't write the text to the image?
> > > >
> > > > -Original Message-
> > > > From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, February 12, 2002 1:16 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] image generation issues
> > > >
> > > >
> > > > 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 issue and
> > > > old browsers.
> > > >
> > > > the code
> > > > button.php
> > > >  > > > Header ("Content-type: image/png");
> > > > $im = imagecreate (400, 30);
> > > > $black = ImageColorAllocate ($im, 0, 0, 0);
> > > > $white = ImageColorAllocate ($im, 255, 255, 255);
> > > > ImageTTFText ($im, 20, 0, 10, 20, $white,
"fonts/arial.ttf","Testing...
> > > > Omega: Ω");
> > > > ImagePng ($im);
> > > > ImageDestroy ($im);
> > > > ?>
> > > > and i call it with
> > > > 
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy

tried everything suggested and still get 'could not read font' oh well
thanx.

- Original Message -
From: "hugh danaher" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 3:00 AM
Subject: Re: [PHP] image generation issues


> Adrian,
> If you're using the code displayed, you need to use $im before you destroy
> it.
> If you want to deal with it as a .png then use:
> ImagePNG($im,"some_name.png",100);
> and then pick up the file anytime using
> 
> You can later remove 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]>
> Sent: Monday, February 11, 2002 6:36 PM
> Subject: RE: [PHP] image generation issues
>
>
> > when you say it doesn't work, do you mean that you get an error message
or
> > it just doesn't write the text to the image?
> >
> > -Original Message-
> > From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 1:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] image generation issues
> >
> >
> > 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 issue and
> > old browsers.
> >
> > the code
> > button.php
> >  > Header ("Content-type: image/png");
> > $im = imagecreate (400, 30);
> > $black = ImageColorAllocate ($im, 0, 0, 0);
> > $white = ImageColorAllocate ($im, 255, 255, 255);
> > ImageTTFText ($im, 20, 0, 10, 20, $white, "fonts/arial.ttf","Testing...
> > Omega: Ω");
> > ImagePng ($im);
> > ImageDestroy ($im);
> > ?>
> > and i call it with
> > 
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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, February 12, 2002 2:36 AM
Subject: RE: [PHP] image generation issues


> when you say it doesn't work, do you mean that you get an error message or
> it just doesn't write the text to the image?
>
> -Original Message-
> From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 1:16 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] image generation issues
>
>
> 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 issue and
> old browsers.
>
> the code
> button.php
>  Header ("Content-type: image/png");
> $im = imagecreate (400, 30);
> $black = ImageColorAllocate ($im, 0, 0, 0);
> $white = ImageColorAllocate ($im, 255, 255, 255);
> ImageTTFText ($im, 20, 0, 10, 20, $white, "fonts/arial.ttf","Testing...
> Omega: Ω");
> ImagePng ($im);
> ImageDestroy ($im);
> ?>
> and i call it with
> 
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 issue and
old browsers.

the code
button.php

and i call it with




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 would really appreciate it if someone
could
> please email me if they know any easy way or an existing function for
> removing an unknown ammount of space characters from an array.
>
> Iam having an awful lot of trouble trying to remove multiple space
> characters from an array,
>
>   ie.   x   +   y
> 123456789
>
> where there are three or more spaces in a row(rep'd above by 234 & 678),
> basically weird user input.
>
> I have written code already, but I cant see where Ive gone wrong, here it
is
> if you care to look at it, and have a good chuckle, told you I was a
novice!
> I included the start page that allows you to see what the code does, in
you
> want to look at it.
> Thank you for your time, I'd really appreciate any replies!
>
>
> 
> 
>
>
> 
>
> $x = 0;
> $ay=array();
> $g=array();
> $c = explode (' ', $a);
>
>
>for($q=0;$q<=count($c);$q++)
> {
> echo"";
> echo"$c[$q]";
> echo"";
> echo"";
> }
>
>
> $c=array_reverse($c);
>
>
> for($w = 0;$w
> {
> echo $w;
> $e=array_pop($c);
> if(($e == ' ')||($e == NULL))
> {
>
> echo"hi space";
> array_push($ay,$e);
> echo"";
> }
> else
> {
> echo"hi no space";
> array_push($g,$e);
>
> }
> }
>
>
>
> echo(count($g));
>
>
>
> for($x=0;$x<=(count($g));$x++)
> {
> echo"";
> echo"$g[$x]";
> echo"";
> }
>
> ?>
>
> 
> 
>
>
>
>
> ==
> start page code
> ==
>
>
>
> 
> 
> npage.php
>
> 
>
> 
>
>
> 
> enter polynomial  here:
>
> 
>
>
>
> 
> 
>
>
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Newbie: how to upload files in safe mode?

2001-07-11 Thread Adrian Murphy

I'm afraid you'll have to run your upload script as a cgi.
try adding this to the top of your page:

#!/usr/bin/php

you'll probably have to change the file extention to .cgi and put the script
in your cgi-bin
(not sure about that).
you should change ISP ,unless it's a free one you're using.



-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help with a variable

2001-07-09 Thread Adrian Murphy

isset() function
- Original Message - 
From: "James Bartlett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:43 PM
Subject: [PHP] Help with a variable


Hi,

Is there some way that I can check to see if a variable is present?

e.g.

if (variable is not present)
{
set variable to 0;
}
else
{
some code that uses variable;
}

Thanks for any advice.

James



-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] addslashes problem ..

2001-07-06 Thread Adrian Murphy

maybe i don't undestand correctly but try:
$string = str_replace("","\\n",$string);

i.e escape the escape character  \\n

- Original Message -
From: "Chad Day" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 4:38 PM
Subject: [PHP] addslashes problem ..


> I have to use addslashes on a string of mine so I can use it in a
javascript
> function, so that when a link is clicked, a html textarea box is populated
> with that string.
>
> The problem I have is that if there are line breaks in the string, the
> 's seem to get created when addslashes is run on the string, then in
the
> textarea box my string looks like:
>
> i can't do thatright nowbut maybe later
>
> How can I get the slashes escaped properly, but keep the same format?  I
> tried this:
>
> $RESPONSE = eregi_replace('', "\n",
> $RESPONSE);
>
> but it didn't work for me, it just kinda merged all the strings together,
no
> line breaks (or 's) at all.
>
> Thanks,
> Chad
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] simple message board (no login)

2001-06-29 Thread Adrian Murphy

anyone got a simple threaded message board where the poster doesn't have to
login but can leave there name. OR anyone modified the nuke forum so
anonymous users can leave their name?


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Why a javascript have problem if it is dynamic load?

2001-04-09 Thread Adrian Murphy

I can't solve your problem but here's an alternative javascript that 
works in both IE/NS
so u might want to give it a try:
www.eudos.com/temp/onchange.htm

hope it works.
- Original Message - 
From: Carfield Yim <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 09, 2001 11:46 AM
Subject: [PHP] Why a javascript have problem if it is dynamic load?


> I have a page with javascript which is dynamic generated by php. That
> page is quite large and run ok with IE. But it netscape, I don't know
> why that it will reload every time when I select an option. If I save
> the resulting php page in HTML file and run it is netscape, no problem
> at all. Can anyone tell me how to solve?
> 
> The pages are:
> http://203.169.148.213/coachquote/coach_req_form.html
> http://203.169.148.213/coachquote/coach_req_form.php
> 
> 
> -- 
> 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 administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] function return

2001-04-06 Thread Adrian Murphy

should work(works for me).probly something simple.

"; 
} 


?>
- Original Message - 
From: Kurth Bemis <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 4:10 PM
Subject: [PHP] function return


> 
> i'm trying to make all my include files into functions for 
> manageability.  I have one function that i'd like to get to work.heres 
> teh code..
> 
>  $db = mysql_pconnect("localhost", "user" ,"pass");
> mysql_select_db("database",$db);
> ?>
> 
> i had it in a function and had the function return $db.but didn't 
> work.any ideas?
> 
> ~kurth
> 
> 
> -- 
> 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 administrators, e-mail: [EMAIL PROTECTED]
> 



-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problem with unset($PHP_AUTH_USER );

2001-04-03 Thread Adrian Murphy

I use a login script with the header() function and $PHP_AUTH_USER etc.
the problem is once i've logged in once ,i refresh the page i stay logged
in.
i want to do testing with different privileges so i want to be asked for a
username
and password each time i've refreshed the page.I thought
unset($PHP_AUTH_USER)
right after i check the db would work but it doesn't.I've also tried
varieties of  ways
to avoid caching the page as well but nothing seems to work.this i know is a
damn simple problem.
but it's driving me a bit nuts.i even tried emptying my temp internet files
but to no avail.
what's going on?
thanx
a


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] why some dll's don't work

2001-04-02 Thread Adrian Murphy

Certain dll's i try to use simply refuse to work.

php.ini is edited correctly.
php_ftp.dll works
php_gd.dll don't
php_ldap.dll works
php_oci8.dll don't(with oracle 8i personal inastalled)
etc.
whats going on.all the requiste dll's are in the right folder.


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




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>



  




  
- Original Message -
From: Simon Ould <[EMAIL PROTECTED]>
To: 'AJDIN BRANDIC' <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 3:36 PM
Subject: RE: [PHP] Active-X


> The following code snippet was copied from
> http://javascript.internet.com/miscellaneous/check-mimes.html
> Looking at it, I guess that it only works with Netscape.
> Maybe for a less UA specific solution you could have a start page that
> contains a small flash movie that redirects the user to the flash enhanced
> version of your site.
> If they aren't redirected then they don't have a flash enabled UA:
redirect
> them to a standard HTML version of your site.
>
> Regards,
>
> Simon.
> 
>
> 
>
> 
>
> 
> 
>
> 
> 
>
> 
> 
> 
>
> 
> Free JavaScripts provided
> by http://javascriptsource.com">The JavaScript Source
> 
>
> 
>
> > -Original Message-
> > From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 28, 2001 14:46
> > To: elias
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Active-X
> >
> >
> > Thanks Elias but have you got a url that I could look at.
> > I have tried www.javascript.com and www.javascripts.com but could not
> > find anything.
> >
> > Ajdin
> ... snip ...
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




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 Message -
From: John Vanderbeck <[EMAIL PROTECTED]>
To: PHP User Group <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 2:10 PM
Subject: [PHP] PHP & mySQL primer?


> Hello all,
>
> I'm lookign at having to do a user registration setup, and I would imagine
> the best way to do that would be a databse.  The server has mySQL setup on
> it, but I have no experience with it.
>
> Can anyone point me to some good basic primers?  Soemthing that just
creates
> a db that holds user names and passwords?
>
> - John Vanderbeck
> - Admin, GameDesign
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




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 question about running JAVA classes on PHP scripts


Hi all, I've a problem with my php.ini file, running JAVA classes...
What exactly should write in php.ini?
I've JDK in /usr/local/jdk and PHP in /usr/local/php

Tanks



-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[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 administrators, e-mail: [EMAIL PROTECTED]




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 refreshes itself when submitting it!
> however when it's submitted i make a condition on the value of $submit so
as
> to make some instructions but the problem is that the $submit is always
> empty but i can see that the page is reloaded when i submit the form.
>
> Thanks
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[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 (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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, 2001 11:43 AM
Subject: Re: [PHP] email a page as attachment


> try the HTML mail and attachement class to send the data as an attachment
to
> the email
>
> http://phpclasses.upperdesign.com/
>
> hope that helps
>
> best regards
>
> Ankur Verma
> HCL Technologies
> A1CD, Sec -16
> Noida, UP
> India
>
>
> - Original Message -
> From: "kaab kaoutar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 21, 2001 4:34 PM
> Subject: Re: [PHP] email a page as attachment
>
>
> >
> > Hi!
> > Thanks but i want to send the current page!
> > it's like i've generated a page with some results and i want to send
that
> > page as email body or attachment!
> > if i use whet u told me about i will only send the source code wich will
> > give me nothing cause therer are no variables sent with it !
> > Thanks
> >
> > >From: <[EMAIL PROTECTED]>
> > >To: kaab kaoutar <[EMAIL PROTECTED]>
> > >CC: [EMAIL PROTECTED]
> > >Subject: Re: [PHP] email  a page as attachment
> > >Date: Tue, 20 Feb 2001 19:40:13 +0100 (CET)
> > >
> > > > how can i email from a page, that page as attachment ?
> > >http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3
> > >
> > >Bye,
> > >
> > >Atom
> > >
> >
> >
_
> > Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
> >
> >
> > --
> > 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 administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] woe is me

2001-02-19 Thread Adrian Murphy

i'm sorry,i just had to share this with people who'd understand.
we've just secured clients who are m$ affiliated and they insist
everthing be done with asp.
excuse me while i go off for a little cry.


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] currency conversion

2001-02-15 Thread Adrian Murphy

How legal is this?
can u use it on a website?
free?


- Original Message -
From: Robin Vickery <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 10:46 AM
Subject: Re: [PHP] currency conversion


> > "c" == christian  <[EMAIL PROTECTED]> writes:
>
>  > does anyone know of a way to currency conversions with php? i want
>  > to grab the current currency from some kind of web site and then
>  > convert money to different currency value
>
> I'm sure plenty of people have done this properly, but here's a
> quick hack to use Xe's currency converter.
>
>
> 
> class currency
> {
>
>   function convert($amount, $from, $to) {
>
> $regex = "/[0-9.]+\s*$from\s*=\s*([0-9.]+)\s*$to/";
>
> $return = file
("http://www.xe.net/ucc/convert.cgi?Amount=1&From=$from&To=$to");
>
> foreach ($return as $line) {
>   if( preg_match($regex, $line, $match) ) break;
> }
>
> if (!isset($match)) return false;
>
> return $amount * $match[1];
>
>   }
>
> }
>
> $money = new currency;
>
> print $money->convert( 10, "GBP", "AUD" );
>
> ?>
>
>
> --
> Robin Vickery.
> BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] currency converter class

2001-02-14 Thread Adrian Murphy

anyone point me in the direction of a good currency converter class written
in php.
a euro converter will do!
thanx.


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] pro's and con's of storing images

2001-02-14 Thread Adrian Murphy

I'm putting togeather a simple website buider app.
i'm allowing users to upload images.I'm wondering whether i should store
those images in a database or create dirs for each user.the mysql db has a
relatively small capacity but storing them to the db might make it simpler
for me.
also ftp functions don't work on the server and my damn isp keeps fobbing me
off when i ask him to do anything.


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] error handling prob

2001-02-06 Thread Adrian Murphy

to handle errors i have this in .htaccess:
e.g
ErrorDocument  404  http://www.mysite.com/error/error.php

but on error.php  the 'REDIRECT_'  vars contain nothing
e.g REDIRECT_URL  etc.

why so?


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




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 PROTECTED]>
Cc: PHP list <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 12:26 PM
Subject: Re: [PHP] multple select forms... going to hit my head against a
wall ..


> Having soved this .. thanks .. now for the next question .. *grin*
>
> I have the $select ... but I only use it on the next page .. heheh
> so I'm trying the following ..
>
> 
>
> which of course doens't work .. nor does
>
> 
>
> any idea on how to pass an array on in an input field in a form ?
>
> Henti
>
>
>
> On Tue, Jan 23, 2001 at 12:01:40PM -, Adrian Murphy wrote:
> > 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:
> >
> >  > if ($select==""){
> >   print"
> > 
> > 
> > Chocolate/Chocolate Chip
> > Peanut Brittle/Vanilla
> > Cookie Batter
> > Vanilla/Blueberry
> > Caramel Swirl
> > Other...
> > 
> > 
> > 
> >   ";
> >
> > }else{
> >
> > ///count array
> >  $num = count($select);
> >
> > file://loop through array
> >  for($i = 0;$i <$num;$i++){
> >   print $select[$i] . "";
> >  }
> > }
> > ?>
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: PHP list <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 23, 2001 11:42 AM
> > Subject: [PHP] multple select forms... going to hit my head against a
wall
> > ..
> >
> >
> > > Hi all
> > >
> > > I'm having a slight little problem .. I can't seem to solve..
> > >
> > > I have a multiple select form .. that i select mutiple options from
and
> > then it creates a variable called $select
> > > now if I display $select .. I only get the last selected value .. here
> > foloows test code..
> > >
> > >  > > if ($select==""){
> > >   print"
> > > 
> > > 
> > > Chocolate/Chocolate Chip
> > > Peanut Brittle/Vanilla
> > > Cookie Batter
> > > Vanilla/Blueberry
> > > Caramel Swirl
> > > Other...
> > > 
> > > 
> > > 
> > >   ";
> > >
> > > }else{
> > >
> > >   print $select;
> > >
> > > }
> > > ?>
> > >
> > > I'm de missing something ... can sombody please lend a hand .. thanks
> > >
> > > Henti Smith
> > >
> > >
> > > --
> > > 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 administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> > --
> > 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 administrators, e-mail: [EMAIL PROTECTED]
> >
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




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://loop through array
 for($i = 0;$i <$num;$i++){
  print $select[$i] . "";
 }
}
?>
- Original Message -
From: <[EMAIL PROTECTED]>
To: PHP list <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 11:42 AM
Subject: [PHP] multple select forms... going to hit my head against a wall
..


> Hi all
>
> I'm having a slight little problem .. I can't seem to solve..
>
> I have a multiple select form .. that i select mutiple options from and
then it creates a variable called $select
> now if I display $select .. I only get the last selected value .. here
foloows test code..
>
>  if ($select==""){
>   print"
> 
> 
> Chocolate/Chocolate Chip
> Peanut Brittle/Vanilla
> Cookie Batter
> Vanilla/Blueberry
> Caramel Swirl
> Other...
> 
> 
> 
>   ";
>
> }else{
>
>   print $select;
>
> }
> ?>
>
> I'm de missing something ... can sombody please lend a hand .. thanks
>
> Henti Smith
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[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 there a way i can do this without creating indivual folders for each
company.I'd like the whole creation process to be automated.
I'm sure the ftp functions in php would allow for the generation of new
folders for each,but since all content/style etc. will be pulled from a DB
it's seems to me a little pointless having all these folders with the same
php page in each.essentially i'd like a php script to run automatically each
time taking what looks like a folder name and making a call to the db using
this name as a variable.
easy,difficult or impossible?
thanx,
adrian


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




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.v.cool.it's not free but pretty cheap i imagine(it
comes free with dreamweaver,which i never use).
and ,of course,it doesn't do any thing it's not told to do with your code.
www.allaire.com

- Original Message -
From: Daniel Grace <[EMAIL PROTECTED]>
To: PHP General <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 9:10 AM
Subject: Re: [PHP] I love/hate FrontPage - need another HTML editor.


> >"Murph" <[EMAIL PROTECTED]> wrote in message
> >003201c08027$e886c480$[EMAIL PROTECTED]">news:003201c08027$e886c480$[EMAIL PROTECTED]...
> >
> >-- snip --
> >
> >Anyone out there using an HTML editor that they'd like to recommend?
> >Why? Are there any FAQs I should be reading for this answer?
> >
> >Yours,
> >Murph
>
> I prefer NoteTab Light -- http://www.notetab.com/ -- which is a very
> powerful text editor. While it can't do all the GUI design and doesn't
> have syntax highlighting, everything else altogether makes it worth it.
>
> It allows you to have multiple files open at the same time using a
> tabbed interface (hence the name), and will (optionally) open all the
> files you had open your last editing session when you start it up. My
> favorite feature is the Match Brackets feature, which is nice for making
> sure you're not missing braces, etc.
>
> for example, given this piece of code ( (cursorhere) marks the cursor
> position):
>
>  function foo() {
>if($somecondition || (cursorhere) someothercondition) { do_this(); }
>  }
>
> ctrl+M (shortcut key to match brackets) would highlight everything
> between the parenthesis in the if. Using it again with that highlighted
> would highlight everything in the function.
>
> NoteTab can also do other useful things, like count word occurance,
> search/replace across all open files, read (to some extent) binary files,
> trim whitespace, sort lines alphabetically, and all that neat stuff. It
> automatically recognizes EBCDIC (remember that) and will automatically
> convert to and from UNIX/Mac/DOS/Windows line endings. All and all, my
> favorite text editor by far even without the syntax highlighting. It even
> has a 'replace notepad/restore notepad' option that you may find yourself
> using.
>
> NoteTab Light is free. There are other versions (NoteTab Standard and
> NoteTab Pro) that are not free, but I have never had a use for them. I
> have heard of a library for it that colorizes HTML but have not yet seen
> it/played with it, and if it does exist and work well it'd be nice to
> have one for PHP. Personally, I'd love something like the Visual Studio-
> like function declaration tooltips and/or a way to navigate to any
> function in the project (Venura 
> currently runs 94 functions in 5994 lines of code -- and that's with the
> mass optimizations I've been doing the last couple weeks.) However,
> I think NoteTab is written with the html author/developer.
>
> DISCLAIMER: The author of this email is in no way shape or form affiliated
> with NoteTab and/or it's authors, except for happening to love the
program.
>
> Side note: Out of all the people I've recommended NoteTab too, almost all
of
> them like it.
>
> --
>  - Daniel Grace 
>
>   "Space may be the final frontier but its made in a Hollywood basement."
> - Red Hot Chili Peppers - Californication
>
>
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]