Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 4.35 seconds.
Search: Posts Made By: firepages
Forum: PHP 05-22-2013, 09:44 AM
Replies: 16
Views: 242
Posted By firepages
you know the easiest way is simply to save the...

you know the easiest way is simply to save the file as blah.css.php and remember to add
<?php header("Content-Type: text/css"); ?>
as the first line, then you wont have to bother with .htaccess etc
Forum: PHP 05-22-2013, 09:23 AM
Replies: 1
Views: 79
Posted By firepages
how is the page updated ? manually ? FTP or is...

how is the page updated ? manually ? FTP or is it generated via an admin scrpt etc, or do you mean just when some page content or updated via an admin interface...

for anything but the manual/FTP...
Forum: PHP 05-22-2013, 09:18 AM
Replies: 3
Views: 84
Posted By firepages
... or keep the variables in an array $ar['var1']...

... or keep the variables in an array $ar['var1'] $ar['var2'] etc, then you just have to unset($ar);
Forum: PHP 05-22-2013, 09:16 AM
Replies: 2
Views: 84
Posted By firepages
you could have a script getfile.php?v=file , &...

you could have a script getfile.php?v=file , & getfile.php could use highlight_file or other return the contents of the then local file but how to protect that from just anyone accessing the file I...
Forum: JavaScript programming 05-22-2013, 09:01 AM
Replies: 3
Views: 69
Posted By firepages
ok , now understand why adding the debug() test...

ok , now understand why adding the debug() test function to the ajax generated output did not work either.
..so is there any way to force the browser to parse the javascript ??

basically onclick...
Forum: JavaScript programming 05-22-2013, 05:34 AM
Replies: 3
Views: 69
Posted By firepages
javascript/ajax variable scope

Hi not understanding variable scope with ajax generated content... e.g.

in main page

<html>...etc
<script language="javascript">
function _debug(){
alert('here'); //displays 'here'
...
Forum: JavaScript programming 05-01-2013, 02:13 AM
Replies: 21
Views: 409
Posted By firepages
e.g. <img src="blah.png" id="blah"...

e.g.
<img src="blah.png" id="blah" onclick="alert(this.id)">
Forum: PHP 02-21-2013, 01:51 AM
Replies: 4
Views: 303
Posted By firepages
..there is the pecl extension memcache...

..there is the pecl extension memcache (http://www.php.net/manual/en/class.memcache.php) but you wont be able to install that if you are not root.
Forum: PHP 02-21-2013, 01:45 AM
Replies: 3
Views: 340
Posted By firepages
can I ask why you need those ownership perms ? ,...

can I ask why you need those ownership perms ? , you should be able to chmod them to 0777 would that not be enough ?
Forum: PHP 11-30-2012, 03:50 PM
Replies: 7
Views: 400
Posted By firepages
and lots of other uses.. I use Zend's barcode...

and lots of other uses.. I use Zend's barcode library to create barcodes which are saved as images for printing labels etc, you can also (generate &) display emails as images to avoid scraping etc,...
Forum: PHP 11-30-2012, 02:33 PM
Replies: 9
Views: 376
Posted By firepages
DOH, indeedy I do have output buffering on :)...

DOH, indeedy I do have output buffering on :) sorry
Forum: PHP 11-30-2012, 02:30 PM
Replies: 9
Views: 376
Posted By firepages
as it happens the code works for me on firefox,...

as it happens the code works for me on firefox, but any issues are possibly down to the fact that setcookie expects a string value as the value, not a boolean (true/false) so if you used !== then you...
Forum: PHP 11-27-2012, 02:32 AM
Replies: 10
Views: 431
Posted By firepages
mime_content_type...

mime_content_type (http://au1.php.net/manual/en/function.mime-content-type.php) is also worth a look at , at least it will spot executables etc, but for reasons I dont get PHP think that the PECL...
Forum: PHP 11-25-2012, 01:58 AM
Replies: 3
Views: 385
Posted By firepages
the below uses is_numeric() but ctype functions...

the below uses is_numeric() but ctype functions or filter_var functions could be used instead.
note that there are 3 changes here, all prefixed by #HERE


<?php
require_once...
Forum: PHP 11-25-2012, 01:48 AM
Replies: 14
Views: 1,049
Posted By firepages
DOH, sorry, I guess __set and __get are not true...

DOH, sorry, I guess __set and __get are not true overloading.
Forum: PHP 11-24-2012, 01:31 PM
Replies: 14
Views: 1,049
Posted By firepages
Probably not, but whilst Java is loading the...

Probably not, but whilst Java is loading the object hierarchy for wax to overload the candle PHP has pulled 20 of then from the DB lit then and stuck them in a chandelier in the pattern of your...
Forum: PHP 11-24-2012, 02:06 AM
Replies: 14
Views: 1,049
Posted By firepages
Yeah, people are fighting the wrong battle there...

Yeah, people are fighting the wrong battle there , its NOT a question of proc vs OO in PHP since neither is better than the other at any particular task and its pointless to even compare them that...
Forum: PHP 11-22-2012, 11:23 PM
Replies: 28
Views: 973
Posted By firepages
2006, in Zagreb , I don't know what he was...

2006, in Zagreb , I don't know what he was wearing though ;)
Forum: PHP 11-22-2012, 01:28 PM
Replies: 28
Views: 973
Posted By firepages
Read my sig ;)

Read my sig ;)
Forum: PHP 11-22-2012, 08:54 AM
Replies: 28
Views: 973
Posted By firepages
OO was introduced in PHP3 though internally it...

OO was introduced in PHP3 though internally it was not true OO of any description just emulation of objects, Zend changed this and it grows with every version.
Lerdorf is not a gigantic fan of OO...
Forum: PHP 11-21-2012, 04:29 PM
Replies: 28
Views: 973
Posted By firepages
Again, up to you how you go about it. If you do...

Again, up to you how you go about it.
If you do enough OO you end up with your own framework anyway at some point, or you can start with an existing one.

I roll my own, but do use a few Zend...
Forum: JavaScript programming 11-21-2012, 04:26 PM
Replies: 16
Views: 716
Posted By firepages
yeah, sadly I don't, not yet anyway, its too easy...

yeah, sadly I don't, not yet anyway, its too easy for corporates to drop unprofitable startups/concerns like hot potatoes for one reason or another, tech moves so fast even google eventually drop...
Forum: PHP 11-21-2012, 04:14 PM
Replies: 28
Views: 973
Posted By firepages
err perhaps its Drupals implementation of PHP OO...

err perhaps its Drupals implementation of PHP OO that sucks.. I don't know, never used it but most of the large frameworks suck to one extent or another and often this comes from trying to be Java...
Forum: PHP 11-21-2012, 02:28 PM
Replies: 28
Views: 973
Posted By firepages
Sounds to me like you are trying to convince...

Sounds to me like you are trying to convince yourself not to use OO and want help ;)

Not that long ago I was in a similar state, these days however...
even when I try NOT to use OO these days I...
Forum: JavaScript programming 11-21-2012, 02:06 PM
Replies: 16
Views: 716
Posted By firepages
clientside technologies are as safe as the client...

clientside technologies are as safe as the client is.. thats ma and pa's unpatched XP with SpeedUpMyPC-Pro and driver-miracle-cure installed + millions of 'macs cant get a virus' fondleslab users.
...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 02:15 PM.