Hi Curt,
These are my open shared memories in the server output of ipcs command.
-- Shared Memory Segments
keyshmid owner perms bytes nattch status
0x 18645001 gOLeM 600393216 2 dest
0x162e 18808842 root
Hi!
There is a strange problem now. This is the error message my php file gives.
kernel not configured for shared memory kernel not configured for
semaphores kernel not configured for message queues
The source is as follows:
?php
$shm_id = shmop_open(5678, a, 0, 0);
if (!$shm_id) {
echo
Hi guys.
I've googled but found so many pages that I'm not sure what to use.
I want to use PHP to make use of SOAP.
I've found:
-nuSoap
-libxml(2)
-php-soap
-and others which seemed less important.
Can you recommend which one to use? and which one is the most supported.
Also if I've missed
Angelo Zanetti wrote:
Hi guys.
I've googled but found so many pages that I'm not sure what to use.
I want to use PHP to make use of SOAP.
I've found:
-nuSoap
-libxml(2)
-php-soap
-and others which seemed less important.
Can you recommend which one to use? and which one is the most
Aaron Greenspan wrote:
Yonatan,
And since I'm the Lampshade guy, I'll throw Lampshade out there, as well:
http://www.thinkcomputer.com/software/lampshade/index.html
Unlike a lot of frameworks, Lampshade is entirely procedural, and it's
designed specifically for use with MySQL. I suppose that
Torgny Bjers wrote:
Angelo Zanetti wrote:
Hi guys.
I've googled but found so many pages that I'm not sure what to use.
I want to use PHP to make use of SOAP.
I've found:
-nuSoap
-libxml(2)
-php-soap
-and others which seemed less important.
Can you recommend which one to use? and which one
On Wed, Nov 16, 2005 at 12:40:21PM +0100, Petr Smith wrote:
Who uses PEAR? Mess of old unsupported and undocumented libraries which
only their authors (maybe) can use?
I use PEAR for a few things, such as database abstraction. I admit that
a lot of the less popular modules haven't been
For this to work you must set html and shml as a php file extension in
apache.
This is because shml includes are made before it reaches apache output, so
if you have file a including file b it the same as having only one file
a with copy and paste of file b with shml file extension and thus this
nevermind the short tags issue! ;-)
- there is a chance that autocasting [of function arguments] is going to change
to
be stricter and no longer work the same as explicit casting so that the
following 2
echos statement would no longer work the same (the first would fail).
$str = This is a
Curt Zirzow wrote:
On Tue, Nov 15, 2005 at 05:39:36PM +, Richard Davey wrote:
Hi Jim,
Tuesday, November 15, 2005, 5:25:58 PM, you wrote:
I don't know, but those who do should not use short tags. And those
who hope to should not get into the habit of using short tags.
And for the vast
-Original Message-
From: Leonard Burton [mailto:[EMAIL PROTECTED]
Sent: 16 November 2005 03:39
To: php-general@lists.php.net
Basically here is the regex I used (I am not the best with regexes):
$pattern = /^[0-9]?[A-Z]{1,2}[0-9][A-Z]{1,3}/;
Here are how they look
W1W
W1AW
Curt Zirzow wrote:
On Tue, Nov 15, 2005 at 04:39:05PM -0300, Mariano Guadagnini wrote:
Hi, i�m writting a php program that parses and saves some xml files on a
server. The problem is that i want to catch warnings so as to be able to
store them in a variable, but not to be put directly on
Angelo Zanetti wrote:
I've googled but found so many pages that I'm not sure what to use.
I want to use PHP to make use of SOAP.
If you're using PHP 5, this is a good option:
http://php.net/soap
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
I have started making use of the APC extension to cache opcodes, etc
now I'm also trying to cache the output of some sql queries and I want to
use a hash of the query as key to store/fetch the value e.g:
apc_fetch(md5($qry))
does anyone know of a good reason (including performance reasons) for
The only problem with this is that it would take 444 which is not a
valid call.
Wikipedia defines a HAM call sign here:
http://en.wikipedia.org/wiki/Call_sign#Amateur_radio
A regex based upon this definition might be:
/\b(([A-Z]{1,2})|([A-Z][0-9]))[0-9][A-Z]{1,3}\b/
I tested this out a
Hi to all,
always wondered what's better way to mix html and php code. Here are
three ways of the same code. Which one you prefer? (And why, of caurse :))
Solution 1:
?php
require
Hi afan,
Wednesday, November 16, 2005, 4:12:53 PM, you wrote:
always wondered what's better way to mix html and php code. Here are
three ways of the same code. Which one you prefer? (And why, of
caurse :))
Honestly, I wouldn't pick any of them :)
But if I had to (i.e. forced at gun-point or
Hidy-ho good meighbors and neighborettes!
I continue my, as yet unquenched, fascination with the Windows operating
system[sic].
Does anyone know (I have error reporting set so high it would make your head
swim) why errors wouldn't be output to a browser window when they occur? For
instance, I
Printing error messages to your output can be disabled with the
display_errors directive in your php.ini file. To enable error
printing, the directive should read:
display_errors = On
Cheers,
Dave
Jay Blanchard wrote:
Hidy-ho good meighbors and neighborettes!
I continue my, as yet
Hi Jay,
Wednesday, November 16, 2005, 4:36:25 PM, you wrote:
Does anyone know (I have error reporting set so high it would make
your head swim) why errors wouldn't be output to a browser window
when they occur? For instance, I typed the following;
Are you 100% Tequila-worm sure you've got
[snip]
Printing error messages to your output can be disabled with the
display_errors directive in your php.ini file. To enable error
printing, the directive should read:
display_errors = On
[/snip]
You are correct sir, it is set to off by default. I will hike over to the
data center and flick
Also check to make sure that its the right php.ini file, I have had a
problem in the past when the installer has put the php.ini file in the
WINDOWS directory and there is an existing one in the PHP directory as
well. I would check phpinfo and see where the php.ini file is
located.
On 11/16/05,
Hi all,
After searching for a framework which work with PostgreSQL PHP I've
found Framewerk (http://svn.framewerk.org/) which seem to fit my needs,
the only problem that I've found is that it use the PDO functions.
Now maybe I'm wrong but I understood that database abstraction layers
like
[EMAIL PROTECTED] wrote:
Hi to all,
always wondered what's better way to mix html and php code. Here are
three ways of the same code. Which one you prefer? (And why, of caurse
:))
Solution 1:
I wouldn't pick any of those approaches.
We did a quick POC for a site using approach #1.
Unfortunately, that POC code has lived to go into production.
Now, we are looking into some sort of framework that would allow us to
separatate of PHP code and HTML -- as much as possible. (Looking into
On Wed, Nov 16, 2005 at 10:12:53AM -0600, [EMAIL PROTECTED] wrote:
Hi to all,
always wondered what's better way to mix html and php code. Here are
three ways of the same code. Which one you prefer? (And why, of caurse :))
Solution 2a:
Hi-
I have a number that I am trying to format. It is data coming from a
main frame and
has 8 characters assigned to it (6 and two decimal places). I have
zerofill set up in
MySQL on this field and am working on the best way to display the
number.
Currently I have this:
$sOutput =
Hi Scott,
How do you distinguish between a value filled with zeroes and a value
with 0 in both decimal positions?
For example, why is 3145900 expressed as 3,145.90, and not 31,459.00?
Cheers,
David Grant
Scott Parks wrote:
Hi-
I have a number that I am trying to format. It is data coming
I tried several times as well. So far, no luck. I tried the unsubscribe
address but it doesn't work.
-Original Message-
From: wayne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 9:34 PM
To: php-general@lists.php.net
Subject: [PHP] unsubscribing
I tried to unsubscribe on
The code below lacks the part where the folling DTD attribute is
created: !ATTLIST document id ID #IMPLIED
How can I create the above DTD attribute in the code below?
?php
// Creates an instance of the DOMImplementation class
$oDomImp = new DOMImplementation;
// Creates a DOMDocumentType
You should separate HTML and PHP code into separate files to make it
easily maintainable. Ideally, someone who knows HTML without any
knowledge of PHP would be able to change the layout of the web page
without breaking anything.
There are a bunch of examples of how to do this, usually
At 05:04 PM 11/16/2005, Brent Baisley wrote:
You should separate HTML and PHP code into separate files to make it
easily maintainable. Ideally, someone who knows HTML without any
knowledge of PHP would be able to change the layout of the web page
without breaking anything.
There are a bunch of
Greg Donald wrote:
Maybe Zend will get it right where all the previous attempts I've
seen/used are less than great.
Personally, I would start creation of PHP framework by cleaning up PHP
sytax. It's freakin' impossible to make complex OOP clean:
$this-output(array('dir', 'template'), new
For our company's intranet, I've turned on Windows Authentication in IIS
so that I can automatically capture the network username for everyone
hitting our website. It works well, but I'm having a problem with file
permissions now.
PHP normally executes the page request with the Intranet Guest
Hello,
I'm not sure if this has been asked before or not (probably has) but I
can't seem to find it. I'm looking for a Development Environment for PHP
other then vi. What I'm looking for is an environment which has powerful
debugging techniques and resources. Preferably using a Unix based
Zend Studio
PHPEclipse
LAMP + Notepad :)
On 11/16/05, Tom Cruickshank [EMAIL PROTECTED] wrote:
Hello,
I'm not sure if this has been asked before or not (probably has) but I
can't seem to find it. I'm looking for a Development Environment for PHP
other then vi. What I'm looking for is an
On Wed, 2005-11-16 at 16:17, Miles Thompson wrote:
At 05:04 PM 11/16/2005, Brent Baisley wrote:
You should separate HTML and PHP code into separate files to make it
easily maintainable. Ideally, someone who knows HTML without any
knowledge of PHP would be able to change the layout of the web
Hi All,
Ok, before we start, I know this topic has been flogged to death on how
to load images from a database using PHP. So, before we start, I have
had this method of loading images in this way working for years. :)
However, the problem I've come across has given me a major headache and
On Wed, 2005-11-16 at 18:01, Kevin Smith wrote:
Has anyone come across this problem before? Also the httpd.conf and
php.ini files are identical in everyway, apart from IP addresses.
Did you double check in the phpinfo() output for each server that the
php.ini is being loaded for where you
HI Robert,
I have checked both phpinfo() and php -i via the cli as follows and
both produce the expected results. Also phpinfo() shows the exact same
"Configure Command" data for both servers.
Server #1
[EMAIL PROTECTED] limiteds_v2]# php -i | grep ini
Configuration File (php.ini) Path =
On Wed, Nov 16, 2005 at 11:44:27PM +, Kevin Smith wrote:
HI Robert,
Server #1 (working)
http://www.limiteds.com/includes/image_load.php?image_id=8522field_id=image_full_2
Headers for this one:
Content-Transfer-Encoding: binary
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
P3P:
Curt Zirzow wrote:
On Wed, Nov 16, 2005 at 10:12:53AM -0600, [EMAIL PROTECTED] wrote:
Hi to all,
always wondered what's better way to mix html and php code. Here are
three ways of the same code. Which one you prefer? (And why, of caurse :))
Personally, I present solution 2b. I also don't
On Wed, 2005-11-16 at 18:44, Kevin Smith wrote:
Any other ideas? This is a very strange one.
The headers aren't the same, specifically the second one doesn't send
the type as image/jpeg.
Here's the first one:
-
[EMAIL
On Wed, Nov 16, 2005 at 11:44:27PM +, Kevin Smith wrote:
HI Robert,
I have checked both phpinfo() and php -i via the cli as follows and both
produce the expected results. Also phpinfo() shows the exact same
Configure Command data for both servers.
Server #1
[EMAIL PROTECTED]
Hi Curt,
In that case, what on earth is going on. This is the script which is
on both servers: However, I noticed that if I moved the following
lines to the top of the script:
header("Content-Type: image/jpeg");
header("Content-Transfer-Encoding: binary");
..and hard-code the mime type, it
Hi!
I found the solution to my prob. SELinux was enabled in the server
which needs disabling. After disabling SELinux it was working great.
Thanks for your help guys.
Another small query though, is there anyway to enable SELinux and as
well use shared memory between PHP and C++? I know using
Solved!
I don't believe it, there was an extra carriage return in the require
file "housekeeping.php". This carriage return "is" present on Server
#1, but Server #2 obviously doesn't like it.
I am now going to stick my head out of my window and scream for not
thinking that that could have
Tom Cruickshank wrote:
Hello,
I'm not sure if this has been asked before or not (probably has) but I
can't seem to find it. I'm looking for a Development Environment for PHP
other then vi. What I'm looking for is an environment which has powerful
debugging techniques and resources.
Hello Leonard,
Tuesday, November 15, 2005, 8:39:19 PM, you wrote:
Here are how they look
W1W
W1AW
WA1W
AD4HZ
N9URK
WB6NOA
4N1UBG
Let's do it this way... What are the rules for a valid callsign?
i.e.
- If it's only three characters, it must start with a letter.
- All callsigns must have
HI,
Tuesday, November 15, 2005, 8:39:19 PM, you wrote:
Here are how they look
W1W
W1AW
WA1W
AD4HZ
N9URK
WB6NOA
4N1UBG
Let's do it this way... What are the rules for a valid callsign?
Basicly, you see an example of each different type of callsign. Other
than the patterns you
For long strings I suggest using
echo EOTHML
EOHTML;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Nov 15, 2005 at 09:20:54PM +0100, Age Bosma wrote:
Hi,
I'm trying to compile php 4.4.1 on Solaris 8 but I'm getting the error
Command failed for target 'ext/xml/xml.lo' during the make process.
[snip]
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1582:
`XML_Char'
On Wed, Nov 16, 2005 at 07:29:18PM +0200, Yonatan Ben-Nes wrote:
Hi all,
After searching for a framework which work with PostgreSQL PHP I've
found Framewerk (http://svn.framewerk.org/) which seem to fit my needs,
the only problem that I've found is that it use the PDO functions.
Now
On Tue, Nov 15, 2005 at 09:49:10PM -0700, The Doctor wrote:
IS their a way to set the time to localtime instead of GMT in
the ini file?
No.
Some users are complaining that they are seeing GMT, which this server
is set to.
What timezone are the users expecting the time to be displayed in?
On Wed, Nov 16, 2005 at 07:39:28AM -, George Pitcher wrote:
I grabbed the following from a web-published article (sorry, can't remember
where):
There a few things wrong with it as well.
function validate_email($email) {
if(preg_match(/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@(
55 matches
Mail list logo