Everything posted by php_penguin
-
Fed up of buying condoms and contraceptives?
I'm sure it would break the rules if you posted it here, but can someone please explain what Dutch Steamboating is? My knowledge of these odd terms is usually tip-top but for once I am stumped.... PM plox!
-
Simple PHP problem. Highest number.
<?php $max = 0; foreach( $numbers->number as $n ) $max= max( $n, $max );
-
Force footer to sit at very bottom
the main part is: #footer { position: fixed; bottom: 0px; }
-
I was board!
you haven't mentioned any unique features, flaws, or dimensions?
-
MSPaint sucks
Cabbage : not bothered about overwriting saves tbh!
-
MSPaint sucks
Hey guys + gals, Did this in a lecture whilst bored, and to be frank I'm embarrassed that MSPaint is still around if it is this easy http://richardlyon.co.uk/paint/paint.php Notes: - click and drag to draw! - use Firefox, preferably v3.0 because I DONT CARE if it doesnt work in IE/Safari/Opera. - after saving a file, eg as "MyFile", to load it add ?load=MyFile to the URL. - you gotta know your hex codes! - the erasor is just the same as using #fff as the palette color. - if FF starts looking like it is dragging a file icon, go back to where you started that line, release the mouse, and click again otherwise that line wont be saved, weird bug. My creation: http://richardlyon.co.uk/paint/paint.php?load=wdfrocks Have fun!
-
Defending your Name
Do you work for Sony?
-
Creating a online booking/payment system for hotel etc
ah right ok - its just that I see a lot of newbies (usually on my MSN list) who have taken on a project that involves dealing with a payment system and they usually fark it up at their own expense...
-
Creating a online booking/payment system for hotel etc
If you don't know, you shouldn't be doing it - this is peoples bank details you are farking about with!
-
This is getting silly [RANT]
I would outsource only if three things hold true: - I have too much work to handle - The outsourcer is from Western Europe or the US/Canada AND can speak English - The outsourcer has his/her own website with examples of good work on it Any other circumstances are a no-no as the indians (tend to) produce absolute crap.
-
life on mars
www.surfthechannel.com of course, the DVD's are always on Amazon for cheap.
-
Where did all you guys go?
I'm here... but also am not.
-
Windows 7 Beta Help
I can't even get W7b to work. It gives me a BSOD on boot because of crap nvidia drivers. As such, don't bother.
-
Frameworks?
I always use jQuery and CodeIgniter. They both have the same awesome benefits; - small footprint, in terms of the amount the user needs to download and how heavy it is on the server - great reductions in written code size - shortens development times and makes it easier to understand in the future - clever API's - the frameworks are written by people who understand their tasks, meaning the code that is there (adding to the footprint) is code you will actually use once in a blue moon (I'm looking at you moo and Pear) - great docs - makes it easy to lookup what you need without much hassle - great communities - in the case of jQuery this is mostly the number of plugins/extensions, whilst in CI its the kick-ass forums!
-
A real bugger of a situation
add "overflow: auto" to its CSS properties..
-
Jems PHP script
PHP's mail() function will return true even if the mail is not sent, if your server does not have a working SMTP server. This is common for localhost setups!
-
Which Language Do you hate the most?
I know Silly arsehole Java, especially JWS!
-
Which Language Do you hate the most?
And nobody has mentioned the horrific Java? Hello World: class Driver { public static void main( String [] args ) { System.out.println( "Hello World!" ); } }
-
False Light Laws
Private emails should be treated as such, but once again you cant do much! Unless the information has caused you some personal/psychological distress or financial loss then you can't do anything in the courts, and at any rate you wouldn't be able to get the information taken down, plus you'd be apparently taking a kid to court, which never looks good (go RIAA!). And andymayhem - yep, you probably should at least be aware that as the data is public and in the forums database (and is usually written as such in the T&Cs) that the forum has ownership over it.
-
False Light Laws
Anything posted (that is, electronically submitted via topic creation/reply or PM systems) are instantly the property of the forum owner. They have full power to reproduce, quote, mangle, and basically do whatever they want with those words. The fact that the information was posted accidentally has no bearing on that - it was still posted and you have no ownership of those words (despite them having your name next to them). Similarly with the address, just because those words were said in the PM system doesn't mean that there was or is any enforced security or confidentiality on those words - whilst the privacy of those words is implied, it doesn't go beyond that. As such, the only person who has done anything "wrong" is the person who posted the address and the most you can do is call them an arse. I understand your predicament, but you haven't got a leg to stand on if you approach this from a legal standpoint. Try buttering up the mod with an Amazon or iTunes voucher?
-
PHP and Microsoft word documents
Ive tried doing it using a plain PHP script but it just didnt work for me - that was using a 3mb excel spreadsheet though so you may have better luck. If you are fine installing packages the ones you need are "antiword" (.doc) and "xlhtml" (.xls). These might be available as standalone shell scripts, but I'm not sure. A final and convoluted way I investigated before finding the packages was to upload them to Google Docs via the API and read them across the net... not very fast and a bit too insecure for the data i was using...
-
Simple program (I hope!)
try rememberthemilk or basecamp?
-
PHP and Microsoft word documents
is it docx or doc? If its docx its relatively easy as the Office 2007 formats are all Zip files containing xml data. Doc and other old Office formats are a right james blunt to work with - the way i do it is install a package onto the server itself (that is, install a command line program from a .deb/.rpm package file) and use the shell() or term() functions in php to make them parse it into XML and read from there.
-
edit multiple pages at once
You could use regular expressions and a recursive script to either extract data from, or modify the data within, each page on the site. I have done this a few times before on various sites, and can help you out if you want. Email me at [my username]@hotmail.com
-
How come there is no PHP script that simply uses images to mimic fonts?
Oops, ignore that last zip its not got the riht version of the script on it button.zip