[PHP] "VERY NEWBIE" php_* mod_* --with- question

2002-10-02 Thread Aleksandar
Hello List for the first time, I am very new to php but impressed from what i've seen so far. I managed to configure php w/ mysql and db2 do some selects, inserts ... What I am inerested in is what are all those mod_php* and php_* on the distribution's CDs e.g. if they are installed how do i ge

[PHP] Grasping class / controllers

2011-03-30 Thread Aleksandar Skodric
Hi all, I am using Codeigniter framework, tho' I believe my question is more PHP related in general. Problem I am having is following. Codeigniter (CI) uses general class CI_Controller for all functions. I have extended this controller with: abstract class CORE_Controller extends CI_Controll

Re: [PHP] Grasping class / controllers

2011-03-30 Thread Aleksandar Skodric
Hi, Yes indeed you are correct. Found out that framework was loading libraries from array in specific order, whereby one overrules the next one. Anyway, problem solved by rearranging the order of the array :) Thanks anyway :) On 03/30/2011 04:13 PM, Ashley Sheridan wrote: "Aleks

Re: [PHP] Public Announcement

2007-09-11 Thread Aleksandar Vojnovic
Hahaha oh wow. -Xander Stut wrote: Sascha Braun - CEO @ Braun Networks wrote: hi stut, thank you for your advices. Ok, just so it's perfectly clear to you... I'm taking the piss. Still, since you provided apparently serious answers I'm going to continue to enjoy myself... - Screent

Re: [PHP] remove page referrer

2007-09-11 Thread Aleksandar Vojnovic
You can not control this, but you might be able to control the page where the user is going back through the third page :) like this: page 1: submit to page 2 page 2: header('Location: /page 3'); page 3: the final page if the user clicks back he is going to end up on page 2 which has location

Re: [PHP] Re: the opposite of a join?

2007-10-03 Thread Aleksandar Vojnovic
I would also suggest to limit yourself to things you actually need not to select the whole table. Aleksandar Jim Lucas wrote: Colin Guthrie wrote: Martin Marques wrote: SELECT * FROM company WHERE id NOT IN (SELECT companyID FROM contacts); Not ideal as has been mentioned else where in

[PHP] Re: [PHP-DB] Re: [PHP] Re: the opposite of a join?

2007-10-03 Thread Aleksandar Vojnovic
It seems you missed my point :) if you would need all the data then select them all, but if you need only partial data from the table then you could limit yourself to that specific columns. I doubt everybody need everything all the time. True? Aleksandar Chris wrote: Aleksandar Vojnovic

Re: [PHP] inserting ´ in a db

2007-10-03 Thread Aleksandar Vojnovic
Pick one: http://si2.php.net/manual/en/function.htmlentities.php http://si2.php.net/manual/en/function.addslashes.php http://si.php.net/mysql_escape_string Aleksandar Yamil Ortega wrote: Hi list, good day. I have a simple script that inserts text on a mysql table, that has a field named

Re: [PHP] Empty Array?

2007-10-05 Thread Aleksandar Vojnovic
I think the $lock_result is just a resource #id you haven't fetched any data yet. True? Aleksander Dan Shirah wrote: Ah, what a lovely case of the Friday morning brain farts! I have a query that selects some data from a table based on the current ID selected. If the query does not return any

Re: [PHP] error messages

2007-10-05 Thread Aleksandar Vojnovic
try putting this on the top of your PHP page tbt wrote: yes it is pscott wrote: On Fri, 2007-10-05 at 00:32 -0700, tbt wrote: I added the following lines to the top of my script but still no error messages show up on the browser. When a php error occurs the entire page is still sho

Re: [PHP] error messages

2007-10-05 Thread Aleksandar Vojnovic
Maybe display errors is set on off? Aleksander tbt wrote: yes it is pscott wrote: On Fri, 2007-10-05 at 00:32 -0700, tbt wrote: I added the following lines to the top of my script but still no error messages show up on the browser. When a php error occurs the entire page is stil

Re: [PHP] Empty Array?

2007-10-05 Thread Aleksandar Vojnovic
$request_id = $_GET['id']; <--- I suppose this would be an int. True? If so then add: Aleksandar marek wrote: Even better: ".mssql_get_last_message()); } ?> Dan Shirah wrote: Okay, gotcha! I changed it to this and it works: $lock_result = mssql_query

Re: [PHP] A two flavored post

2007-10-05 Thread Aleksandar Vojnovic
*Example 2* function appendMeBaby(aVar, bVar){ self.location.href = 'img.php?s=' + aVar + '&someOtherVar=' + bVar; } Click here Hope this helps Aleksandar Daniel Brown wrote: On 10/5/07, tedd <[EMAIL PROTECTED]> wrote: At 11:18 PM -0400 10/4/07, Nathan Nobbe w

Re: [PHP] Template system in PHP

2008-02-12 Thread Aleksandar Vojnovic
Because its painful and fun at the same time :) Aleksandar Quoting Nate Tallman <[EMAIL PROTECTED]>: Ditto on Eval() PHP is already a templating system. Why go the long way around? On Feb 12, 2008 10:13 AM, Greg Donald <[EMAIL PROTECTED]> wrote: On 2/12/08, Xavier de Lap

Re: [PHP] Re: Question about development

2008-02-12 Thread Aleksandar Vojnovic
Could you explain this a little better - "...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language"? Aleksandar Quoting Jason Pruim <[EMAIL PROTECTED]>: On Fe

Re: [PHP] Re: Uploading PDF

2008-02-15 Thread Aleksandar Vojnovic
Upload error 2 occurs when the file size exceeds the maximum allowed upload size. Aleksander David Robley wrote: Pastor Steve wrote: Greetings, I am getting an error when I am trying to upload a PDF file through a script. When I do a print_r($_FILES) I get the following: Array ( [

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Aleksandar Vojnovic
If you are running Apache you could use a rewrite rule for such a case. Example below RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(my|folder|examples) /https/://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Aleksander Per Jessen wrote: tedd wrote: Sometimes I feel like a child h

Re: [PHP] crc check for JPEG file exists

2008-02-26 Thread Aleksandar Vojnovic
I would rather use md5_file() for file uniqueness. Aleksander Olav Mřrkrid wrote: hello is crc32() an acceptable way of managing whether a JPEG file exists (in a database or similar collection)? i mean doing a crc32() on the binary data of the JPEG file, and then check the database if there i

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-28 Thread Aleksandar Skodric
Hi, Yes, /tmp is on another disk then the final directory. I shall move it to the same disk (tmp_upload_dir) right now. Question: can I define tmp_upload_dir to be otherwise just for one host in apache conf, like: php_ini upload_tmp_dir /some/dir I am not sure that this works for all PHP i

Re: [PHP] working with ini files

2006-02-28 Thread Aleksandar Skodric
things in database, if you have that option. Regards, Aleksandar Benjamin Adams wrote: I have created my own ini file. I can read the values into an array fine. but What I want to do is change a value in the ini file. Example file.ini dog = 3 cat = 4 fish = 7 altered file.ini dog = 3 cat = 5

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-03-01 Thread Aleksandar Skodric
php.ini value. Chris wrote: Aleksandar Skodric wrote: Hi, Yes, /tmp is on another disk then the final directory. I shall move it to the same disk (tmp_upload_dir) right now. Question: can I define tmp_upload_dir to be otherwise just for one host in apache conf, like: php_ini