Re: [PHP] String manipulation

2003-06-11 Thread Jake Johnson
Use the substr function to get the part you want. Then prefix/suffix the
parts you want.

//you may want to derive the positions as vars
$rest = substr("abcdef", 1, 3); // returns "bcd"

//you may  want to put the link name into a var as well for below
$rest = "the link"


Good Luck,

Jake Johnson
http://www.plutoid.com


On Wed, 11 Jun 2003, Marios Adamantopoulos wrote:

>  Hi all
>
> I wonder if anyone can help with this.
> I have a piece of copy that includes this:
> [link][title]the link[/title][address]http://www.php.net[/address][/link]
> And I need to change it to this:
> http://www.php.net";>the link
>
> Any help is appreciated
>
> Mario
>

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



Re: [PHP] How do I capture a POST responce

2003-06-12 Thread Jake Johnson
Try using this

$_POST['var_name']

Jake Johnson
http://www.plutoid.com


On Thu, 12 Jun 2003, Joaco wrote:

> I am writing a module that will allow a customer to process a credit card
> refund thru a web interface that I am designing. The problem I am having is
> that once the information is posted to the gateway, it returns a url encoded
> string with the responce from the transaction. How can I capture that
> responce on my page rather than having to open or save the returned file?
>
>
>
> --
> 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] ie issue: when I do a forced redirect with the header()function the location bar does not change

2003-06-18 Thread Jake Johnson
Have you tried...
https://www.google.com";) ;
?>

Regards,
Jake Johnson
[EMAIL PROTECTED]

--
Plutoid - http://www.plutoid.com
Shop Plutoid for the best prices on Rims and Car Audio Products


On Tue, 17 Jun 2003, Jeff Means wrote:

> How do I force IE to update the location bar when I do a forced redirect??
>
>
> --
> 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] Php Alias instead of redirect

2004-05-24 Thread Jake Johnson
Hello,
Is it possible to have an alias so that bots will index the page instead of a redirect.

-- 
Thanks,
Jake Johnson
[EMAIL PROTECTED]

__
Plutoid - http://www.plutoid.com - Shop Plutoid for the best prices
on rings, earrings, necklaces, diamonds and other fine jewelry.

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



Re: [PHP] ie issue: when I do a forced redirect with the header()

2004-05-25 Thread Jake Johnson
Very Cool!  That is what I was looking for!
Thanks,
Jake Johnson
http://www.plutoid.com

On Fri, Jun 20, 2003 at 12:46:04PM +0100, Pete Morganic wrote:
> Slkigh Ammendment to below
>  header("Location: https://www.google.com";) ;
> die;
> ?>
> 
> 
> Jake Johnson wrote:
> >Have you tried...
> > >header("Location: https://www.google.com";) ;
> >?>
> >
> >Regards,
> >Jake Johnson
> >[EMAIL PROTECTED]
> >
> >--
> >Plutoid - http://www.plutoid.com
> >Shop Plutoid for the best prices on Rims and Car Audio Products
> >
> >
> >On Tue, 17 Jun 2003, Jeff Means wrote:
> >
> >
> >>How do I force IE to update the location bar when I do a forced redirect??
> >>
> >>
> >>--
> >>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

-- 
Jake Johnson
http://www.plutoid.com

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



[PHP] How do I use RewriteEngine for similar parameters?

2004-05-26 Thread Jake Johnson
Hello,
I am trying to use the RewriteEngine for the following two lines.  One has one 
parameter and the other has two?

http://www.plutoid.com/index.php?show=semi
http://www.plutoid.com/index.php?prd_id=5248&show=semi

Thanks in advance!
-- 
Jake Johnson
http://www.plutoid.com

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



Re: [PHP] clearing new pages

2004-05-26 Thread Jake Johnson
On Wed, May 26, 2004 at 11:20:33AM -0400, michael young wrote:
> Hi,
> a file called a.php prints "hello" to the browser then calls b.php 
> which prints "goodbye" to the browser.
> the output looks like this:
> 
> hello
> goodbye
> 
> how do I clear the screen so the end results looks like this:
> 
> goodbye
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
Try using redirect to b.php
-- 
Jake Johnson
http://www.plutoid.com

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