Re: [PHP] OOP in PHP
> Theoritically if Class "koneksi" is being initialized than it > prints "koneksi berhasil (connection succeeded)" but it doesn't. What "does" it? Just nothing? No warnings at all? Possibly disabled? so far rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [EMAIL PROTECTED]: Re: [PHP] what is my dns ip address]
>> Or read the contents of /etc/resolv.conf I'm not familiar with, but does any MS product have any comparable file? I remember a "host(s)" ... file somewhere below system32\etc\... but is there any resolv.conf ? I got no win machine here with me, so I can't look it up :-) > Faster for static DNS servers, but if you're using DHCP > assigned servers, > they aren't likely to be in there. [...] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] question about making modules
Maybe you should deal with some things like * Plugin-Architecture * Extension Points * States !? A look at wikipedia might give most information you need. Regards rob On Sa, Sep 01, 2007 at 11:23:31 +0200, Mark wrote: > Hey, > > i've been trying alot to make php modules (php based.. not real > modules for php in c) but i can't get it working. > > Here is a sample file: > > class moduletest > { > function text() > { > return "moduletest"; > } > } > > class test_moduletest extends moduletest > { > function text() > { > return "test_moduletest"; > } > } > > $test = new moduletest; > $test2 = new test_moduletest; > > echo $test->text(); > echo $test2->text(); > ?> > > Now what you get when running this file: > moduletest > test_moduletest > > That's logical and not the problem > The issue is that i want the test_moduletest class to overwrite > functions in moduletest but without the need for me to call the class > again. > > So the result i want with $test->text(); == "test_moduletest" > and $test must initialize the moduletest class!! not the test_moduletest > class. > > I want to use this as a (obvious) module system so that others can > extend the base class with more advanced features or improve existing > features by overwriting them. > > i did found a place where this is being done: "ADOdb Lite" but i can't > find out how that script is doing it.. > > Any help with this would be greatly appreciated > > Thanx, > Mark. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Und komm, Du brauchst nur einen Baum um 1000 Streichhölzer herzustellen. Aber Du brauchst nur einen Streichholz um 1000 Bäume abzubrennen. Meine Güte wer soll das denn jetzt verstehen? Ganz egal, komm wir bleiben noch etwas länger. Die Bedeutung zahlt ja immer der Empfänger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cant mail
Connection/Firewall ?! -- Run telnet 25, type EHLO and see if he talks to you No anonymous relaying ?! Set the From header, caus maybe your smtp doesn't relay for everyone :-) mail ($addressee, $sub, $body, 'From: [EMAIL PROTECTED]'); or write it into your php.ini at... sendmail_from NULLPHP_INI_ALL (found at http://de3.php.net/mail, Runtime Configuration) So far! Rob -- Und komm, Du brauchst nur einen Baum um 1000 Streichhölzer herzustellen. Aber Du brauchst nur einen Streichholz um 1000 Bäume abzubrennen. Meine Güte wer soll das denn jetzt verstehen? Ganz egal, komm wir bleiben noch etwas länger. Die Bedeutung zahlt ja immer der Empfänger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] accessing one object's attribute from another
Perhaps I misunderstood the problem, but I would simply... On So, Sep 09, 2007 at 10:06:15 -0400, Larry Brown wrote: > Hi all, I've be developing with a structured approach for a long time > and am working at improving my site by adding some classes etc. I > however, am running into an odd thing that I can't figure out what a > reasonable search syntax would yield the desired solution. The problem > is as follows: > > class a { > private $thisVar; public function getThisVar() { return $this->thisVar; } public function setThisVar($v) { $this->thisVar = $v; } > ... > } > > class b { > > function hello() > { echo $first->getThisVar(); > } > } > > $first = new a(); $first->setThisVar("world"); > > $second = new b(); > $second->hello(); > > > There are a number of variables and methods that are common throughout > the user's session that I'm storing in object $first. Class b has > nothing in common with a except that it needs a couple of the variables > stored in the object that is hanging around in the session. > > Is $first->thisVar the wrong way to reference that variable? How can I > get to it? > > TIA, > > Larry > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Und komm, Du brauchst nur einen Baum um 1000 Streichhölzer herzustellen. Aber Du brauchst nur einen Streichholz um 1000 Bäume abzubrennen. Meine Güte wer soll das denn jetzt verstehen? Ganz egal, komm wir bleiben noch etwas länger. Die Bedeutung zahlt ja immer der Empfänger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to get the child name from within the parent?
- Ursprüngliche Nachricht - Von: Mathijs <[EMAIL PROTECTED]> Datum: Montag, September 10, 2007 3:19 pm Betreff: [PHP] How to get the child name from within the parent? An: php-general@lists.php.net > Hello there, > > Is there a way to get the child class name from within the parent > method? Yes. > If so, how? 1) If you abandon static'ness, you can use 'get_class($this)' within parent class' func. 2) Fizzle around with some 'self' as pass over argument. 3) or else. But - I can't recognize any exigence. Could you describe *what* you wanna do so you must use this? > > Thx in advance. > > Example: > > class MyParent { > public static function start() { > // Do something like this??? > return get_child_name(); // returns 'MyChild' in this case I don't know this function. I couldn't even find it at php doc. WHAT is that ? > } > } > > class MyChild extends MyParent { > public static childStart() { public static function childStart() { > // Should return the child class name. > echo parent::start(); > } > } > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > So far. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?
Why don't you try a passthru('net apache restart') perhabs another parameter order, but I think It won't work. Stopping it might work, but restarting... On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote: > Is it possible to restart Windows Apache (service) on a PHP script? > > i have installed PHP/Apache on a Windows machine. Added the ext windows32 > service. > But could not find any how to or information online. > > Please help! > > -- > Louie Miranda ([EMAIL PROTECTED]) > http://www.axishift.com > > Security Is A Series Of Well-Defined Steps > chmod -R 0 / ; and smile :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie question - current date - time
Check out "date" function. Prints out nice local time, what you need can be made by changing the "r" option. Have a look at the manual for alternatives to "r" liek Y for year, etc... so far - Ursprüngliche Nachricht - Von: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Datum: Donnerstag, November 15, 2007 6:40 am Betreff: [PHP] Newbie question - current date - time An: php-general@lists.php.net > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and display the current time? > > I see the getdate function - but I'm not sure if this is the right > functionor how to display it > > http://www.php.net/manual/en/function.getdate.php > > -- > Thanks - RevDave > Cool @ hosting4days . com > [db-lists] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I need help handling form posting
> Jon Westcot wrote: > > > Is there a way that I can intercept the click of the "Upload" > > button, have it update a field (probably a hidden one) with a > > date/time stamp, and then have that value included in the $_POSTed > > values? > > Sure, javascript is the answer. But don't forget to send a server timestamp within the form. Just for the case that server time and client time may differ in some minutes (or even timezone). So on clientside, you just ADD the amount of time between initial display and submit. Or am I wrong?! so far Rob > > > /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how do i get a printout of original multipart post data
If you're with linux try netcat (nc) at listening mode. Something like (not exactly) nc -vtlp 80 and then submut against any localhost url. greetings - Ursprüngliche Nachricht - Von: Olav Mørkrid <[EMAIL PROTECTED]> Datum: Montag, November 26, 2007 1:52 pm Betreff: [PHP] how do i get a printout of original multipart post data An: php-general@lists.php.net > hello > > > how can i get a raw and untouched printout of a multipart/form-data > POST? i need this to analyze what certain user agents do wrong when > uploading files. > > what happens is that php just fails to put files into $_FILES, and > gives no way of seeing the original posting and exactly what is wrong > with it. > > according to the manual, neither "always_populate_raw_post_data" nor > work for multipart/form-data. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to create multipart e-mail bodies?
Well, the implementation problem could be fixed by "copying" PEAR into your source folder. That should work even with PHP4 but without the nice class architecture. I just can recommend - PEAR is state of the art, and it works perfectly. But think about switching to PHP5. My hosting provider serves both, controlled via htaccess. :-) Rob - Ursprüngliche Nachricht - Von: "Sándor Tamás (HostWare Kft.)" <[EMAIL PROTECTED]> Datum: Freitag, Dezember 7, 2007 12:19 pm Betreff: Re: [PHP] How to create multipart e-mail bodies? An: [EMAIL PROTECTED] Cc: php-general@lists.php.net > Thanks, but unfortunately my ISP does not implemented PEAR, and > uses PHP > 4.3.10. > > - Original Message - > From: <[EMAIL PROTECTED]> > To: ""Sándor Tamás (HostWare Kft.)"" <[EMAIL PROTECTED]> > Cc: > Sent: Friday, December 07, 2007 12:07 PM > Subject: Re: [PHP] How to create multipart e-mail bodies? > > > Hi! > > You should take a look at... > > http://pear.php.net/package/Mail > http://pear.php.net/package/Mail_Mime > > http://pear.php.net/manual/en/package.mail.mail-mime.php > !!! http://pear.php.net/manual/en/package.mail.mail- > mime.example.php !!! > > This should give you a perfect intro... > > My 2 cents. > > Rob > > - Ursprüngliche Nachricht - > Von: "Sándor Tamás (HostWare Kft.)" <[EMAIL PROTECTED]> > Datum: Freitag, Dezember 7, 2007 12:04 pm > Betreff: [PHP] How to create multipart e-mail bodies? > An: php-general@lists.php.net > > > Hi, > > > > I don't know if it is a PHP question, but I give it a try. > > > > I've been trying this subject for a while, but with less success. > > Now I can create mail bodies like this: > > > > Content-Type: multipart/alternative; > >boundary="-=Part233475926a47beb07.46978329" > > > > > > ---=Part233475926a47beb07.46978329 > > Content-Type:text/plain; charset=utf-8 > > Content-Transfer-Encoding: 8bit > > Content-Disposition: inline > > > > Hi there! > > > > ---=Part233475926a47beb07.46978329 > > Content-Type:text/html; charset=utf-8 > > Content-Transfer-Encoding: 8bit > > Content-Disposition: inline > > > > Hi there! > > This will be fun! > > > > > > ---=Part233475926a47beb07.46978329-- > > > > > > But my mail client can't show any part of it. When I take a look at > > the > > source code, I can see that it recognise the boundaries, but > > somehow for > > some reason it doesn't show it. > > > > Any idea? > > > > Thanks, > > SanTa > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to create multipart e-mail bodies?
Hi! You should take a look at... http://pear.php.net/package/Mail http://pear.php.net/package/Mail_Mime http://pear.php.net/manual/en/package.mail.mail-mime.php !!! http://pear.php.net/manual/en/package.mail.mail-mime.example.php !!! This should give you a perfect intro... My 2 cents. Rob - Ursprüngliche Nachricht - Von: "Sándor Tamás (HostWare Kft.)" <[EMAIL PROTECTED]> Datum: Freitag, Dezember 7, 2007 12:04 pm Betreff: [PHP] How to create multipart e-mail bodies? An: php-general@lists.php.net > Hi, > > I don't know if it is a PHP question, but I give it a try. > > I've been trying this subject for a while, but with less success. > Now I can create mail bodies like this: > > Content-Type: multipart/alternative; >boundary="-=Part233475926a47beb07.46978329" > > > ---=Part233475926a47beb07.46978329 > Content-Type:text/plain; charset=utf-8 > Content-Transfer-Encoding: 8bit > Content-Disposition: inline > > Hi there! > > ---=Part233475926a47beb07.46978329 > Content-Type:text/html; charset=utf-8 > Content-Transfer-Encoding: 8bit > Content-Disposition: inline > > Hi there! > This will be fun! > > > ---=Part233475926a47beb07.46978329-- > > > But my mail client can't show any part of it. When I take a look at > the > source code, I can see that it recognise the boundaries, but > somehow for > some reason it doesn't show it. > > Any idea? > > Thanks, > SanTa > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] acerca de extensiones SQL Server
Hi, I think you should install at least php5-mysql and if you're using PEAR's db connection you'll need php-db too. Robert On Sa, Jul 14, 2007 at 10:39:40 -0400, Lic. Eduardo R. Hern?ndez Osorio wrote: > > > Hi: > > I need use the SQL extension on PHP to connect to any SQL Server database. > How I configure PHP on Linux to use that extension? I use debian with > apache2 and PHP5 installed on it. > > Waiting for your help, > > Richard > > > > > > Eduardo Ricardo Hernández Osorio > > Técnico Telecomunicaciones Aeronáuticas > > U.T.B Servicios Aeronáuticos, ECASA s.a. > > Aeropuerto Internacional "Frank País García" > > Tel: (53) (24) 474569 > > > > email: [EMAIL PROTECTED] > > > > "...de buenas intenciones está empedrado el camino al infierno..." > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Comment modes behavior in HTML and PHP
On Sa, Jul 28, 2007 at 03:40:07 +0100, C.R.Vegelin wrote: > I have a PHP script, as follows: > > > As expected, the browser shows nothing, > but when I view Source in the browser, I see: > > > Shouldn't it be just: , without the echo result ? > I don't expect PHP to be active between . No, you're expecting something wrong. A