php-general Digest 11 Jun 2008 23:30:47 -0000 Issue 5509
Topics (messages 275227 through 275239):
Re: XML DOM problem with getAttribute(string)
275227 by: dominussuus.gmail.com
275228 by: Rob Richards
Re: regular expression to find body text in mobile
275229 by: Richard Heyes
275230 by: Yui Hiroaki
275233 by: Bastien Koert
275234 by: Nitsan Bin-Nun
Re: About HTML & CSS
275231 by: Boyd, Todd M.
Re: printer problem with network shared printers
275232 by: Dan Shirah
error "Failed opening for inclusion"
275235 by: Lou Baccari
Forum coded in PHP with mail and news gateway
275236 by: Michelle Konzack
creating zip's with php - high memory usage
275237 by: Aaron Axelsen
Command-line PHP memory limit
275238 by: Rene Fournier
Re: Problem with output_buffering directive in cli
275239 by: Nathan Nobbe
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Thank you, Rob,
Unfortunately, that didn't work, either (though I'll keep it in mind).
The returned string is still empty.
I also unsuccessfully fetched the 'xmlns' attribute using
getAttribute(). Interestingly, although hasAttributes(void) returns
true, hasAttribute('xmlns'), and hasAttribute(' xml:lang') both return
false.
On 11/06/2008, Rob Richards <[EMAIL PROTECTED]> wrote:
> Borden Rhodes wrote:
>> I'm having a pig of a time trying to figure this one out: I have an
>> XHTML document which I've loaded into a DOMDocument because I want to
>> add more tags to it. However, since I live in a bilingual country, I
>> want to get the document's xml:lang attribute so I know what language
>> to add my new tags in.
>>
>> I want to write
>>
>> $lang = $page->documentElement->getAttribute('xml:lang');
>> OR
>> $lang = $page->documentElement->getAttributeNS('xml', 'lang');
>>
>> but both of these return empty strings, indicating that it cannot find
>> the xml:lang attribute. And yet,
>> $page->documentElement->hasAttributes() returns true and
>>
>> $page->documentElement->attributes->getNamedItem('xml:lang')->nodeValue;
>>
>> works correctly. So why doesn't my preferred code?
>
> The xml prefix is bound to the http://www.w3.org/XML/1998/namespace
> namespace.
>
> $lang =
> $page->documentElement->getAttributeNS('http://www.w3.org/XML/1998/namespace',
> 'lang');
>
> Rob
>
--- End Message ---
--- Begin Message ---
You might want to put a link to a complete example because
$page->documentElement->getAttributeNS('http://www.w3.org/XML/1998/namespace',
'lang'); is how you access it.
Rob
[EMAIL PROTECTED] wrote:
Thank you, Rob,
Unfortunately, that didn't work, either (though I'll keep it in mind).
The returned string is still empty.
I also unsuccessfully fetched the 'xmlns' attribute using
getAttribute(). Interestingly, although hasAttributes(void) returns
true, hasAttribute('xmlns'), and hasAttribute(' xml:lang') both return
false.
On 11/06/2008, Rob Richards <[EMAIL PROTECTED]> wrote:
Borden Rhodes wrote:
I'm having a pig of a time trying to figure this one out: I have an
XHTML document which I've loaded into a DOMDocument because I want to
add more tags to it. However, since I live in a bilingual country, I
want to get the document's xml:lang attribute so I know what language
to add my new tags in.
I want to write
$lang = $page->documentElement->getAttribute('xml:lang');
OR
$lang = $page->documentElement->getAttributeNS('xml', 'lang');
but both of these return empty strings, indicating that it cannot find
the xml:lang attribute. And yet,
$page->documentElement->hasAttributes() returns true and
$page->documentElement->attributes->getNamedItem('xml:lang')->nodeValue;
works correctly. So why doesn't my preferred code?
The xml prefix is bound to the http://www.w3.org/XML/1998/namespace
namespace.
$lang =
$page->documentElement->getAttributeNS('http://www.w3.org/XML/1998/namespace',
'lang');
Rob
--- End Message ---
--- Begin Message ---
Doese any know how to find text in mobile using Regular Expression?
I am using php.
Mobile what?
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
+----------------------------------------+
| Access SSH with a Windows mapped drive |
| http://www.phpguru.org/sftpdrive |
+----------------------------------------+
--- End Message ---
--- Begin Message ---
Ooops!
It it mobile mobile phone!
Regards,
Yui
2008/6/11 Richard Heyes <[EMAIL PROTECTED]>:
>> Doese any know how to find text in mobile using Regular Expression?
>> I am using php.
>
> Mobile what?
>
> --
> Richard Heyes
>
> Employ me:
> http://www.phpguru.org/cv
>
> +----------------------------------------+
> | Access SSH with a Windows mapped drive |
> | http://www.phpguru.org/sftpdrive |
> +----------------------------------------+
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Wed, Jun 11, 2008 at 9:43 AM, Yui Hiroaki <[EMAIL PROTECTED]> wrote:
> Ooops!
> It it mobile mobile phone!
>
> Regards,
> Yui
>
> 2008/6/11 Richard Heyes <[EMAIL PROTECTED]>:
> >> Doese any know how to find text in mobile using Regular Expression?
> >> I am using php.
> >
> > Mobile what?
> >
> > --
> > Richard Heyes
>
You want to search for text that is on a screen on a mobile device? PHP runs
on the server, so it won't be able to manage that.
Can you be more clear about the goal? Help us understand what you want to
do.
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
I'm confused.
PHP runs on the server, so it shouldn't be a problem at all to run regex
search/reaplce/match/whatever on mobile phone internet, maybe you are
talking on JS regex?
Nitsan
On 11/06/2008, Yui Hiroaki <[EMAIL PROTECTED]> wrote:
>
> Doese any know how to find text in mobile using Regular Expression?
> I am using php.
>
> Regards,
> Yui
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Alberto García Gómez [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 10, 2008 9:49 PM
> To: PHP General list
> Subject: [PHP] About HTML & CSS
>
> Hi Fellow:
>
> I wonder if there some list about HTML/CSS/JavaScript and Genereal Web
> Design.
>
> Thanks
STFW:
http://www.w3.org/QA/2002/04/valid-dtd-list.html
http://www.w3schools.com/html
http://www.w3schools.com/css
http://www.w3schools.com/js
As far as mailing lists, asking on a PHP mailing list is probably not your best
bet.
Todd Boyd
Web Programmer
--- End Message ---
--- Begin Message ---
Kasun,
I would suggest using simple Javascript to allow them to print.
Something like:
**THE JAVASCRIPT**
<script language="JavaScript">
<!--
function printWindow() {
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
//-->
</script>
**PUT THIS ANYWHERE IN YOUR FORM**
<table align="center" border="0" cellpadding="0" cellspacing="0"
width="680">
<tr>
<td height="13" align="right" class="tblhead"><a
href="javascript:printWindow()">Print This Page</a></td>
</tr>
</table>
--- End Message ---
--- Begin Message ---
sorry if I double posted:
Hello,
I'm trying to move my apache server from a Fedora Core 1 with PHP V
4.3.8 onto a newly built Centos 5 with PHP 5.1.6, all applications
installed by rpms. The www root dir is "/projects/proj2/www/html" and
it is a nfs mounted share.
During the installation I had moved all of the contents from the remote
mount "/projects/proj2/www/html" to a local disk on the CentOS, I tested
and I believed I had resolved all issues on the new server.
Now when I changed my httpd.conf to point to the nfs share
"/projects/proj2/www/html" my php scripts fail, even " phpinfo(); "
fails. All errors are identical to the following except for the php
file name.
====
*Warning*: Unknown: failed to open stream: Value too large for defined
data type in *Unknown* on line *0*
*Warning*: Unknown: Failed opening
'/projects/proj2/www/html/php_info.php' for inclusion
(include_path='.:/usr/share/pear') in *Unknown* on line *0
* ====
Again when I run these same scripts from the local disk I do not
received any errors. Any ideas to correcting this problem?
Thanks,
Lou.
--- End Message ---
--- Begin Message ---
Hello,
because it is actual for me while having some problems with Ubuntu's
LAUNCHPAD (does not support threating) I like to know, whether there is
a light Forum software written in PHP availlable.
It should support:
1) PostgreSQL (my own database)
2) MySQL (my current hosting provider offer it only)
3) Threating
4) Gateway to mailinglist including threating
5) Gateway to usenet including threating
6) Subscriber only
7) Scanning for SPAM :-D
I like to install it on my "devel" website and have the need for a
category for each software package I have. So it is not a big thing
with currently 61 packages bu maybe increase to arround 150.
My current mailinglist software is "courier-mlm" which works nicely.
Any suggestions?
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am working on a script that will take a few folders, copy them to a
temp location, and then create a zipfile. The problem i'm running into
is that some of these zips are upwards of 300mb, and when I use exec to
execute the zip function, or use the ZipArchive extension, the php
memory usages increases - close to 300mb. Is there any way to get
around this spike of memory usage from within php? Or is there a better
way alltogether to handle this? I'm open to suggestions!
- --
Aaron Axelsen
[EMAIL PROTECTED]
Great hosting, low prices. Modevia Web Services LLC --
http://www.modevia.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIUEYuuucONIvD0AMRAnhCAJ9BaE1jA0VSmhxs9o7EnCGmOxUbdgCglbCs
iWFyJr5MVW5rBfmAB8MbSDo=
=oBqU
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Is it possible to set a unique memory limit for PHP scripts that are
run from the command line? (That is, different from what's specified
in php.ini.)
...Rene
--- End Message ---
--- Begin Message ---
On Wed, Jun 11, 2008 at 4:35 AM, Mike Burba <[EMAIL PROTECTED]> wrote:
> I think I solved this issue by using the -d option on the commandline.
>
> When I use:
> php -d output_buffering=On ./filename.php
>
> the local value / active value of output_buffering is correct.
kudos, and nice find ;)
-nathan
--- End Message ---