Re: [PHP] Sending htm as it's being generated

2005-05-08 Thread Josip Dzolonga
es/000385.php would be fine. Google for more, there are tons of AJAX articles out there ;-) Hope this helps, Josip Dzolonga http://josip.dotgeek.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] select statement

2005-05-08 Thread Josip Dzolonga
be spoofed only if you have access to session data, which is held on the server-side, so only someone with server access can spoof. Any other way of doing it ? Josip Dzolonga http://josip.dotgeek.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shared library in php

2005-04-12 Thread Josip Dzolonga
On ÐÑÐ, 2005-04-12 at 14:37 +0200, Josip Dzolonga wrote: > On ÐÐÐ, 2005-04-11 at 19:34 -0300, Ãngelo A. Camargo wrote: > > > If you have NONE of those, you probably are trying to violate some kind of > > > license. Don't do that. :-v > > Do not pay, to some

Re: [PHP] Mail problem with PEAR

2005-04-12 Thread Josip Dzolonga
th PEAR's package for sending mail, but I'm more than sure that it has feature to set headers. Looking at the manual ( www.php.net/mail ) would be also an excellent idea, since there are this kind of code examples. Hope this helps, Josip Dzolonga http://josip.dotgeek.org -- PHP Genera

Re: [PHP] Is there any other place to start php module?

2005-04-12 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 20:57 -0400, Teng Wang wrote: > So I guess there is some other place to start php4 already. > Where can I find it? PHP is probably installed as a static module. For disabling PHP support I think you'll need to recompile Apache. Hope this helps, Josip Dz

Re: [PHP] shared library in php

2005-04-12 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 19:34 -0300, Ãngelo A. Camargo wrote: > > If you have NONE of those, you probably are trying to violate some kind of > > license. Don't do that. :-v Do not pay, to some reverse engineering :-) Josip Dzolonga http://josip.dotgeek.org -- PHP General M

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Josip Dzolonga
he user that controls apache either "full" or "modify" > permissions to the Web directory. That's correct. And also, are you using double slashes \\ instead of a single slash / ? Josip Dzolonga http://josip.dotgeek.org -- PHP General Mailing List (http://w

Re: [PHP] deleting $_SESSION

2005-04-11 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 15:43 +0100, AndreaD wrote: > I have a session variable called > > $_SESSION['total'] the problem is I can't delete/reset it. I have tried > > $_SESSION['total']= 0; > > $_SESSION['total']= ""; ww

Re: [PHP] Question about fsockopen

2005-04-10 Thread Josip Dzolonga
look here : http://sourceforge.net/projects/snoopy/ , I'm not much sure but I think that it has that feature. -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Viewing a specific item within a php web-page?

2005-04-10 Thread Josip Dzolonga
ent first, to prevent SQL Injections : $id = $_GET['id']; if($id == strval(intval($id))) { /* Okay, do the query */ } else die('Looser !'); Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Including class of Exception in exception message

2005-04-09 Thread Josip Dzolonga
On ÑÐÐ, 2005-04-09 at 11:27 -0400, C Drozdowski wrote: > where CODE is some php code that refers to the class of the exception > being thrown. Take a look at magic constants [ http://www.php.net/manual/en/language.constants.predefined.php ]. Hope this helps, Josip Dzolong

Re: [PHP] Storing password in cookie

2005-04-09 Thread Josip Dzolonga
d, in most of the cases they're brute forcing , so if the user has an easy-to-guess password, it _can_ be revelead (brute-forcing numbers, dictionary words). I don't get the point, _why_ to store a password hash on the client-side as a cookie, when you can do it on the server-side.

Re: AW: [PHP] Re: pasring complex string question

2005-04-08 Thread Josip Dzolonga
7;, too lazy to google now :)), search Amazon. -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable Passing

2005-04-08 Thread Josip Dzolonga
ou a lot too. If you get stuck somewhere, state your questions here :) Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php wget: Return an empty file

2005-04-08 Thread Josip Dzolonga
ing a URL, so $contents = file_get_contents($url); is going to to the job perfectly ! Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php wget: Return an empty file

2005-04-08 Thread Josip Dzolonga
Chris Blake wrote: Greetings PHP(eople), I have a wget process that runs to download a file from a web site, Why would you do that ? There're bultin functions in PHP for doing it. -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] class constructor & polymorphism

2005-04-08 Thread Josip Dzolonga
extending two classes from the base would be a good work-around. Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] noob need help for sessions

2005-04-07 Thread Josip Dzolonga
;]); I also suggest you to take a look here [ http://www.php.net/session ] and here [ http://www.php.net/session ]. Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple Alert Message then Redirect?

2005-04-07 Thread Josip Dzolonga
Ryan A wrote: Meta refresh too would do the job quite nicely Cheers, Ryan Yes it will, but he will still have to use JavaScript in order to show that message box ( the alert function ) ;-) -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http

Re: [PHP] Simple Alert Message then Redirect?

2005-04-07 Thread Josip Dzolonga
ing like : alert("Message"); window.location = "<a href="http://www.google.com"">http://www.google.com"</a>;; should do the work ;-). Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing L

Re: [PHP] File_get_contents()

2005-04-07 Thread Josip Dzolonga
Jeff McKeon wrote: Does anyone know if it's possible to have file_get_contents() accept a file handle? Why would you need that ? -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] zipfile problems

2005-04-07 Thread Josip Dzolonga
from the script, take a look at this function www.php.net/error_reporting , just don't forget to put that on top of the script ;-) -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Josip Dzolonga
Ryan A wrote: what function should i lookup/use? Thanks, Ryan This will do the job : $array = array_values($array); Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Josip Dzolonga
, Ryan The code follows : if (in_array($number, $data_recs)) { $key = array_search($number, $data_recs); // Get the key unset($data_recs[$key]); // Unset the variable } -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Josip Dzolonga
= array('first_func', 'second_func', 'third_func') { if(in_array($_GET['func'], $allowed) { /* it's okay */ call_user_func($_GET['func']); } else { die('Next time, sucker'; } } Hope this helps, -- Josip Dzolonga http://josip.dot

Re: [PHP] Preventing automated account creation

2005-04-06 Thread Josip Dzolonga
toring its hash in a cookie can be also pretty fine, but storing it in a GET variable is more than stupid. Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what are {} used for in php?

2005-04-06 Thread Josip Dzolonga
Jacques wrote: I have often seen php code included inside braces. What does this mean or do? Jacques A code block, rtfm :-) -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Josip Dzolonga
nject something malicious :-). -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Josip Dzolonga
} This is a good way to start, I think. Filtering the input first would be a nice idea too, especeally if there're more input fields ;-) -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to call a static class and method dynamically

2005-04-04 Thread Josip Dzolonga
You can call the function statically using the double colon ( :: ) operator : MyClass::static_method(); I suggest you to take a good look here http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List

Re: [PHP] HUMAN CHECK without url/session cookie/hidden input, etc.

2005-04-03 Thread Josip Dzolonga
nah ? :) Store the number in a session variable and check if both match or not (you can store the md5 value too in a Cookie). Hope that helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to insert and select images from postgres db

2005-04-03 Thread Josip Dzolonga
base64_decode . -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image_type

2005-04-03 Thread Josip Dzolonga
file-upload and you can also print_r/var_dump($_FILES); Hope that helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eregi problem

2005-04-03 Thread Josip Dzolonga
perfect) P.S. Take a look here http://www.php.net/manual/en/language.types.array.php#language.types.array.donts -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple CMS program

2005-03-30 Thread Josip Dzolonga
, update a calendar using a Web based editor. Not a full fledged portal CMS. Also, it would be nice if it was written in PHP and use MySQL for the server DB. Has anyone had experience with such a CMS? Todd http://www.cmsmatrix.org/ -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com

[PHP] Re: filtering uploaded files

2005-03-29 Thread Josip Dzolonga
You can check this function too : http://www.php.net/mime_content_type . It's not platform specific :). Btw, mime_magic extension has to be enabled. Hope that this helped. -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net

RE: [PHP] rss feeder using php?

2005-01-28 Thread Josip Dzolonga
ished it (stopped at caching and atom support) because I haven't got enough free time (the school-term has ended ;-(). Take a look at MagpieRSS ( http://magpierss.sourceforge.net/ ). -- Josip Dzolonga, dzolonga at mt dot net dot mk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] [NEWBIE] Trying to create a function from an existing script

2005-01-27 Thread Josip Dzolonga
file (before the move_uploaded_file function). It might _NOT_ contain a slash between $store_dir and $HTTP_POST_FILES["$name"]['name']. -- Josip Dzolonga, dzolonga at mt dot net dot mk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Linux PHP CLI and Environment variables

2005-01-26 Thread Josip Dzolonga
On Wed, 2005-01-26 at 22:38 -0700, Michael Gale wrote: > I have searched every where ...is this possible ? Well, take a look here http://www.php.net/manual/en/function.shell-exec.php . So you can exec an echo command and get the result. -- Josip Dzolonga, dzolonga at mt dot net dot mk --

Re: [PHP] How can I convert UTF-8 strings into UTF-16

2005-01-26 Thread Josip Dzolonga
On Wed, 2005-01-26 at 16:54 -0500, v0id null wrote: > So how cna I convert UTF-8 to UTF-16? > -- > llundi0v > Have you tried with iconv ? www.php.net/iconv for further details ;-) -- Josip Dzolonga, dzolonga at mt dot net dot mk -- PHP General Mailing List (http://www.