could Alan give samples about the input and expected output of the black box?
then we can consider implement it.
On 10/13/05, Alan Lord <[EMAIL PROTECTED]> wrote:
> Thanks for the replies gents.
>
> I have cludged together something from your solutions but it isn't yet
> working. I've been staring
I'm just taking a wild guess...
but I'm guessing that if you set a name with spaces, it'll be replaced
with "_"(underscore).
A couple of ways around this is to
1) figure out a way to assign a one-word name for all your
books(e.g. Code, ID number, etc.)
2) generate a hash code(e.g. md5($
both `è' and `î' are not entities in charset utf-8, use
`è' and `î' instead.
On 10/13/05, jonathan <[EMAIL PROTECTED]> wrote:
> I'm now getting this error:
>
> XML Parsing Error: undefined entity
>
> with the following entity at the first ampersand:
> farm lettuces with reed avocado,
Johan Grobler wrote:
while ($row = mysql_fetch_array($sql_result)) { echo" ".$row['LITERATURE_title']." - ".$row['res_fname']."
".$row['res_lname']." ...
Everything works as long as $row['LITERATURE_title'] is one word, see
this variable contains the names of books, and if the books name is
"He
while ($row = mysql_fetch_array($sql_result))
{
echo"
".$row['LITERATURE_title']." - ".$row['res_fname']." ".$row['res_lname']."
...
Everything works as long as $row['LITERATURE_title'] is one word, see this
variable contains the names of books, and if the books name is "Heaven" for
instance it
Hey,
I've got a set of classes which represent an HTML form. Right now the
Elements return their string representation to the parent, which wraps
those in the form tag and supplementary formatting HTML. This method
works, but it creates an internal limit as to the design of the form.
I'm hop
Hmmm,
"/SELECT .* FROM (.*) WHERE (.*) ORDER BY .*/Ui", "SELECT count(*) FROM
\$1 WHERE \$2"
Might work, but haven't tried it...
Guy Brom wrote:
Can anyone suggest the correct regex to replace col1,col2... with count(*)
and strip out everything just before ORDER BY?
so for this:
SELECT col1,
Can anyone suggest the correct regex to replace col1,col2... with count(*)
and strip out everything just before ORDER BY?
so for this:
SELECT col1,col2... FROM tbl WHERE filter1 filter2 ORDER BY order1,order2
I would get this:
SELECT count(*) FROM tbl WHERE filter1 filter2
$str = "SELECT col1,
Hi,
Tuesday, October 11, 2005, 3:37:13 PM, you wrote:
BF> I'm finishing up my WASP framework 1.0 release (http://
BF> wasp.sourceforge.net) and I'm trying to decide the best way to lay
BF> out the template directories.
BF> WASP uses HTML_Template_Flexy for its template system. The templates
BF>
--- Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> $source_dir = escapeshellarg( '/some/dir/Dir That Won't Move/' );
Unfortunately escapeshellarg doesn't work for all cases, it will escape the " '
" in that example
but it doesn't escape other characters such as " ) ". So...
$source_dir = esc
Can anyone suggest the correct regex to replace col1,col2... with count(*)
and strip out everything just before ORDER BY?
so for this:
SELECT col1,col2... FROM tbl WHERE filter1 filter2 ORDER BY order1,order2
I would get this:
SELECT count(*) FROM tbl WHERE filter1 filter2
Thanks!
--
PHP Gener
On Tue, 2005-10-11 at 00:25 +0200, Oliver Grätz wrote:
> Dan Brow schrieb:
> > Thanks, figured that would be the case. Can't for life of me think why I
> > wanted to do that, must have had a brain infarction. I want to have an
> > expired session prompt so people can log back in with out having to
Why don't you just import from Access to CSV and use LOAD DATA query on
MySQL?
""Gustav Wiberg"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> - Original Message -
> From: "Joe Harman" <[EMAIL PROTECTED]>
> To:
> Cc: "Gustav Wiberg" <[EMAIL PROTECTED]>
> Sent: Wednesd
-k. wrote:
I'm having trouble moving some directories. My script works fine on
some directories but doesn't move others. It seems to have trouble
with directories with non alphanumeric charters. I'm running Red Hat
FC2. I'm trying to move the directory basically like this...
$source_dir = e
On Wednesday 12 October 2005 12:40 pm, jonathan wrote:
> I am trying to output a file using DOM with php5.
>
> It gives me an error with something like the following:
> farm lettuces with reed avocado, crème
> fraîche, radish and cilantro
Are you doing a:
DOMDocument::loadXML('farm lettuces with
I'm having trouble moving some directories. My script works fine on some
directories but doesn't
move others. It seems to have trouble with directories with non alphanumeric
charters. I'm running
Red Hat FC2. I'm trying to move the directory basically like this...
Is there some way to escape t
Robert Cummings schrieb:
> You can use separate engines. The topic has been addresses many times
> already. Set up a second instance of apache and use the ProxyPass system
> to pass control from the primary apache server to a PHP5 enabled apache
> server.
I always thought this complexity is why pe
Robert Cummings wrote:
On Wed, 2005-10-12 at 17:31, GamblerZG wrote:
Since nobody ansvered the real question my previous message, I will
re-phrase it.
PHP developers assume that PHP5 will be frequently used to parse PHP4
scripts. Why? And what's so horrible about using separate engines to ru
Most likely you are using some template system that require using of
{{whatever}} as template varibles.
if you want to change {{whatever}} to something else, maybe you should
configure your template processing as well, just let it not to find
{{whatever}} but the pattern you prefered, and also re
Ethilien said the following on 10/12/05 15:55:
You need to edit the config.inc.php file in the phpmyadmin directory and
set the appropriate server address/username/password information for
your remote server. You might have to set a remote server up in cpanel
for this to work however.
And of
To answer your questions:
1) No, there is no way to make data show up in both fields because the
script you are currently using is probably echoing the data directly
into a value attribute of the elements themselves. Also, by making two
different elements in the same form have the same name, a
You need to edit the config.inc.php file in the phpmyadmin directory and
set the appropriate server address/username/password information for
your remote server. You might have to set a remote server up in cpanel
for this to work however.
MI SOOK LEE wrote:
Hello,
I have PhpMyAdmin 2.6.3 , M
Are you trying to put each return from array_slice into $output as an
array? You need to replace $output = array_slice... with $output[] =
array_slice...
Also, you cannot just echo an array (even of characters). It must be a
string, or else echo will only produce the output 'Array'.
Hope thi
Hello,
I have PhpMyAdmin 2.6.3 , MySQL 4.1.13 running in my Windows 2000.
I installed them using Apache friends XAMPP, so I didn¡¯t do any
configuration myself.
Currently if I go to http://127.0.0.1/phpmyadmin, then it automatically
shows my local MySQL db and tables.
Now I need to connect remo
Tommy, r u serious?
this ain't what you called 'thread or process',
just something like an user agent, like any web browser.
On 10/12/05, Tommy Jensehaugen <[EMAIL PROTECTED]> wrote:
> Thank you very much. This is what I ended up with if anyone needs it:
>
> function runSeparateThread($strHost, $
do you then have to do the reverse operation to get it back for
rendering. Since it was erroring on me during DOM creation, I feel
like I'm going around it to put it into a format it likes but then on
display via XSL transformation, I will have to convert it back. Or am
I missing something?
On Wed, 2005-10-12 at 17:31, GamblerZG wrote:
> Since nobody ansvered the real question my previous message, I will
> re-phrase it.
>
> PHP developers assume that PHP5 will be frequently used to parse PHP4
> scripts. Why? And what's so horrible about using separate engines to run
> php 4 and 5
Since nobody ansvered the real question my previous message, I will
re-phrase it.
PHP developers assume that PHP5 will be frequently used to parse PHP4
scripts. Why? And what's so horrible about using separate engines to run
php 4 and 5 scripts?
--
PHP General Mailing List (http://www.php.ne
yes, its possible, consider this:
/**
* @param $file_to_include path to php file you want to get its content
* @return included contents
*/
function get_output($file_to_include){
ob_start();
include $file_to_include;
return ob_get_clean();
}
of course, you may extend this function to bet
did u give proper username and password to login with?
On 10/12/05, twistednetadmin <[EMAIL PROTECTED]> wrote:
> I'm new to this. So I used a tutorial to write this. But it shows "Login
> ok.
> Welcome" at once when the page loads. Here is the tutorial:
> http://www.ss32.x10hosting.com/ss32/files/
jonathan wrote:
so, the problem isn't the ampersand but rather the è in the
following:
farm lettuces with reed avocado, crème fraîche,
radish and cilantro
I'm not sure how php / DOM handles these non-standard other entities.
How would / could I escape this? do I need to convert it to somet
Has anyone noticed/experienced the fact that the pecl site is spotty
today? I think I was able to download one module all day in and out of
db connect errors.
I really need to get a module off of there. Is there some loop I can
jump through to get it?
Thanks,
- Steve
--
PHP General Mail
Hello,
I'm using a for loop to iterate through an array and slice parts of
the array and add into another array.
When array_slice is called the variable $i is not being substituted
with the current value of
$i and the $output array is empty after running the script. Can
someone look at the code b
so, the problem isn't the ampersand but rather the è in the
following:
farm lettuces with reed avocado, crème
fraîche, radish and cilantro
I'm not sure how php / DOM handles these non-standard other entities.
How would / could I escape this? do I need to convert it to something
else to ma
On Tue, October 11, 2005 3:11 pm, Dan McCullough wrote:
> Its been awhile since I tried this so I was wondering if anyone had
> any luck with this.
>
> I need to get a list of tables from a database, which means I have to
> run a function, I would like to have an onChange event run when I
> change
On Tue, October 11, 2005 11:41 am, GamblerZG wrote:
> Recently, I asked my hosting provider when they are going to switch to
> PHP5. They replied that it will not happen any time soon, since they
> will install PHP5 only on new servers. Their reasoning was simple:
So ask them to move your account
I'm now getting this error:
XML Parsing Error: undefined entity
with the following entity at the first ampersand:
farm lettuces with reed avocado, crème
fraîche, radish and cilantro
Why is an ampersand considered an undefined entity? The xml version
is:
Any thoughts please?
-jonathan
I have been attempting to write a dynamic text replacement script that
would generate transparent PNGs using gd, and it works fine except when
one of the characters in a font has parts of it that overhang into the
previous characters. You can see what I mean in this test script:
The result c
Thanks for the replies gents.
I have cludged together something from your solutions but it isn't yet
working. I've been staring at multi-dim arrays all day and am getting
tired, so I'll carry on tomorrow.
Thanks again,
Alan
> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTEC
- Original Message -
From: "Joe Harman" <[EMAIL PROTECTED]>
To:
Cc: "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Wednesday, October 12, 2005 9:00 PM
Subject: Re: [PHP] Any good free easy converting tool?
On 10/12/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
Hi there!
Someone know of a
Hi there!
I need to do a one time convert from an Access-databasetable to an
MySQL-database-table.
Is the MyODBC the only way?
/G
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "'Gustav Wiberg'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 12, 2005 8:56 PM
Subje
On 10/12/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> Hi there!
>
> Someone know of any good free tool for converting from Access to Mysql. I
> just need to import certain tables into an already existance database.
>
> /G
> http://www.varupiraten.se/
>
> --
> PHP General Mailing List (http://www.
Hi there!
Someone know of any good free tool for converting from Access to Mysql. I
just need to import certain tables into an already existance database.
/G
http://www.varupiraten.se/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Id like to continue where TG left off ...
hth.
[EMAIL PROTECTED] wrote:
If I understand what you're asking, then maybe this will help:
$arrset1 = array("Apples" => 3, "Oranges" => 5, "Apricots" => 1);
$arrset2 = array("Couches" => 6, "Chairs" => 2, "Benches" => 5);
$alldataarr["Fruits"] = $ar
I am trying to output a file using DOM with php5.
It gives me an error with something like the following:
farm lettuces with reed avocado, crème
fraîche, radish and cilantro
It does have the encoding set to utf-8. When I switch it to utf-16,
it gives me an error on the $dom->saveXML();
An
Any PHP modules available that will optimize PDF files on upload?
Thanks,
D
**
HTC Disclaimer: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of th
Al Hafoudh wrote:
is it possible to connect to icq, send messages and etc? thanx
I looked all over that place for such a function some time back. I did
find several, but all were very old. The problem was they were all based
on the ICQ account number. Thinking about allowing such through the
If I understand what you're asking, then maybe this will help:
$arrset1 = array("Apples" => 3, "Oranges" => 5, "Apricots" => 1);
$arrset2 = array("Couches" => 6, "Chairs" => 2, "Benches" => 5);
$alldataarr["Fruits"] = $arrset1;
$alldataarr["Furniture"] = $arrset2;
Say we want to remove "Chairs",
On Wed, Oct 12, 2005 at 05:24:11PM +0100, Alan Lord wrote:
> I'm really struggling here! I have a large, multi-dimensional array that
> I want to "clean-up" a bit before committing to a database.
How big an array? You could just go create another array of the same
structure and copy the values acr
This is a minor thing that's been troubling me, making it difficult
to deploy a salesforce.com SOAP client across multiple projects.
Salesforce is a particular interest because its WSDL files are NOT
available directly online - you have to download and save local
copies manually.
When con
Hi all,
I'm really struggling here! I have a large, multi-dimensional array that
I want to "clean-up" a bit before committing to a database.
I want to remove quite a bit of the array but using the KEYs not the
values. I know the keys I want to keep and I know the keys I want to get
rid of. I want
Problem solved... The webserver on pear.php.net is working again.
Thanks to whoever fixed it!
Alex Moen
Operations Technology Specialist
NDTC
> -Original Message-
> From: Alex Moen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 12, 2005 10:09 AM
> To: 'Jochem Maas'
> Cc: php-gene
> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 12, 2005 10:03 AM
> To: Jay Blanchard
> Cc: 'Alex Moen'; php-general@lists.php.net
> Subject: Re: [PHP] pear.php.net
>
>
> Jay Blanchard wrote:
> > [snip]
> > I know this was asked already, but
Jay Blanchard wrote:
[snip]
I know this was asked already, but I am going to ask once more... Is
pear.php.net online? Here's why I ask:
pear list-upgrades
XML_RPC_Client: Connection to RPC server pear.php.net:80 failed. Connection
refused
Also, browsing to pear.php.net results in a page cannot
Claudio wrote:
Is it possible to process the file in second php instance?
An only get its output?
yes - but its heavy to do (which ever way you do it).
basically you need to either call a commandline php script
via exec() (or something similar) e.g.
exec('php /path/2/your/script.php'); // rea
[snip]
I know this was asked already, but I am going to ask once more... Is
pear.php.net online? Here's why I ask:
pear list-upgrades
XML_RPC_Client: Connection to RPC server pear.php.net:80 failed. Connection
refused
Also, browsing to pear.php.net results in a page cannot be displayed error.
[/
I know this was asked already, but I am going to ask once more... Is
pear.php.net online? Here's why I ask:
pear list-upgrades
XML_RPC_Client: Connection to RPC server pear.php.net:80 failed. Connection
refused
Also, browsing to pear.php.net results in a page cannot be displayed error.
Thanks!
Is it possible to process the file in second php instance?
An only get its output?
Claudio
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Martin Selway wrote:
A servername may contain a backslash e.g. Server1\SQL1.
When this data is returned from the URL e.g. $server =
$_GET['server']; The name is returned as Server1\\SQL1,
so the search fails.
Sounds like magic_quotes_gpc is enabled. Disable it.
I've tried using a regular expr
-
sorry my mail reader didn't indent. comments in --
I'm new to this. So I used a tutorial to write this. But it shows "Login ok.
Welcome" at once when the page loads. Here is the tutorial:
http://www.ss32.x10
[EMAIL PROTECTED] wrote:
I want to write a php page that can return a 503 with some useful
information.
?>
Is what I've done so far - yet it doesn't work
You need to elaborate or define what "works" means to you, because my
first assumption is that it works just fine. What behavior ar
I was looking for a report generator library and found a good one
called agata.
What I need (and the library does not provide) is the ability to
export the generated report in doc and excel format.
The library does exports the reports in openoffice Write format
but this would require to post-proces
Claudio wrote:
> is http://pear.php.net offline?
>
>
> Warning: Invalid argument supplied for foreach() in
> /usr/local/www/pearweb/include/pear-format-html.php on line 360
>
> Warning: Invalid argument supplied for foreach() in
> /usr/local/www/pearweb/include/pear-format-html.php on line 360
is http://pear.php.net offline?
Warning: Invalid argument supplied for foreach() in
/usr/local/www/pearweb/include/pear-format-html.php on line 360
Warning: Invalid argument supplied for foreach() in
/usr/local/www/pearweb/include/pear-format-html.php on line 360
Warning: Invalid argument sup
> first off I would recommend that you 'pollute' your global scope as
> little as possible.
I agree at all! Thats my opinion, and i don't use global variables at all.
The problem is, other people do. And if I need to use their code I must
include it.
> that said the solution will probably involv
Have you tried the stripslashes() function? That will "unescape"
characters that have been escaped.
On Oct 12, 2005, at 8:03 AM, Martin Selway wrote:
I use a php page which is supposed to return records from a
database table limited to the servername specicified in a drop down
menu.
A ser
I use a php page which is supposed to return records from a database
table limited to the servername specicified in a drop down menu.
A servername may contain a backslash e.g. Server1\SQL1.
When this data is returned from the URL e.g. $server = $_GET['server'];
The name is returned as Server1\\SQ
I'm new to this. So I used a tutorial to write this. But it shows "Login ok.
Welcome" at once when the page loads. Here is the tutorial:
http://www.ss32.x10hosting.com/ss32/files/PHP-logins.pdf
There was an error processing your login.
Login as:
Password:
Login ok. Welcome ";
Hi-
I'm in a situation where I'm required to deal with a hidden form. The
background details are exhausting, but the gist is: one form is
auto-generated and lacks proper formatting. It was part of an open
source package that DID NOT allow templating. So to keep using the
application engine, but pr
Thank you very much. This is what I ended up with if anyone needs it:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Tommy,
Wednesday, October 12, 2005, 10:48:55 AM, you wrote:
> Is it possible to check if an url is a jpg image from php?
#1 Quick and unreliable: Check if there is a .jpg or .jpeg as the final
characters of the URL string.
#2 Bit more complex, very expensive: fopen() the URL, download the
co
Hi,
Is it possible to check if an url is a jpg image from php?
Thank you for your help.
Cheers,
Tommy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Claudio wrote:
Hi,
I'm using PHP 5. I have a class operation that includes php files.
Is there a way to include this files to global scope? So that difined vars
and functions are global accesseble?
first off I would recommend that you 'pollute' your global scope as little as
possible.
seco
Hi,
I'm using PHP 5. I have a class operation that includes php files.
Is there a way to include this files to global scope? So that difined vars
and functions are global accesseble?
I saw that some PHP functions have a context parameter, is something like
this in "eval" or "include" possible?
Suresh Pandian wrote:
im currently working on creating musical forum. i need to create
tables for every song uploaded on the fly to save the comments and
rates entered by the viewers. im unable to create tables on the
fly. can anyone know how to create tables on the fly
.plz t
Suresh Pandian wrote:
hello friends,
im currently working on creating musical forum.
i need to create tables for every song uploaded on the fly to save the comments
and rates entered by the viewers.
im unable to create tables on the fly.
...
if I upl
hello friends,
im currently working on creating musical forum.
i need to create tables for every song uploaded on the fly to save the comments
and rates entered by the viewers.
im unable to create tables on the fly.
can anyone know how to create tables on the fly .plz tell me
77 matches
Mail list logo