[PHP] image uploads - part 2

2004-11-06 Thread Jaskirat Singh
Thanks Robby Russell, Jason Wong , Greg Donald, raditha dissanayak and every one else who answered part 1 of my email concerning image uploads. It was about where to store images uploaded by website users and question was database vs filesystem and dedicated vs shared hosting and the conclusion

[PHP] image uploads - part 2

2004-11-06 Thread Jaskirat Singh
Thanks Robby Russell, Jason Wong , Greg Donald, raditha dissanayak and every one else who answered part 1 of my email concerning image uploads. It was about where to store images uploaded by website users and question was database vs filesystem and dedicated vs shared hosting and the conclusion

[PHP] image files - upload and managment

2004-10-30 Thread Jaskirat Singh
Hi People, I am writing a web app on LAMP. The app is sort of yellow pages where people can login and post advertisments with pictures. App needs to allow users to upload pictures. (jpg and gif), needs to create thumbnails of those pictures and to store thumbnails and full pictures. App needs

[PHP] Data management tool

2004-07-27 Thread Jaskirat Singh
Hi Everyone, I am looking for a tool that lets me do simple data managment ie. edit,update,insert and delete records in tables of a database. I am kinda fed up of writing those php scripts for back ends of websites over and over :). I am looking for some thing generic to replace that if

[PHP] php training tips

2004-07-07 Thread Jaskirat Singh
Hello, I am a PHP coder for the last 4 years doing mostly PHP MySQL stuff. Off late I have been requested by a number of programmers and students to teach PHP. I am wondering how different teaching is from coding and how to design the contents of a 1-2 week training course. I am planning to begin

[PHP] Re: Re: sessions getting destroyed for *Some* clients

2004-04-20 Thread Jaskirat Singh
I do not think it is the server name issue. I used www.original-remote-control.co.uk for testing ..and I have done that scores of times now :) .. I do not use setcookie .. I just call session_start() in the beginning to set the cookie for session. Jas -- Make sure it's

[PHP] sessions getting destroyed for *Some* clients

2004-04-19 Thread Jaskirat Singh
Hi Guys, I have some thing weird happening with sessions here. They are getting destroyed/reset for *SOME* clients. I wrote a shopping cart which obviously needs sessions to work. It works perfectly fine on my development server .. but when I move it to my production server it starts behaving

Re: [PHP] Get nice variables from POST

2004-03-12 Thread Jaskirat Singh
if (is_array($_POST)) { foreach($_POST as $name=$value) { ${$name} = $value; } } or use this if (is_array($_POST)) { extract($_POST); } Jaski __ Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster http://search.yahoo.com -- PHP General

Re: [PHP] Php page runs from one computer but not another

2002-08-19 Thread Jaskirat Singh
Hi, I can run the same page on the machine with the problem if I simply rename it. If you could tell what the name was when it didn't work and what when it worked. If by rename you mean change of extension like say from php3 to php then it indicates that apache config file (I am not sure

[PHP] return value from recursive function

2001-07-29 Thread Jaskirat
Hi, How to get return value from a recursive function .. here is the test code which I was trying ? function abc_recurse() { static $i = 1; echo $i; $i++; if ($i == 4) return (xyz); abc_recurse(); } $returnvalue = abc_recurse(); echo $returnvalue; ?

Re: [PHP] location

2001-02-17 Thread jaskirat
make a function which validates users. Then where ever you want to restrict access just call that function before other things .. and it will do the trick where ever you need .. no if statements needed. HTH Jaskirat At 11:47 PM 2/16/01 -0800, Brandon Feldhahn wrote: how would i make somthing

[PHP] more on trimming

2001-02-16 Thread jaskirat
n the end which may still remain. But I feel its still not a fool proof solution because there may be two spaces in between words some where also which will then be clubbed together. Any body has a better idea. Jaskirat At 09:51 PM 2/16/01 -0500, you wrote: Trim() will in fact only st