Marek Kilimajer wrote:
M. Sokolewicz wrote:
Also note that empty($non_existent_var) will always throw an E_NOTICE
error when the variable in question is not set.
No, it does not.
hmm... seems to have changed since I last checked (PHP5 change?)
I appoligize :)
--
PHP General Mailing List
Hi,
Does anybody know how to determine the length (in seconds) of midi melody?
--
s pozdravem
Bronislav Klucka
--=[ pro2-soft.com ]=--
http://pro2-soft.com
[EMAIL PROTECTED]
+420 605 58 29 22
* webove aplikace
* software na zakazku
Ahh now it becomes clear, you where trying to place the image inline.
There is a way with base64 encoding, but it isnt supported by many
browsers - you can actually say IMG SRC=data:image/png,base64;[...];
where the [...] is the base64 encoded image, so you would need to wrap
an ob start and
Hello,
here is an example:
?php
$server = new SoapServer(null, array('uri' = http://test-uri/;));
$server-handle();
echo \nAlive\n;
?
here is the result
?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
SOAP-ENV:Body
Hello,
I (try) to use a SoapServer in a CLI program.
I want to redirect the SoapServer::handle() output from STDOUT to a
socket stream.
(my second question is how can i prevent SoapServer::handle() to kill my
daemon process... cf php.soap)
How can I o this ?
regards
FENDT Charles
--
PHP General
Is there a way to retrieve and display a single value (customer number) from
a database and display it without using
while ($row = mysql_fetch_array) ($result)){
I have a value I know the query will only ever return a single value. I want
to get it from the database and convert it to a
I am new to PHP and Apache. I am trying to use the include function to
include a file that has my web page header and menu, similar to what I used
to do with SSI.
The content of the include file doesn't display. Instead, I get a link that
says function.main and below that I get a link that
* Bret Hughes [EMAIL PROTECTED]:
I just wish there was a use strict; sort of deal so I would not have to
hunt down logic errors due to mistyping a variable name.
There is, in PHP5: E_STRICT. From the manual
(http://php.net/manual/en/ref.errorfunc.php#errorfunc.constants):
Run-time notices.
Burhan Khalid wrote:
...
David:
You should really post this at the mhash manual entry in php.net. I'm
sure others would find it useful. Good find :)
Cheers,
Burhan
[ snippity snip snip ]
Agreed! I found it very, very useful.
--
Teach a man to fish...
NEW? |
You may find this to be useful:
http://www.google.com/search?hl=enq=PHP+MIDI
-KBear
Original Message Follows:
Hi,
Does anybody know how to determine the length (in seconds) of midi melody?
--
s pozdravem
Bronislav Klucka
--=[ pro2-soft.com ]=--
http://pro2-soft.com
Hi there
I'm a great believer in using the right program for the right job. I
need some advice from people who use both PHP and Perl. I've long been
a fan of PHP and we use it for all our development work. However, I seem
to keep coming up with a bit of a problem when using PHP and I just
On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
* Bret Hughes [EMAIL PROTECTED]:
I just wish there was a use strict; sort of deal so I would not have to
hunt down logic errors due to mistyping a variable name.
There is, in PHP5: E_STRICT. From the manual
[snip]
Is there a way to retrieve and display a single value (customer number)
from
a database and display it without using
while ($row = mysql_fetch_array) ($result)){
I have a value I know the query will only ever return a single value. I
want
to get it from the database and convert it to a
Hi,
Wednesday, February 16, 2005, 9:48:41 PM, you wrote:
rac Is there a way to retrieve and display a single value (customer number)
from
rac a database and display it without using
rac while ($row = mysql_fetch_array) ($result)){
rac I have a value I know the query will only ever return a
Jason Wong wrote:
On Saturday 12 February 2005 11:28, Ugo Bellavance wrote:
Please forgive me if this specific question has already been
addressed, but I'm doing tests to figure out what are the minimal
permissions I can give on my files and folders for a PHP application
and I just can't find
Hello,
I need to create solution for user authentication/recognition in my web
page. I think it would be a good idea to use mysql database for storing the
user info because the user info is later used to determine what parts of
site the recognized user is allowed to update.
The site is for a
Ugo Bellavance wrote:
If the needed permissions for standard PHP files and directories are
'r' on files and 'r-x' on directories, how can I set my umask so that
files and directories are always created as such? I looked up 'man
umask' and it seems to treat files and directories the same
Richard Lynch wrote:
Ugo Bellavance wrote:
If the needed permissions for standard PHP files and directories are
'r' on files and 'r-x' on directories, how can I set my umask so that
files and directories are always created as such? I looked up 'man
umask' and it seems to treat files and
William Stokes wrote:
Hello,
I need to create solution for user authentication/recognition in my web
page. I think it would be a good idea to use mysql database for storing the
user info because the user info is later used to determine what parts of
site the recognized user is allowed to update.
On Wednesday 16 February 2005 23:30, Ugo Bellavance wrote:
If the needed permissions for standard PHP files and directories
are 'r' on files and 'r-x' on directories, how can I set my umask so
that files and directories are always created as such? I looked up
'man umask' and it seems to
Hi
I've a strange problem
When I try to send a form with method=POST to a php-file I always get an
HTTP 404 error.
I really don't know why, because the file exists on the server.
I use IIS 5.1
Tnx.
Stefan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I have a program which creates a lot of children over the time, which
terminate themselves after they are finished.
After some time however, the parent process hangs; apparently in
pcntl_fork(). The child from this fork, however, seems to run normally.
An strace on the parent shows
Bret Hughes wrote:
On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
* Bret Hughes [EMAIL PROTECTED]:
I just wish there was a use strict; sort of deal so I would not have
to
hunt down logic errors due to mistyping a variable name.
There is, in PHP5: E_STRICT. From the manual
John Cage wrote:
I'm a great believer in using the right program for the right job. I
need some advice from people who use both PHP and Perl. I've long been
a fan of PHP and we use it for all our development work. However, I seem
to keep coming up with a bit of a problem when using PHP and I
Dave Adler wrote:
I am new to PHP and Apache. I am trying to use the include function to
include a file that has my web page header and menu, similar to what I
used
to do with SSI.
The content of the include file doesn't display. Instead, I get a link
that
says function.main and below that
Hi
I've a strange problem
When I try to send a form with method=POST to a php-file I always get an
HTTP 404 error.
I really don't know why, because the file exists on the server.
I use IIS 5.1
Tnx.
Stefan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
* [EMAIL PROTECTED] [EMAIL PROTECTED]:
Is there a way to retrieve and display a single value (customer number) from
a database and display it without using
while ($row = mysql_fetch_array) ($result)){
I have a value I know the query will only ever return a single value. I want
to get it
Charles FENDT wrote:
?php
$server = new SoapServer(null, array('uri' = http://test-uri/;));
$server-handle();
echo \nAlive\n;
?
here is the result
?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
SOAP-ENV:Body
Hello Stefan,
Wednesday, February 16, 2005, 12:32:55 AM, you wrote:
S I've a strange problem When I try to send a form with method=POST
S to a php-file I always get an HTTP 404 error. I really don't know
S why, because the file exists on the server.
Can you show us the code for the form?
--
Richard,
Thanks for the feedback. The reference to the file location was the problem.
My include statement was
include(/includes/menu.inc);
I changed it to
include ($_SERVER[DOCUMENT_ROOT]./includes/menu.inc);
This solved the problem.
David
Richard Lynch [EMAIL PROTECTED] wrote in
Richard, thanks for the reply. I've not been on the list for a while,
so good to see you're still helping us less-knowledgeable people out :)
If you already *KNOW* Perl and want to use it, its string manipulation
package is probably better from a sheer performance stand-point.
No, I don't
--- Stefan [EMAIL PROTECTED] wrote:
When I try to send a form with method=POST to a php-file I always
get an HTTP 404 error.
The action attribute of the form tag is what determines the URL that the
browser requests. When no resource exists at this URL, you get a 404
response after submitting
Burhan Khalid wrote:
David Norman wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I thought some other people would be interested in the other hashes
that you can do with mhash that aren't on the php.net docs after the
recent news that SHA-1 might be weaker than previously thought:
On Wed, 2005-02-16 at 10:34, Richard Lynch wrote:
Bret Hughes wrote:
On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
* Bret Hughes [EMAIL PROTECTED]:
I just wish there was a use strict; sort of deal so I would not have
to
hunt down logic errors due to mistyping a variable
Selon Richard Lynch [EMAIL PROTECTED]:
Charles FENDT wrote:
?php
$server = new SoapServer(null, array('uri' = http://test-uri/;));
$server-handle();
echo \nAlive\n;
?
here is the result
?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope
[EMAIL PROTECTED] wrote:
On 15 Feb 2005 Richard Lynch wrote:
Throw an ab (Apache Benchmark) test at it and find out.
Don't just guess or sit there wondering.
You could run test in about the time it took to compose this email --
Perhaps if you are already familiar with ab, which I'm not
Stefan wrote:
I've a strange problem
When I try to send a form with method=POST to a php-file I always get an
HTTP 404 error.
I really don't know why, because the file exists on the server.
I use IIS 5.1
If IIS is mis-configured, we can't help you here...
If it's in the PHP code, you'd
On Wed, 2005-02-16 at 10:17, Jason Wong wrote:
On Wednesday 16 February 2005 23:30, Ugo Bellavance wrote:
If the needed permissions for standard PHP files and directories
are 'r' on files and 'r-x' on directories, how can I set my umask so
that files and directories are always created
Steve wrote:
I have a program which creates a lot of children over the time, which
terminate themselves after they are finished.
After some time however, the parent process hangs; apparently in
pcntl_fork(). The child from this fork, however, seems to run normally.
An strace on the parent
Stefan wrote:
Hi
I've a strange problem
When I try to send a form with method=POST to a php-file I always get an
HTTP 404 error.
I really don't know why, because the file exists on the server.
What are the logs saying? I remember some problems with IIS + php and
post method, it was due to some
John Cage wrote:
ok, well its actually the attachment we're after. basically we have a
client that sends an automated update email via some software and we're
piggy-backing on it to grab the data out. The email contains a password
protected zip file. We're pulling the email down (from another
Jamie,
Thanks for your detailed response and suggestions. Here is where I am
at currently:
I have set up a [EMAIL PROTECTED] address and POP3 account on my server to
handle all bounces. When my system sends out the email campaign and
loops through the addresses, I encode the recipient address
Hi,
I am trying to upgrade my server from 4.3.10 to 5.0.3 without luck.
The compile goes fine, I install the libphp5.so and switch the
LoadModule. When I restart apache it loads fine (service httpd
status) but even a simple phpInfo() call aborts.
When I call the cli with the same php script,
Richard Lynch wrote:
...
http://www.schneier.com/blog/archives/2005/02/sha1_broken.html
Before we get a hundred posts about SHA-1 being broken would eveyrbody
please read:
http://nuglops.com/blog/index.php?p=1021
and maybe *ALL* the contributions way down at the bottom of the original
post link?
That doesn't look too difficult. Thanks... I'll think of something as to
prevent the 2nd page from showing up in the 2nd browser window or 2nd
browser tab window or with the back/forward browser button..
Scott
Jason Barnett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--
PHP
It's common mistake what you are doing...
the first thing should be to test if there is such key in array:
if (array_key_exists('cmd',$_POST))
{
}
this means to test it the variable exists, then you can test if it was set
Brona
Chris W. Parker wrote:
M. Sokolewicz mailto:[EMAIL PROTECTED]
on
On Wed, 16 Feb 2005 09:36:26 -0800 (PST), Richard Lynch [EMAIL PROTECTED]
wrote:
It's literally an hour's work to alter the code to use MySQL to store the
sessions instead of the hard drive.
Not really, maybe 5 minutes.. here's the code:
Make the table in your database:
CREATE TABLE
* Stefan [EMAIL PROTECTED]:
I've a strange problem
When I try to send a form with method=POST to a php-file I always get an
HTTP 404 error.
I really don't know why, because the file exists on the server.
What are you setting the action attribute to? Should be the path to your
script.
If the
Check out abstraction layers
I use adodb
http://adodb.sourceforge.net/
makes coding much much easier ;-))
eg - mysql example
$sql = insert into table (col, col2)values('$this','$that');
$db-execute $sql;
// get last id
$new_id = $db-getOne('select last_insert_id()');
have fun
Pete
[EMAIL
I'm a great believer in using the right program for the right job. I
need some advice from people who use both PHP and Perl. I've long been
a fan of PHP and we use it for all our development work. However, I seem
to keep coming up with a bit of a problem when using PHP and I just
wanted to see if
I need to create solution for user authentication/recognition in my web
page. I think it would be a good idea to use mysql database for storing the
user info because the user info is later used to determine what parts of
site the recognized user is allowed to update.
William,
Take a look at
I am looking for a way to manage email bouncebacks on my Linux server
for one of my client's email marketing system. What I would like to do
is have a way of capturing the email address from the header of each
bounce and insert it into a MySQL table. At that point I can do the
requisite
Hi,
forgive me if this is a complete noob question
What i want to do is create an object at runtime with members and
methods based on the result of queries from my db back end. is this (a)
possible? or (b) something i should get out of my head and go and find a
better solution?
Hi,
I have a problem with a query, I get the following error message:
You have an error in your SQL syntax. Check the manual that corresponds to
your MySQL server version for the right syntax to use near '' at line 23
If I echo the query to the screen and run the query to the database via SSH
joe Lovick wrote:
Hi,
forgive me if this is a complete noob question
What i want to do is create an object at runtime with members and
methods based on the result of queries from my db back end. is this (a)
Creating an object based on the result of a query shouldn't be a
problem.
Shaun wrote:
I have a problem with a query, I get the following error message:
You have an error in your SQL syntax. Check the manual that corresponds to
your MySQL server version for the right syntax to use near '' at line 23
If I echo the query to the screen and run the query to the database
Shaun mailto:[EMAIL PROTECTED]
on Wednesday, February 16, 2005 1:15 PM said:
I have a problem with a query, I get the following error message:
You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use
near '' at line
Could it be a quote-escaping problem?
It would be easier to tell if you could show us the query and the code
you're using.
/Mattias
Shaun wrote:
Hi,
I have a problem with a query, I get the following error message:
You have an error in your SQL syntax. Check the manual that corresponds to
your
Jamie Alessio wrote:
I'm a great believer in using the right program for the right job. I
need some advice from people who use both PHP and Perl. I've long been
a fan of PHP and we use it for all our development work. However, I seem
to keep coming up with a bit of a problem when using PHP and I
Daniel Bowett mailto:[EMAIL PROTECTED]
on Wednesday, February 16, 2005 2:06 PM said:
[snip 56 lines...]
PHP or Perl??? I'd say Python :)
Please trim your posts. KTHXBYE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to write a function which will read a string of bytes from a
binary file and convert 8 byte sequences to Float type data. I've been
through the manual and can find nothing but think I must be missing
something. It can't be that hard. Can someone help me out.
Thanks
Ian
--
PHP
Hello again list,
Im writing a class to display a bunch of pictures form my DB and when
I call a function through the class I get an error and I dont quite
understand why. Now Im fairly new to classes so this might be
something that is totally obvious, but I cant seem to figure it out.
The code
Hi there guys... First time caller here ;).
I'm currently developing a content management system. One of it's
features is that it's going to be completely standards compliant (XHTML
1.1).
I'm having some troubles however, and they come in the form of
sessions. When I use session_start(), it
I am experimenting on my site and I want to make it password protected like
www.realsolution.com.
If any one enters correct user name and password, only then they will be
able to enter into my site.
How can I do that in PHP?
Any ideas? Thanks a ton in advance.
--
PHP General Mailing List
On 16 Feb 2005 Richard Lynch wrote:
Use the exact same session stuff you have now and just dump the
serialized data into SQL using the 5 functions for session handling.
Oh, OK, that's what you meant about the 5 functions. I am not sure of
the advantage to that, actually something I've
I am attempting to install both phpMyAdmin and phpLens. When attempting to
connect to the mySql server I get the following error message:
Unable to connect. Please click on Previous and correct.
[Client does not support authentication protocol requested by server;
consider upgrading MySQL
On Wed, 2005-02-16 at 21:31, Kevin Javia wrote:
I am experimenting on my site and I want to make it password protected like
www.realsolution.com.
If any one enters correct user name and password, only then they will be
able to enter into my site.
How can I do that in PHP?
Any ideas?
On Wed, 2005-02-16 at 18:36, Ian Johnson wrote:
I am trying to write a function which will read a string of bytes from a
binary file and convert 8 byte sequences to Float type data. I've been
through the manual and can find nothing but think I must be missing
something. It can't be that
b1nary Developement Team wrote:
I'm having some troubles however, and they come in the form of
sessions. When I use session_start(), it throws the PHPSESSID into the
URL of all of my links and form actions and what not. This is a problem
because in my forms it throws in a hidden input, which
Ian Johnson wrote:
I am trying to write a function which will read a string of bytes from a
binary file and convert 8 byte sequences to Float type data. I've been
through the manual and can find nothing but think I must be missing
something. It can't be that hard. Can someone help me out.
Have
Mbneto wrote:
When I call the cli with the same php script, even a more complex one
it works flawlessly.
You may want to double check that the CLI parser isn't the old one:
$ php -v
As for the aborting Apache problem, you may want to look through the
error logs.
HTH,
-Dan
--
PHP General Mailing
NathanielGuy#21 wrote:
Error thrown
--
Parse error: parse error, unexpected T_STRING in
/home/blacknut/public_html/picserv/includes/gallery.class on line 52
--
For what it's worth, I'm able to execute the code without parse errors
(v5.0.3). A long shot, but could there be another file called
On Wed, 2005-02-16 at 19:07, b1nary Developement Team wrote:
Hi there guys... First time caller here ;).
I'm currently developing a content management system. One of it's
features is that it's going to be completely standards compliant (XHTML
1.1).
I'm having some troubles however, and
David Freedman wrote:
I am attempting to install both phpMyAdmin and phpLens. When attempting to
connect to the mySql server I get the following error message:
Unable to connect. Please click on Previous and correct.
[Client does not support authentication protocol requested by server;
consider
I have installed PHP5 on IIS. When I try to make a connection the the MySQL
database with the following code:
$conn = mysql_connect(localhost, root, ) or die(Unable to connect);
I get the following error in the browser:
Undefined function my_sqlconnect().
What can be the problem?
I
On Wed, 2005-02-16 at 23:11, Dan Phiffer wrote:
NathanielGuy#21 wrote:
Error thrown
--
Parse error: parse error, unexpected T_STRING in
/home/blacknut/public_html/picserv/includes/gallery.class on line 52
--
For what it's worth, I'm able to execute the code without parse errors
Jacques wrote:
I have installed PHP5 on IIS. When I try to make a connection the the MySQL
database with the following code:
$conn = mysql_connect(localhost, root, ) or die(Unable to connect);
I get the following error in the browser:
Undefined function my_sqlconnect().
What can be the problem?
OK. Thanks a lot. So I need to studu the $_Session more closely.
Jamie Alessio [EMAIL PROTECTED] kirjoitti
viestissä:[EMAIL PROTECTED]
I need to create solution for user authentication/recognition in my web
page. I think it would be a good idea to use mysql database for storing
the user
Kevin Javia wrote:
I am experimenting on my site and I want to make it password protected like
www.realsolution.com.
http://www.zend.com/zend/tut/authentication.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David Freedman wrote:
I am attempting to install both phpMyAdmin and phpLens. When attempting to
connect to the mySql server I get the following error message:
Unable to connect. Please click on Previous and correct.
[Client does not support authentication protocol requested by server;
consider
Kevin,
I'm having some issues with my email client right now so I'm sorry if
you've already found the answer. There is a way for PHP to do this
without the need to modify your web server's configuration or bothering
with .htaccess/ .htpasswd files by simply modifying the http headers
that your
Hi
On Mon, 14 Feb 2005 11:34:15 -0600, Chris Boget [EMAIL PROTECTED] wrote:
Is there a way to take an already existing DomDocument object
and appending it as a child node within a seperate DomDocument
object? Or would I have to pull it apart first and generate new
DomNode/DomElement objects
82 matches
Mail list logo