Re: [PHP] File upload problem

2003-02-10 Thread Gurhan Ozen
On Sun, 2003-02-09 at 19:43, Jason Wong wrote: On Monday 10 February 2003 05:56, Gurhan Ozen wrote: You need to specifye the MAX_FILE_SIZE value as a hidden argument to the form.. See: http://www.php.net/manual/en/features.file-upload.php You don't. If you can show otherwise please

Re: [PHP] File upload problem

2003-02-09 Thread Gurhan Ozen
Hi, You need to specifye the MAX_FILE_SIZE value as a hidden argument to the form.. See: http://www.php.net/manual/en/features.file-upload.php Gurhan On Mon, 2003-06-30 at 15:05, John M wrote: Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line

Re: [PHP] encoding problems

2003-02-09 Thread Gurhan Ozen
Hi Adam, I am not sure if my solution will work for you, because i don't know anything about your language, so i couldn't be sure of the results of the test:) You can get around that program by encoding the html page.. Add this lines between your head tags on the html pages: meta

Re: [PHP] multiple file upload, yet again

2003-02-09 Thread Gurhan Ozen
Hi David, I know that there is an php application doing multiple file uploading at once which is open source.. The application is san franscisco indymedia's news publishing system. You might wanna download it at: http://tech.sfimc.net/download.php and scrutinize the source code.. I am very sure

Re: [PHP] finding next and previous db entries

2002-09-05 Thread Gurhan Ozen
You have to use recursive functions for this. You can write one.. function linkchecker($id) { $query=SELECT COUNT(*) AS mycount FROM tablename WHERE id=.$id.; $result=mysql_query($query); $row=mysql_fetch_array($result); $nextid = $id + 1; if (($row[mycount]) 0 ) {

Re: [PHP] ending a session

2002-09-05 Thread Gurhan Ozen
You can end the session by using function session_destroy(). See: http://www.php.net/manual/en/function.session-destroy.php For general information on how PHP handles sessions see: http://www.php.net/manual/en/ref.session.php Hope this helps. Gurhan On Thu, 2002-09-05 at 17:17, Raphael

Re: [PHP] ending a session

2002-09-05 Thread Gurhan Ozen
-09-05 at 17:32, Raphael Hamzagic wrote: Of course Gurhan, I have read all the php manual. How can I send a message when the user closes the browser to destroy the session? Thanks in advance Raphael Gurhan Ozen [EMAIL PROTECTED] wrote in message 1031261344.5091.266.camel@LOCALHOST

Re: [PHP] ending a session

2002-09-05 Thread Gurhan Ozen
A little addition/clarification, I mean in the main page, have the javascript open up a new window with logout.php file when the user closes the browser. Gurhan On Thu, 2002-09-05 at 18:04, Gurhan Ozen wrote: Ohhh, I see what you are looking for.. You have to play around with some javascript

Re: [PHP] defining vars within functions as global

2002-09-05 Thread Gurhan Ozen
You can either use global keyword or put the variable into $GLOBALS[] array.. See: http://www.php.net/manual/en/language.variables.scope.php Gurhan On Thu, 2002-09-05 at 23:52, Justin French wrote: Hi, I'd like to be able to define multiple variables within a function, and have it

Re: [PHP] php and classes

2002-08-15 Thread Gurhan Ozen
Where does it fail?? By the way seems like you have forgotten the parenthesises.. Try: $temp = new Relic(); $temp-SetName(test); $temp-DebugPrint(); Hope this helps.. Gurhan Pafo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... i reed thru my code and i noticed that it wasent

Re: [PHP] adding Databases

2002-07-26 Thread Gurhan Ozen
You don't let PHP know that it is installed. You just have to make sure that PHP is supporting mysql functions (compiled with mysql support) and start using mysql function.. Check out what phpinfo() prints , whether or not there is mysql related info in its output.. Gurhan Joel Lopez [EMAIL

Re: [PHP] RegEx question

2002-07-02 Thread Gurhan Ozen
eregi(php$, $stringtobecompared); See: http://www.php.net/manual/en/ref.regex.php Gurhan - Original Message - From: David Busby [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Tuesday, July 02, 2002 4:49 PM Subject: [PHP] RegEx question List, How can I regex to compare

Re: [PHP] Help - I'm New

2002-07-02 Thread Gurhan Ozen
Hi Kit, For your first question, take a look at: http://www.php.net/manual/en/installation.php and click on the windows links.. For your second question, I am really not sure what you are asking.. What exactly do you want to do? Just add a form to a php page? or have a form automatically added by

[PHP] RE: print on top

2002-04-17 Thread Gurhan Ozen
Hi Jule, You need to sort your records with ORDER BY clause . I don't know what your table looks like and obviously don't know if you have suitable columd for it.. Say you have a newsid field defined with int datatype with auto_increment property, then you can issue your statement as SELECT ..

[PHP] RE: [PHP-DB] Random Selecting from mySQL

2002-03-13 Thread Gurhan Ozen
are you just looking for a way to display 10 results per page? If yes then you can just use LIMIT to limit your result to 10 .. So, for the first page, you can do SELECT LIMIT 1, 10; and for the second page SELECT ... LIMIT 11, 20 etc etc . You can sure use ORDER BY with LIMIT to to sort

[PHP] RE: [PHP-DB] Random Selecting from mySQL

2002-03-13 Thread Gurhan Ozen
page, but that doesnt work when you want to do a ORDER BY rand() query. Gurhan Ozen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... are you just looking for a way to display 10 results per page? If yes then you can just use LIMIT to limit your result to

[PHP] RE: [PHP-DB] Difficulty on how to extract data out of a text withstring functions.

2002-03-06 Thread Gurhan Ozen
Hi Andy, The little snippet you showed from the text file made me think that the data layout for each country is not consistent. For example: For Algeria there is the country name and right underneath goes the info about yellow fever and malaria as opposed to American Samoa where underneath the

[PHP] RE: [PHP-DB] Difficulty on how to extract data out of a text withstring functions.

2002-03-06 Thread Gurhan Ozen
and osx to do this. The question is what would be the fastest way. I never heared of unix shell scripting, but I asume it is something what youwould call a batch file in win or apple script on mac. Thanx again for your help. Andy Gurhan Ozen [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

[PHP] RE: [PHP-DB] Help on PHP vs JAVA

2002-02-21 Thread Gurhan Ozen
That's a pretty naive question to ask. For what specific task do you want to compare them ? Besides if you can't write a comparison article on PHP vs. JAVa , how can you set the outcome in PHP's favor? I would advise you to sit down and try to do the task both in Java and PHP , and compare both

[PHP] RE: [PHP-DB] [PHP] PHP and MYSQL Security`

2002-01-27 Thread Gurhan Ozen
The actual content of the .php files won't be seen from the net since it is server side scripting language.. But if you are still concerned you can put database connection info into another file (preferably .php file) and place it somewhere outside your web directory and access it thru require()