[PHP] Delete File With Any File Extension

2010-06-15 Thread Shaun Thornburgh

Hi,

I need to delete a file with any file extension where i know the name of the 
file, is it possible to use regular expressions with the unlink function?

Thanks
  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now

[PHP] W3C Validator and Post Arrays

2009-04-02 Thread Shaun Thornburgh

Hi,

We are getting errors when trying to vaildate our HTML due to the [ character 
when using Post Arrays:

Line 173, Column 65:
character "[" is not allowed in the value of attribute "id"

…e="filters[calling_url]" id="filters[calling_url]" value="categories-bulk-ear

Does anyone know of a way around this?

Thanks


_
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh


> Date: Thu, 28 Aug 2008 16:24:58 -0500> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]; php-general@lists.php.net> Subject: RE: [PHP] Problems sending 
> $_POST vairable to an ASP page> > [snip]> Unfortunately I don't have curl 
> installed on my server.> [/snip]> > Unless you can open a socket or a curl 
> session you will not be able to> post values to a remote page. Curl is your 
> best bet, can it be> installed?> > -- > PHP General Mailing List 
> (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> 
It appears I was wrong, I do have cURL installed!
_
Win New York holidays with Kellogg’s & Live Search
http://clk.atdmt.com/UKM/go/107571440/direct/01/

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh




> Date: Thu, 28 Aug 2008 16:21:19 -0500> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]; php-general@lists.php.net> Subject: RE: [PHP] Problems sending 
> $_POST vairable to an ASP page> > [snip]> I need to send post variables to an 
> ASP page. I have the following code> which isn't producing any errors but 
> isn't working either:> > foreach($_POST['newsletter-group'] as $key => 
> $value){> $_POST['addressbookid'] = $value; $out = "POST /signup.ashx"; $fp 
> => fsockopen("dmtrk.net", 80, $errno, $errstr, 30); if (!$fp) { echo> 
> "$errstr ($errno)\n"; } else { fputs($fp, $out . "\r\n"); }> 
> fclose($fp); }> > Can anyone tell me what I am doing wrong please?> [/snip]> 
> > http://www.php.net/curl> > > there was just a thread on this within the 
> past week.> > -- > PHP General Mailing List (http://www.php.net/)> To 
> unsubscribe, visit: http://www.php.net/unsub.php> 
 
Hi Jay,
 
Unfortunately I don't have curl installed on my server.
 
 
_
Make a mini you on Windows Live Messenger!
http://clk.atdmt.com/UKM/go/107571437/direct/01/

[PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh
Hi guys,
I need to send post variables to an ASP page. I have the following code which 
isn't producing any errors but isn't working either:
 
foreach($_POST['newsletter-group'] as $key => $value){ $_POST['addressbookid'] 
= $value; $out = "POST /signup.ashx";  $fp = fsockopen("dmtrk.net", 80, $errno, 
$errstr, 30); if (!$fp) {  echo "$errstr ($errno)\n"; } else {   
fputs($fp, $out . "\r\n");  }  fclose($fp); }
 
Can anyone tell me what I am doing wrong please?
_
Get Hotmail on your mobile from Vodafone 
http://clk.atdmt.com/UKM/go/107571435/direct/01/

RE: [PHP] Re: Sending a POST variable to an ASP page

2008-08-28 Thread shaun thornburgh


Date: Wed, 27 Aug 2008 15:07:53 -0600From: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: Re: [PHP] Re: Sending a POST variable to an ASP page
well that would constitute a particular reason :)
On Wed, Aug 27, 2008 at 2:55 PM, shaun thornburgh <[EMAIL PROTECTED]> wrote:



> Date: Wed, 27 Aug 2008 14:45:42 -0600> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: php-general@lists.php.net> Subject: Re: [PHP] Re: Sending a 
> POST variable to an ASP page 


> > On Wed, Aug 27, 2008 at 2:41 PM, shaun thornburgh <> [EMAIL PROTECTED]> 
> > wrote:> > > > To: php-general@lists.php.net> Date: Wed, 27 Aug 2008 
> > 14:07:31 -0500>> > From: [EMAIL PROTECTED]> Subject: [PHP] Re: Sending a 
> > POST variable to> > an ASP page> > shaun thornburgh wrote:> > Hi,> > > > I 
> > need to send a post> > variable to an ASP page, can I do this within my PHP 
> > script?> > > > I don't> > need to view the page, or get any acknowledgment 
> > back, just send the single> > POST variable...> > > > Thanks for your 
> > advice> >> > 
> > _> > Get> > 
> > Hotmail on your mobile from Vodafone > >> > 
> > http://clk.atdmt.com/UKM/go/107571435/direct/01/> > If you don't mind> > 
> > building the headers yourself in the code, it's just a > matter of using> > 
> > fsockopen() and then fputs().> > -Shawn> > -- > PHP General Mailing List (> 
> > > http://www.php.net/)> To unsubscribe, visit: 
> > http://www.php.net/unsub.php>> >> > Hi Shawn, I have tried the following 
> > but it doesnt seem to work:> > foreach($_POST['newsletter-group'] as $key 
> > => $value){> > $_POST['addressbookid'] = $value; $out = "POST 
> > /signup.ashx"; $fp => > fsockopen("server-url", 80, $errno, $errstr, 30); 
> > if (!$fp) { echo> > "$errstr ($errno)\n"; } else { fputs($fp, $out . 
> > "\r\n"); }> > fclose($fp); } Am I building the headers incorrectly?> > 
> > _> > Make a 
> > mini you on Windows Live Messenger!> > 
> > http://clk.atdmt.com/UKM/go/107571437/direct/01/> > > > dude, honestly, why 
> > would you take that approach unless you had a particular> reason for it? 
> > especially when you can knock it out in 2 minutes w/ curl...> > btw, google 
> > is pretty key as usual, try googling 'php curl post' ;)> > -nathan Hi 
> > Nathan, Unfortunately I can't install CURL on my server.

Win £3000 to spend on whatever you want at Uni! Click here to WIN!Hi guys, Can 
anyone help with how I need to add the headers to the following code 
please?foreach($_POST['newsletter-group'] as $key => $value){  
$_POST['addressbookid'] = $value;   $out = "POST /signup.ashx";   $fp = 
fsockopen("server-url", 80, $errno, $errstr, 30);   if (!$fp) { echo 
"$errstr ($errno)\n";   } else { fputs($fp, $out . "\r\n");   }  
fclose($fp); }Many thanks
_
Win a voice over part with Kung Fu Panda & Live Search   and   100’s of Kung Fu 
Panda prizes to win with Live Search
http://clk.atdmt.com/UKM/go/107571439/direct/01/

RE: [PHP] Re: Sending a POST variable to an ASP page

2008-08-27 Thread shaun thornburgh




> To: php-general@lists.php.net> Date: Wed, 27 Aug 2008 14:07:31 -0500> From: 
> [EMAIL PROTECTED]> Subject: [PHP] Re: Sending a POST variable to an ASP page> 
> > shaun thornburgh wrote:> > Hi,> > > > I need to send a post variable to an 
> ASP page, can I do this within my PHP script?> > > > I don't need to view the 
> page, or get any acknowledgment back, just send the single POST variable...> 
> > > > Thanks for your advice> > 
> _> > Get 
> Hotmail on your mobile from Vodafone > > 
> http://clk.atdmt.com/UKM/go/107571435/direct/01/> > If you don't mind 
> building the headers yourself in the code, it's just a > matter of using 
> fsockopen() and then fputs().> > -Shawn> > -- > PHP General Mailing List 
> (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> 
 
Hi Shawn, I have tried the following but it doesnt seem to work: 
foreach($_POST['newsletter-group'] as $key => $value){   
$_POST['addressbookid'] = $value;   $out = "POST /signup.ashx";$fp = 
fsockopen("server-url", 80, $errno, $errstr, 30);   if (!$fp) {echo 
"$errstr ($errno)\n";   } else { fputs($fp, $out . "\r\n");}
fclose($fp);  } Am I building the headers incorrectly?
_
Make a mini you on Windows Live Messenger!
http://clk.atdmt.com/UKM/go/107571437/direct/01/

RE: [PHP] Sending a POST variable to an ASP page

2008-08-27 Thread shaun thornburgh




> Date: Wed, 27 Aug 2008 14:13:23 -0400> To: php-general@lists.php.net> From: 
> [EMAIL PROTECTED]> Subject: Re: [PHP] Sending a POST variable to an ASP page> 
> > At 5:54 PM + 8/27/08, shaun thornburgh wrote:> >Hi,> >> >I need to send 
> a post variable to an ASP page, can I do this within > >my PHP script?> >> >I 
> don't need to view the page, or get any acknowledgment back, just > >send the 
> single POST variable...> > The point is not IF php can send a POST (it can), 
> but rather can ASP > receive a POST?> 
 
Hi Tedd, The ASP script has been set up to receive POST variables from a form.> 
Cheers,> > tedd> > -- > ---> http://sperling.com http://ancientstones.com 
http://earthstones.com> > -- > PHP General Mailing List (http://www.php.net/)> 
To unsubscribe, visit: http://www.php.net/unsub.php> 
_
Win New York holidays with Kellogg’s & Live Search
http://clk.atdmt.com/UKM/go/107571440/direct/01/

[PHP] Sending a POST variable to an ASP page

2008-08-27 Thread shaun thornburgh
Hi,
 
I need to send a post variable to an ASP page, can I do this within my PHP 
script?
 
I don't need to view the page, or get any acknowledgment back, just send the 
single POST variable...
 
Thanks for your advice
_
Get Hotmail on your mobile from Vodafone 
http://clk.atdmt.com/UKM/go/107571435/direct/01/

[PHP] Number of files in a dir

2002-11-01 Thread Shaun Thornburgh
How can i find out how many files exist in a dir?



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




Re: [PHP] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
Thats all fine

Here is my form header




"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
news:020201c281ec$04515820$6601a8c0@;kevin...
> Confirm that you're using the proper header information in your HTML

> tag..
> 
> -Kevin
>
> - Original Message -
> From: "Shaun Thornburgh" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 01, 2002 1:51 PM
> Subject: [PHP] Re: uploading files
>
>
> > My apologies, here is the code!
> >
> >  //copy image to server
> >  if ($image != "none") {
> >   if (copy ($image, $dir.$image_name)){
> >  echo "File upload successful!";
> >   } else {
> >echo "File upload unsuccessful!";
> >   }
> >
> >   //new name of image
> >   $new_name = "$property_id-$category_id-$sub_category_id.jpg";
> >
> >   //rename the file
> >   rename($dir.$image_name, $dir.$new_name);
> >  }
> >
> >
> > "Shaun Thornburgh" <[EMAIL PROTECTED]> wrote in message
> > news:20021101205003.11053.qmail@;pb1.pair.com...
> > > I am attempting to upload image files to the server from a users
browser
> > > using the following code, however, the images seem to get corrupted,
> they
> > > look completely different and the file sizes are generally smaller,
also
> > it
> > > sometimes says file upload unsuccessful, even when it does upload the
> > file?
> > >
> > > Any ideas?
> > >
> > > Thank you
> > >
> > >
> >
> >
> >
> > --
> > 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] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
My apologies, here is the code!

 //copy image to server
 if ($image != "none") {
  if (copy ($image, $dir.$image_name)){
 echo "File upload successful!";
  } else {
   echo "File upload unsuccessful!";
  }

  //new name of image
  $new_name = "$property_id-$category_id-$sub_category_id.jpg";

  //rename the file
  rename($dir.$image_name, $dir.$new_name);
 }


"Shaun Thornburgh" <[EMAIL PROTECTED]> wrote in message
news:20021101205003.11053.qmail@;pb1.pair.com...
> I am attempting to upload image files to the server from a users browser
> using the following code, however, the images seem to get corrupted, they
> look completely different and the file sizes are generally smaller, also
it
> sometimes says file upload unsuccessful, even when it does upload the
file?
>
> Any ideas?
>
> Thank you
>
>



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




[PHP] uploading files

2002-11-01 Thread Shaun Thornburgh
I am attempting to upload image files to the server from a users browser
using the following code, however, the images seem to get corrupted, they
look completely different and the file sizes are generally smaller, also it
sometimes says file upload unsuccessful, even when it does upload the file?

Any ideas?

Thank you



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