Re: [PHP] Parse error?

2003-11-15 Thread Boyan Nedkov
Frank Keessen wrote: Hi Guys, Sorry to trouble you on a saturday night (at least in The Netherlands...).. Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42)

Re: [PHP] Problem with Apache 1.3.28 / PHP 4.3.3

2003-11-14 Thread Boyan Nedkov
your question few days ago but didn't hear any reaction, so I'm reposting the same text with hope this time it will be more useful Cheers, Boyan -- Original Message Subject: Re: [PHP] Apache1.3.28 vs PHP4.3.3 Date: Thu, 06 Nov 2003 00:59:58 +0100 From: Boyan Nedkov [EMAIL PROTECTED

Re: [PHP] include/require not allowed in classes?

2003-11-14 Thread Boyan Nedkov
Ryan, Pavel, Pavel Jartsev wrote: Ryan A wrote: ... class ads_DB extends DB_Sql { var $Host = $MR_Host; var $Database = $MR_Database; var $User = $MR_User; var $Password = $MR_Password; } I think, Your problem is here. If i remember correctly, then PHP4 doesn't allow to

Re: [PHP] Help with scripts to add records to a database

2003-11-12 Thread Boyan Nedkov
Rolf Brusletto wrote: Mark wrote: Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark Mark - After the mysql_query($query); line add the following line echo mysql_error(); run the script and try to add something again, if there is an error, it will tell

Re: [PHP] OOP clarification: Messages between objects

2003-11-12 Thread Boyan Nedkov
Robert Ian Smit wrote: I am trying to implement a generic form handler that is capable of printing the form and checking the user input. I want this application to be useful in the end, but I also use it to explore OOP in PHP. .. I'd like the zipcode object to ask a question to

Re: [PHP] php and apache

2003-11-12 Thread Boyan Nedkov
Jen wrote: Hi there. New to the PHP space here and I'm trying to set things up. (if I'm on the wrong newsgroup, please let me know...) I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my computer. Next, I created a test.php file which contains: ?php phpinfo(); ? That's it

Re: [PHP] Usings functions and variables from a base class

2003-11-12 Thread Boyan Nedkov
[EMAIL PROTECTED] wrote: Hi there i am having problems using a functions from a base class in a sub class. I am using a perticular function from the base class which is private in a public function in the sub class which is checking for a variable which is set in a function in the base class.

Re: [PHP] Unique ID

2003-11-11 Thread Boyan Nedkov
Dimitri Marshall wrote: Hi there, Here's my situation: I'm making a message board and I've decided the best way to go about the structure is to have 3 tables, two of them will be Posts and Replys. Now, in order for this ti work, each post has to have a UniqueID - same with the replys. Looking at

Re: [PHP] Re: Input Validation of $_SESSION values

2003-11-06 Thread Boyan Nedkov
[snip] ... Short of any severe bugs in PHP's core, there is no way for a user of your Web application to modify session data ... [/snip] It seems that statement is not completely correct considering the topic discussed in the paper 'Session Fixation Vulnerability in Web-based Applications'

Re: [PHP] Re: Input Validation of $_SESSION values

2003-11-06 Thread Boyan Nedkov
Yes, you are right, it was my misunderstanding, sorry guys. Anyway, hope that posting was useful concerning the subject of the discussion. Boyan -- CPT John W. Holmes wrote: From: Boyan Nedkov [EMAIL PROTECTED] [snip] ... Short of any severe bugs in PHP's core, there is no way for a user

Re: [PHP] PHP Documentation procedure

2003-11-05 Thread Boyan Nedkov
http://phpdocu.sourceforge.net/ http://www.callowayprints.com/phpdoc/ http://sourceforge.net/projects/phpdocu/ http://www.stack.nl/~dimitri/doxygen/ Ahbaid Gaffoor wrote: Is there any utility that can be run against a php script to generate documentation of the functions in that script? Sort

[PHP] Re: [PHP-DB] Unsuscribe

2003-11-05 Thread Boyan Nedkov
try to do this here: http://www.php.net/mailing-lists.php [EMAIL PROTECTED] wrote: Unsubscribe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache1.3.28 vs PHP4.3.3

2003-11-05 Thread Boyan Nedkov
For getting up and running php on WinXX box you need only: LoadModule php4_module D:/PHP4.3.3/sapi/php4apache.dll AddType application/x-httpd-php .php To avoid the problem with removing 'mod_php4.c' try to find 'ClearModuleList' directive in httpd.conf and comment it, then restart the server

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Boyan Nedkov
One possible solution could be to write a simple class that will hold all data you need at one single place: class MyData { var $_resultArray; var $_rows; var $_fields; function MyData($resultArray, $rows, $fields) { $this-data = $data; $this-rowcounr = $rowcount;

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Boyan Nedkov
[snip] ... Someone also suggested I use a new class. Sounds like a good idea, but might be overkill for what I'm doing. [/snip] .. if you spend some time moving closer to the object oriented approach (php classes in this case) you may find that the development could be much more clear and

Re: [PHP] anyway to return more than one value?

2003-11-05 Thread Boyan Nedkov
sure, no point to discuss that issue here -- Robert Cummings wrote: On Wed, 2003-11-05 at 21:22, Andre Volmensky wrote: [snip] .. if you spend some time moving closer to the object oriented approach (php classes in this case) you may find that the development could be much more clear and easy

Re: [PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Boyan Nedkov
the firewall is configured to block pings from outside - security reasons - so called stealth mode Dan Anderson wrote: Some domain names on .net.au are not being resolved when I use gethostbyname. I can whois them on http://whois.ausregistry.net.au/and fine them, but they can't be pinged.

Re: [PHP] Problems using gethostbyname() to resolve *.net.au

2003-11-03 Thread Boyan Nedkov
[snip] ... I can whois them on http://whois.ausregistry.net.au/and fine them, but they can't be pinged. Anybody know why this might be? [snip] I'm just answering your question why they can't be pinged. You are perfectly right that 'gethostbyname($hostname) has nothing to do with pings as a

Re: [PHP] Showing high and low flash clips

2003-11-03 Thread Boyan Nedkov
Suppose we have a recordset $rs returned by query like that: SELECT mediaID, filename, languageID FROM yabady a INNER JOIN yohoho b on a.ID = b.ID ORDER BY mediaID then to build the array you can write: for ($i = 0; $i = $rs-getRowCount() - 1; $i++) { $row = $rs-getRow(); $data = array('mediaID'

Re: [PHP] mail() another example - error

2003-11-02 Thread Boyan Nedkov
This time your script is ok, the connection to the SMTP server is established, but because the host name of the machine that executes your php script is not a valid host name in the SMTP server's local network, the server refuses to accept your request for security reasons (smtp relaying

Re: [PHP] Templates/Separate content from presentation

2003-11-01 Thread Boyan Nedkov
/~jesusmc/cachedtpl/CachedTemplate.html http://zend.com/zend/trick/tricks-nov-2001.php Cheers, Boyan Nedkov -- Pedro Pais wrote: Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from

Re: [PHP] Object References Problem

2003-10-30 Thread Boyan Nedkov
Since i see from your code, you are trying to create an object which maintains a list (collection) of instances of another object. Is that correct? Or you are trying to inherit a class from a parent class? Then it's a little bit different story. If this is the case, just tell me and I'll

Re: [PHP] OOP, dynamic class extention

2003-10-30 Thread Boyan Nedkov
Hey guys, you can extend a _class_ from an existing _class_ but not from a _string_constant_ (Ex1 - MY_BASE_CLASS is evaluated to constant of type string) neither from a _string_variable_ (Ex2 - $my_base_class_var is a variable of type string). To be able to use different base classes with the

RE: [PHP] php's variables javascript

2002-05-27 Thread Boyan Nedkov
Try something like that: ? //$size = GetImageSize (images/$resim); $size = 222; echo script language=\JavaScript\; echo width=; echo $size; echo ;; echo /script; ? Cheers, boyan -- Boyan Nedkov [EMAIL PROTECTED] -Original Message- From: burak delice [mailto:[EMAIL PROTECTED