Re: [PHP] PHP bandwidth control

2009-04-07 Thread Yannick Mortier
2009/4/7 Chris : > >> I guess there are multiple ways to engage this problem. It depends how >> "deep" you want to log the traffic. If you just want to count the >> traffic of each image, video etc you could just wrap up each image and >> video to go through php first with file_get_contents() (look

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Yannick Mortier
2009/4/7 Chris : > >> I guess there are multiple ways to engage this problem. It depends how >> "deep" you want to log the traffic. If you just want to count the >> traffic of each image, video etc you could just wrap up each image and >> video to go through php first with file_get_contents() (look

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Yannick Mortier
2009/4/7 Phpster : > Misk.com is also good at $10/ yep > > Bastien > > Sent from my iPod > Come on now, please. JD clearly said he wants to do this at home to learn something by doing it. I can understand that very well. Giving answers nobody asked for is like posing questions nobody wants to answ

Re: [PHP] Best Practices for Hiding Errors

2009-04-07 Thread Yannick Mortier
2009/4/7 Chris : > Igor Escobar wrote: >> >> Becarefull, error supression is slow. > > If it's the only way to stop an error from showing up, what's the problem? > > php will still generate the warning/notice even if display_errors is > disabled - which will be even slower. > > Plus I never said us

Re: [PHP] Am I being hacked?

2009-04-08 Thread Yannick Mortier
2009/4/8 9el : > On Wed, Apr 8, 2009 at 8:04 PM, Bob McConnell wrote: > >> On Behalf Of Richard Heyes >> >> I set up a simple form to save comments on my webpage, and after just >> one >> >> day of going live, i'm getting weird comments up like this >> >> >> >> declare @q varchar(8000) select @q =

Re: [PHP] codeigniter 'secure, non-secure content' pop up message in IE7

2009-04-09 Thread Yannick Mortier
2009/4/9 9el : > -- Forwarded message -- > From: Sabrina Akter > Date: Thu, Apr 9, 2009 at 1:12 AM > Subject: codeigniter 'secure, non-secure content' pop up message in IE7 > To: phpexpe...@yahoogroups.com > > > Hello Experts, > > I badly need your help. My developed site's some pa

Re: [PHP] A Tool For Building PHP Web Apps

2009-04-10 Thread Yannick Mortier
2009/4/10 Marcus Gnaß : > Paul M Foster wrote: >> >> On Fri, Apr 10, 2009 at 09:01:14AM -0400, Bob McConnell wrote: >> >> >>> >>> From: Paul M Foster >>> Here's a hairbrained idea I was kicking around. I object to the idea >>> >>> of >>> including 15 or 30 files in a PHP ap

Re: [PHP] Nagios Monitoring

2009-04-13 Thread Yannick Mortier
2009/4/13 Waynn Lue : > Hey guys, > > I'm looking to write a nagios plugin that essentially monitors whether or > not a database query returns a value > 0 at any given point.  I was hoping > to write this in PHP, but I haven't found too many examples of Nagios > plugins in PHP ( > http://www.barryo

Re: [PHP] cURL Download

2009-04-17 Thread Yannick Mortier
2009/4/17 Robbert van Andel : > I've been struggling to download a file from a network file share using > cURL, or whatever else will work.   All I want to do is get the contents of > a text file.  But when I run the code below I get this error "Error: 37 - > Couldn't open file \\server\share\test.

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-02-01 Thread Yannick Mortier
2009/1/30 Nitsan Bin-Nun : > Do you close your PHP No, I don't. The reason is that I use subversion and I always get a message when I don't leave the last line empty. So I kind of have to leave the http://www.p-game.de Trade - Expand - Fight Follow me at twitter! http://twitter.com/moortier --

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-02-01 Thread Yannick Mortier
2009/2/2 Alpár Török : > > > 2009/2/1 Yannick Mortier >> >> I once read that this is even recommended by the PHP developers... Has >> anyone got a quote for me about this? >> > > I know thw ZF codinf style includes it as a must. See here : > &g

Re: [PHP] php rpm

2009-02-04 Thread Yannick Mortier
Can you tell us what distribution you have? Some distributions already deliver PHP rpms and you just have to install additional modules. Mostly they are called php(4|5)-(extensionname). For example php5-mssql or php4-bc. Try to look into your package manager or tell us what distro you have so I can

Re: [PHP] php rpm

2009-02-04 Thread Yannick Mortier
2009/2/4 : > Wow I am so sorry did not mean to be so vague about my installation. > RHEL 5.3 > The distro that comes with it is 5.1.6 > The bad part is the Redhat does not offer an uptodate disto of php. > So i am compiling from source. I cant find much information on the distro's. > So i was won

Re: [PHP] Clarity needed

2009-02-04 Thread Yannick Mortier
2009/2/4 tedd : > Hi gang: > > I need some fog removed. > > I have a problem where I have an unlimited number of tutors teaching an > unlimited number of courses. When I call upon a tutor, I want to see all the > courses they teach. > > In my old days, I would just set up a linked list of courses a

Re: [PHP] File Manager

2009-02-05 Thread Yannick Mortier
2009/2/5 Sn!per : > What would you guys recommend as a good and free opensource file management > system? > > TIA. > > > > > -- > Sign Up for free Email at http://ureg.home.net.my/ > I haven't use any up to now. But a quick google search turned out decent results: http://phpfm.sourceforge.net/ -

Re: [PHP] Email configuration

2009-02-05 Thread Yannick Mortier
2009/2/5 It flance : > Hi all, > > I've installed php and mysql in fedora. Now i am able to create php programs. > But when I am unable to use email in my programs. I am wondering what is the > easiest way to use email in my php programs. Can i send email from my > personal computer. I am a regu

Re: [PHP] Email configuration

2009-02-05 Thread Yannick Mortier
2009/2/5 Thodoris : > > I think that the OP mentioned the word fedora somewhere above... > Oh sorry, I'm so stupid... Anyways, if you want to send mail to large providers you'll need to use a relay. I found a nice tutorial about how to set it up with google apps. It was for Ubuntu but you just hav

Re: [PHP] Email configuration

2009-02-06 Thread Yannick Mortier
2009/2/6 Thodoris : > > 2009/2/5 Thodoris : > > > I think that the OP mentioned the word fedora somewhere above... > > > > Oh sorry, I'm so stupid... Anyways, if you want to send mail to large > providers you'll need to use a relay. I found a nice tutorial about > how to set it up with google apps.

Re: [PHP] PHP OOP

2009-02-09 Thread Yannick Mortier
2009/2/9 tedd : > Hi gang: > > At the college where I teach, they are considering teaching OOP, but they > don't want to settle on a specific language. > I guess that is not a good idea, you should really combine it with a language, as some students will be curious enough to play around with it at

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-11 Thread Yannick Mortier
2009/2/11 German Geek : > I try to avoid nesting loops altogether if possible. Usually dont go beyond > 3 levels of nesting... > How can you require 8 levels of nesting? surely there must be something > wrong or a more efficient algorithm... > No! It's just that you can't think in 8 dimensions lik

Re: [PHP] Execute EXE with variables

2009-02-18 Thread Yannick Mortier
2009/2/13 Dan Shirah : >> >> Use the system() command, and enclose both your command and its >> parameters in a pair of single quotes, as: >> >> system('mycmd -a alfa -b bravo'); >> >> Paul >> -- >> Paul M. Foster >> > > Using both exec() and system() I am getting the error: Unable to fork > Thi

Re: [PHP] PHP bandwidth control

2009-04-06 Thread Yannick Mortier
2009/4/6 JD : > Hello, > > I am relatively new to PHP and am trying to make a video/image sharing site > for my family to upload and share family videos and pictures. My concern is > that because I'm hosting this site at my house, I will quickly exceed my > bandwidth limitations each month if al

[PHP] Problem with Regexp

2005-10-31 Thread Yannick Mortier
[6] => Array ( [0] => 9 ) [7] => Array ( [0] => ) [8] => Array ( [0] => 6 ) [9] => Array ( [0] => ) ) But I would expect to get [2] => Array (

Re: [PHP] Problem with Regexp

2005-10-31 Thread Yannick Mortier
Richard Heyes schrieb: Yannick Mortier wrote: Hello, I have the string: http://www.runescape.com/img/hiscores/attack.gif"; valign="bottom" width=16 height=16 /> href="hiscoreuser.cgi?username=zezima&category=1" class=c>Attack4align="right&quo