PDA

View Full Version : ASP to PHP Help



308holes
February 21st, 2002, 10:56
im trying to get this asp scritp from brainjar.com to php because my server is linux and only supports php and cgi can some one conver this into php for me please??? ill add thanks or like to you site for your help


<% 'Set scheme cookie.

Response.Buffer = true
if Request.QueryString("scheme") <> "" then
Response.Cookies("scheme") = Request.QueryString("scheme")
Response.Cookies("scheme").Expires = _
FormatDateTime(DateAdd("d", 60, Now()))
else
Response.Cookies("scheme").Expires = _
FormatDateTime(DateAdd("d", -1, Now()))
end if

'Send back to referring page.

Response.Redirect(Request.ServerVariables("HTTP_REFERER")) %>


[Include Style Sheet[
<link href="/common/main.css" rel="stylesheet" type="text/css">
<% if Request.Cookies("scheme") <> "" then %>
<link href="/common//main.css"
rel="stylesheet" type="text/css">
<% end if %>
[/Include Style Sheet]

Please thank for your help

niv
February 21st, 2002, 11:00
Have you tried using asp2php? :confused2

http://asp2php.naken.cc/

308holes
February 21st, 2002, 11:32
ya i just tryed it It keeps telling me Error in Theme.asp so can you or some one conver this please?

maelzx
February 21st, 2002, 19:59
its look like the script is for set a cookies and redirect back to previous page (where it redirect to this page - login or something else i think).

another one is just load a different css for cookied user or not.

thats all that i can see :P

maybe you just ask people to script for you PHP script that does the same function ... its alot better than *translate* ASP to PHP ;)

308holes
February 22nd, 2002, 01:18
What im trying to do is get a css scheme chooser like this
http://www.brainjar.com/asp/schemes/
but for php because my server dosent support ASP

308holes
February 22nd, 2002, 13:17
Sorry i know Bumpping is not allowed but i need this *Bump*