



I have this code that doesnt print the db results like they should ituses pear::db package for the database. Was wondering if anybody can figureout how come it doesnt work<?phprequire_once 'DB.php';error_reporting('E_ALL');$db =& DB::connect('mysql://root:3987957@loca...
I have an array $journal that I want to carry from a page (where it wascreated) to another page (a popup that shows the variables contents). Isthis automatically available? or do I have to do something special to php?...
Hi Chris sometimes there is no replacement for a FTP program butyou can use INI_SET() at in your PHP file to temporarily set the fileupload size. i think you will have to change the time out settingsalsolook at the manual on ini_set also search this list for ini_seteven better take a look at thi...
Hello,Something just crossed my mind about using output buffering isthere any reason why you should start a session before callingob_start() ?Just curious which way would be the proper way of doing it ordoesn't it matter?Thanks...
I trying to get php_printer.dll extension to work on a xp system . Idownloaded correct version of php_printer.dll to match php version 5.1.1 .The extension_dir is set correctly , because other extensions load and workperfectly.When I execute the following code, I get<?php/*$handle = printer_o...
Maybe I'm missing some requirement, but what if you just used HTML "<pre>" tags. You can still use other HTML for formatting within the <pretags but it'll pay attention to carriage returns/line feeds and spaces without having to use <br>sFor example, if you did the follo...
Task:Create a script that converts text into HTML with paragraphs.Problem:Input text could use the book notation, as well as the web notation,plus it can contain HTML.==<h1>This is a title</h1> This is a Book paragraph. This is another book paragraph.This is yet another book paragrap...
Hello,I need to set the doctype and the system dtd of a document createddirectly with the xml DM.I couldnt find any function or property to set this, i saw someexamples that directly wrote onto the file manually, but im pretty surethare must be a way to do this with the dom (i remembered that li...
Can someone recommend a general method for avoiding / eliminating XSSvulnerbilities with PHP?Specifically is there a library function for validating fields? If not,can someone recommend a regex that detects HTML tags?Similarly is there a library function for escaping database content forinclusio...
[snip]Wow, that should fail. But you did have use var_dump() to get it, which maybe slightly counter-intuitive. I just did thisfunction realRand($x){$x = $x * rand(5,10);return $x;} define("RANDM", realRand(1.2));var_dump(RANDM);and it returns floats. Well, I'll be jiggered.[/snip]From" sca...
[snip]It would be foolish (and would fail anyhow) to do something like this;Nope. :P<?phpdefine("RANDM", rand(5,12));var_dump(RANDM);?>int(12)[/snip]Wow, that should fail. But you did have use var_dump() to get it, which maybe slightly counter-intuitive. I just did thisfunction realRand($x...
[snip]is there a way to dynamically define a class constant during runtimein PHP 5?for example I would like to achieve the result of something like:class Example {const F = bar();}However this would obviously give a parse error.I know it is possible with variables but I would like it to be acons...
Jared Williams wrote:PS.Yeah, thought it was libxml, hence didn't file a peclbug report. Butthere does seem a problem with this method as can't just have apublicId or a systemId, libxml function uses NULL as aparameter to specify which id you don't want to use. Whichwe've los...
is there a way to dynamically define a class constant during runtimein PHP 5?for example I would like to achieve the result of something like:class Example {const F = bar();}However this would obviously give a parse error.I know it is possible with variables but I would like it to be aconstant.T...
It's not a full FTP client, you can't set permissions in it. I think that'sa major minus in DW's favor. Especially if you don't have access to ssh intoyour machine MessageFrom: Michael Hulse [mailto:micky (AT) ambiguism (DOT) com]Sent: Tuesday, December 06, 2005 10:09 PM...
