pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[OT] PHP for ASP programmers
8+ messages / 8 participants
[nested] [flat]

* [OT] PHP for ASP programmers
@ 2003-02-03 10:16  Ludwig Lim <lud_nowhere_man@yahoo.com>
  0 siblings, 6 replies; 8+ messages in thread

From: Ludwig Lim @ 2003-02-03 10:16 UTC (permalink / raw)
  To: pgsql-php


Hi:

   Does any one know of sites that show equivalent PHP
function for their ASP counterparts? I've tried
searching google but I could not find any.

   How does one "redirect" in PHP. I've use
combination of echo and META tags, but I'm not sure if
this is the standard practice for PHP programmers.

Thank you very much,
ludwig.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: [OT] PHP for ASP programmers
@ 2003-02-03 10:43  Andrew McMillan <andrew@catalyst.net.nz>
  parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
  5 siblings, 0 replies; 8+ messages in thread

From: Andrew McMillan @ 2003-02-03 10:43 UTC (permalink / raw)
  To: Ludwig Lim <lud_nowhere_man@yahoo.com>; +Cc: pgsql-php

On Mon, 2003-02-03 at 23:16, Ludwig Lim wrote:
> Hi:
> 
>    Does any one know of sites that show equivalent PHP
> function for their ASP counterparts? I've tried
> searching google but I could not find any.
> 
>    How does one "redirect" in PHP. I've use
> combination of echo and META tags, but I'm not sure if
> this is the standard practice for PHP programmers.

I don't know about ASP -> PHP, sorry.

I redirect in PHP as:

header( "Location: http://some.other.website/page"; );


I had to abuse one of our younger programmers recently for using
redirects as if they were GOTO's - I sincerely hope you're not going to
do that with it :-)

Cheers,
					Andrew.
-- 
---------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/         PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201     MOB: +64(21)635-694    OFFICE: +64(4)499-2267
           Survey for nothing with http://survey.net.nz/ 
---------------------------------------------------------------------




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: [OT] PHP for ASP programmers
@ 2003-02-03 11:07  Adrian Tineo <adriantineo@softhome.net>
  parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
  5 siblings, 0 replies; 8+ messages in thread

From: Adrian Tineo @ 2003-02-03 11:07 UTC (permalink / raw)
  To: Ludwig Lim <lud_nowhere_man@yahoo.com>; pgsql-php

Hi
>    Does any one know of sites that show equivalent PHP
> function for their ASP counterparts? I've tried
> searching google but I could not find any.

Don't know about this.

>    How does one "redirect" in PHP. I've use
> combination of echo and META tags, but I'm not sure if
> this is the standard practice for PHP programmers.

I use:
header("Location: script.php"); // Before any output to the page or it will
give "headers already sent" error.
Check the docs.

Adrian Tineo




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: [OT] PHP for ASP programmers
@ 2003-02-03 12:45  Christopher Kings-Lynne <chriskl@familyhealth.com.au>
  parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
  5 siblings, 0 replies; 8+ messages in thread

From: Christopher Kings-Lynne @ 2003-02-03 12:45 UTC (permalink / raw)
  To: Ludwig Lim <lud_nowhere_man@yahoo.com>; +Cc: pgsql-php

You go:

header("Location: www.postgresql.org");
exit;

Chris

On Mon, 3 Feb 2003, Ludwig Lim wrote:

>
> Hi:
>
>    Does any one know of sites that show equivalent PHP
> function for their ASP counterparts? I've tried
> searching google but I could not find any.
>
>    How does one "redirect" in PHP. I've use
> combination of echo and META tags, but I'm not sure if
> this is the standard practice for PHP programmers.
>
> Thank you very much,
> ludwig.
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>




^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: [OT] PHP for ASP programmers
@ 2003-02-03 13:01  Duncan Adams (DNS) <duncan.adams@vcontractor.co.za>
  0 siblings, 0 replies; 8+ messages in thread

From: Duncan Adams (DNS) @ 2003-02-03 13:01 UTC (permalink / raw)
  To: pgsql-php

remember that u can have nothing exported (not even a space) to the web browser or u will get an error "header already send".

if u need to redirect after sending some thing to the browser i use (don't know any other way) javascript 

window.location.href('<url>');

-----Original Message-----
From: Christopher Kings-Lynne [mailto:chriskl@familyhealth.com.au]
Sent: Monday, February 03, 2003 2:45 PM
To: Ludwig Lim
Cc: PostgreSQL Mailing List
Subject: Re: [PHP] [OT] PHP for ASP programmers


You go:

header("Location: www.postgresql.org");
exit;

Chris

On Mon, 3 Feb 2003, Ludwig Lim wrote:

>
> Hi:
>
>    Does any one know of sites that show equivalent PHP
> function for their ASP counterparts? I've tried
> searching google but I could not find any.
>
>    How does one "redirect" in PHP. I've use
> combination of echo and META tags, but I'm not sure if
> this is the standard practice for PHP programmers.
>
> Thank you very much,
> ludwig.
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: [OT] PHP for ASP programmers
@ 2003-02-03 15:59  Zak Greant <zak@mysql.com>
  parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
  5 siblings, 0 replies; 8+ messages in thread

From: Zak Greant @ 2003-02-03 15:59 UTC (permalink / raw)
  To: Ludwig Lim <lud_nowhere_man@yahoo.com>; +Cc: pgsql-php

On Mon, Feb 03, 2003 at 02:16:39AM -0800, Ludwig Lim wrote:
> 
> Hi:
> 
>    Does any one know of sites that show equivalent PHP
> function for their ASP counterparts? I've tried
> searching google but I could not find any.

  Try using ASP2PHP with lists of ASP function names - that should help
  a bit. See http://asp2php.naken.cc/


  Cheers!
-- 
Zak Greant <zak@mysql.com> | MySQL Advocate |  http://zak.fooassociates.com

"Gosh, Batman. The nobility of the almost-human porpoise."
                                                    --Robin, the Boy Wonder



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: [OT] PHP for ASP programmers
@ 2003-02-03 17:44  Bruno Wolff III <bruno@wolff.to>
  parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
  5 siblings, 0 replies; 8+ messages in thread

From: Bruno Wolff III @ 2003-02-03 17:44 UTC (permalink / raw)
  To: Ludwig Lim <lud_nowhere_man@yahoo.com>; +Cc: pgsql-php

On Mon, Feb 03, 2003 at 02:16:39 -0800,
  Ludwig Lim <lud_nowhere_man@yahoo.com> wrote:
> 
>    How does one "redirect" in PHP. I've use
> combination of echo and META tags, but I'm not sure if
> this is the standard practice for PHP programmers.

Using a meta-refresh header in html to do redirection isn't a good idea. The
correct way is to use a location header in the response and an appropiate
response code (indication if the redirection is temporary or permanent).



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: [OT] PHP for ASP programmers
@ 2003-02-03 18:45  Steve Crawford <scrawford@pinpointresearch.com>
  parent: Ludwig Lim <lud_nowhere_man@yahoo.com>
  5 siblings, 0 replies; 8+ messages in thread

From: Steve Crawford @ 2003-02-03 18:45 UTC (permalink / raw)
  To: Ludwig Lim <lud_nowhere_man@yahoo.com>; pgsql-php

Not really documentation but I suppose you could run asp2php (search for it 
on freshmeat.net) and look at the converted output.

Cheers,
Steve


On Monday 03 February 2003 2:16 am, Ludwig Lim wrote:
> Hi:
>
>    Does any one know of sites that show equivalent PHP
> function for their ASP counterparts? I've tried
> searching google but I could not find any.
>
>    How does one "redirect" in PHP. I've use
> combination of echo and META tags, but I'm not sure if
> this is the standard practice for PHP programmers.
>
> Thank you very much,
> ludwig.
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html



^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2003-02-03 18:45 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 10:16 [OT] PHP for ASP programmers Ludwig Lim <lud_nowhere_man@yahoo.com>
2003-02-03 10:43 ` Andrew McMillan <andrew@catalyst.net.nz>
2003-02-03 11:07 ` Adrian Tineo <adriantineo@softhome.net>
2003-02-03 12:45 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2003-02-03 15:59 ` Zak Greant <zak@mysql.com>
2003-02-03 17:44 ` Bruno Wolff III <bruno@wolff.to>
2003-02-03 18:45 ` Steve Crawford <scrawford@pinpointresearch.com>
2003-02-03 13:01 Re: [OT] PHP for ASP programmers Duncan Adams (DNS) <duncan.adams@vcontractor.co.za>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox