Re: [PHP] Re: functions and

2003-03-03 Thread Martin Johansson
it logs somone out of a session.. "Ray" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] does the function logout() log someone out of a session, or does it return the url for where they go to logout? and what about it isn't working? On Monday 03 March 2003 16:32, you wrote: > Ok t

[PHP] Re: functions and

2003-03-03 Thread Martin Johansson
Ok to make it simplier, this is what I wanna do! Logout"; function logout() { . } ?> How do I do it!!! /M > Hi > I want to call a function logout() inside an statement: > > \">logout > > function logout() > { > > } > ?> > > but this doesnt work.. how shall I do it > /M > > -- P

[PHP] functions and

2003-03-03 Thread Martin Johansson
Hi I want to call a function logout() inside an statement: \">logout but this doesnt work.. how shall I do it /M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] store images in mysql tables

2002-11-26 Thread Martin Johansson
Yes you can store images in a mysql table. But you will have to create a new binary database. You can read here how it works: http://www.phpbuilder.com/columns/florian19991014.php3 It is a easy to understand text. /Martin "Justin French" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]

[PHP] Re: Missing images

2002-11-26 Thread Martin Johansson
I had this problem when I stored my images on another webserver, and linked the images with the whole adress like http://somewhere/image.gif";> I solved the problem by copying the images to the same webserver that views the page. The last webserver was to slow to replay that it had the pictures. Ma

[PHP] Newbie: ereg

2002-11-25 Thread Martin Johansson
I still havent found a site that shows what I need. I dont think php.net explain how ereg works. I only want to publish stuff from the stringvariable $text thats inside tags looking like this This shall be visible or This shall be visible too thanks Martin -- PHP General Mailing List (http:/

[PHP] HTML page and php

2002-11-21 Thread Martin Johansson
How do I get a html page into a string variable in php? Isnt there any function working like this: $homepage = getHtmlPage(http://www.myhomepage.com/index.html); /Newbie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Thanks all for your replies! For my code, this is the best way to view variables in echo functions It is nice and easy to read while going through a lot of code. /mj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Thanks, that was new for me! /mj "Niklas lampén" <[EMAIL PROTECTED]> skrev i meddelandet 026b01c21c31$3bdab780$ba93c5c3@Niklas">news:026b01c21c31$3bdab780$ba93c5c3@Niklas... Not true. :) You can do it like this: (Ok, this is a for loop, but idea is the same) mailto:[EMAIL PROTECTED]] Sent: 25.

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
But the problem is that Im doin it inside a while loop. So I need to echo it. /mj "Niklas lampén" <[EMAIL PROTECTED]> skrev i meddelandet 025801c21c1d$55d16210$ba93c5c3@Niklas">news:025801c21c1d$55d16210$ba93c5c3@Niklas... Shorter version would be And this is not bad coding, it is actually fas

[PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Is there a way to express php variables inside an echo ' '. I want something like this to work: echo ''; I know I can write it like this: echo ''; But Its to hard to read the code like this. /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Yes!!! I got it to work! The problem was the expirationdate in the cookie: setcookie("devProcTailorCookie", "cookie value"."|".time(), 31536000); Now I set it like this: setcookie("devProcTailorCookie", "cookie value"."|".time(), time()+10); But now it doesnt work in explorer. But I would b

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Another thing! when I look in netscape/preferences/privacy&security/cookies/view Stored Cookies.. there is no cookie for my website.. isnt that strange? /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
rocCookie)){ > $tok = explode("|", $devProcCookie); > } > //Note this will only work if the global variables in your php.ini files > are turned on... > I have no idea why it can't read the index $devProcCookie in the > Cookies Array if you figure it out thoug

[PHP] Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Hi! Cookies makes me go AGHH!! Please help me with this: I am setting a cookie like this in my loginscript: setcookie("devProcCookie", "cookie value"."|".time(), 31536000); // Set cookie header("Location: inside.php"); exit; So far it works! But when I go to the inside.php page that loo