php-general Digest 9 Feb 2006 20:36:14 - Issue 3954
Topics (messages 230144 through 230178):
Re: Is my user system bad?
230144 by: Andrei
XML parsing
230145 by: Peter Lauri
230146 by: Kim Christensen
230151 by: Peter Lauri
230154 by: Barry
Hi Peter,
I use about same system, but instead putting ids of tables into session
variable (which is easy to guess) I use a md5( uniqid( rand(), true ) )
string and I create an enreg into online tables (similar to your session
table) with this string as primary key. I also add into
Hi,
When I go thru this documentation the parsing seem to be very complex. With
Java this was not the case.
Assume I have XML like this:
$xml = 'greetingfromPeter/fromtoThe group/to/greeting';
I would like to get the value of 'from' and 'to'.
My dream function would be:
On 2/9/06, Peter Lauri [EMAIL PROTECTED] wrote:
Or maybe an function that create an array from the XML:
$arr = xml_to_array($xml);
Any one who can give a really SIMPLE example of this?
http://php.net/xml
Have you checked the user comments?
--
Kim Christensen
[EMAIL PROTECTED]
--
PHP General
Fredrik Tillman wrote:
PROBLEM SOLVED!
yeah! :-)
What I actually was including was a variable ($main) and since some my
pages are called on from different pages in different folders what I
actually did was seting $main to the full URL to the site
(http://mysite.com/page.php) to avoid
Chris wrote:
Hi Matt,
I use define's.
me too. mostly because unless you use the runkit extension or
something you can't undefine or change the values of a constant.
bare in mind though that define() is horribly slow (to paraphrase
Rasmus) which may be the reason many projects choose to use
Fredrik Tillman wrote:
PROBLEM SOLVED!
What I actually was including was a variable ($main) and since some my
pages are called on from different pages in different folders what I
actually did was seting $main to the full URL to the site
(http://mysite.com/page.php) to avoid confusion. But
On 2/9/06, Jochem Maas [EMAIL PROTECTED] wrote:
bare in mind though that define() is horribly slow (to paraphrase
Rasmus) which may be the reason many projects choose to use variables
instead. see here:
Thanks Chris and Jochem!
That should've been my follow up question - which is, if define()
Stupid me :) It has all I need!!!
And the opposite way, creating XML, must be even easier. Any function that take
an array as input, and returns XML? If not, I just need to create a recursive
function that loops thru the array. If there is a standard function I would be
very happy.
Right now
Hello!
Can Curl be configured to use SSL certificates in strings, rather than in
files? I am storing my user's certificates in a mySQL database, and I don't
really want to write those certificates to a file, and then use the file, and
then delete them when I'm done. I would much rather just
curl_setopt($Curl, CURLOPT_SSLCERT, /tmp/cert.pem);
Never used it, but possibly...
curl_setopt($Curl, CURLOPT_SSLCERT,
/some/php/file/to/echo/cert/from/db.php);
just a thought :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Peter Lauri wrote:
Stupid me :) It has all I need!!!
And the opposite way, creating XML, must be even easier. Any function that take
an array as input, and returns XML? If not, I just need to create a recursive
function that loops thru the array. If there is a standard function I would be
hi Jason,
you made the following claim on sitepoint (I would have reacted there
but couldn't be bother to crteate another website account) - which
I think is incorrect:
QUOTE
Nobody has yet brought up the slightly annoying issue that interfaces are actually implmented as abstract classes under
Hi I can't install PHP on Windows.
The error: Windows Can't found c:\Windows\System32\issext.vbs
What Can I do?
Please Help me!
Thnaks, Tom.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ing. Tomás Liendo wrote:
Hi I can't install PHP on Windows.
The error: Windows Can't found c:\Windows\System32\issext.vbs
What Can I do?
Please Help me!
Thnaks, Tom.
Copy the issext.vbs to your system32 folder.
Don't have it?
Well:
www.google.de
--
Smileys rule (cX.x)C --o(^_^o)
Dance
Hi,
Saturday, February 4, 2006, 2:53:32 PM, you wrote:
p Hi,
p I'm still trying to get to grips with REGEX and have hit a hurdle with
p the following:
p I have this bit of text:
p (\(EX\) RV-6 )
p I want to remove the '\(EX\)' part of it
p so leaving just: ( RV-6 )
p Any suggestions would be
Matt:
That should've been my follow up question - which is, if define() is a
lot safer and more elegant to use than variables, why do many projects
use variables?
My use of CONSTANCE's and variables depend upon need. If I require a
constant throughout the main() portion of my code, then I
tedd wrote:
Matt:
That should've been my follow up question - which is, if define() is a
lot safer and more elegant to use than variables, why do many projects
use variables?
My use of CONSTANCE's and variables depend upon need. If I require a
constant throughout the main() portion of my
Sorry but I can't find the file issext.vbs!!
Where can I get it Can you send me this file?
Thank you!
Tom
Barry [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Ing. Tomás Liendo wrote:
Hi I can't install PHP on Windows.
The error: Windows Can't found
Ing. Tomás Liendo wrote:
Sorry but I can't find the file issext.vbs!!
Where can I get it Can you send me this file?
Thank you!
Tom
have you used your pc's search function to search for the file?
I don't have an ISS server so i can't send it to you
--
Smileys rule (cX.x)C --o(^_^o)
Yes, I don't have the file in my PC and I can't find It on Google.
Well... I'll see
Tkank you very much.
Tom.
Barry [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Ing. Tomás Liendo wrote:
Sorry but I can't find the file issext.vbs!!
Where can I get it Can you send me
Sorry but I can't find the file issext.vbs!!
Where can I get it Can you send me this file?
I don't run IIS, so I can't send you the file. Maybe you should run Apache
instead, the way ?php echo $deiety; ? intended PHP to be run ;-)
JM
--
PHP General Mailing List
I am attempting to call a script that actually renders the image and
then check for a session variable. However, the session variable does
not seem to be there...
?php
$fn = $_GET['id']; // filename
$p = $_GET['p']; // path
$img = /srv/pix/ . $p . / . $fn ; // where the photos are + path +
hello everybody,
I am having one doubt in static
variable declaration,whether static variable works
only with in the function if that function is called
more than one times.this is my code facind problem.
STATIC $m=0;
if($m==0):
$m=$m+1;
print a
Hi All,
This may turn out to be more of an apache question (but I'm hoping there
are some apache experts on the list as well), but I'm wondering how I
would go about automatically redirecting requests for /rss.xml to read
the contents of /rss/rss.xml instead?
Any help appreciated!
Much
Best group member,
I want to read the content from a socket that is sending XML.
The socket_read(socket, length) takes the two parameters. But what I am
concerned about it, I do not actually know the 'length' of what is being
sent. How do I protect myself from that?
Right now I just
Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED]
wrote in message
I have a config.inc.php file which basically contains all the
configuration info that the applications needs (directory/file
locations, database credentials, etc). The information there is set
using the define() function.
I want to read the content from a socket that is sending XML.
IIRC, you just read in a loop while there's still stuff to read.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ok, any standard value for the size to read per time? Will the total time be
faster if a larger maximum size is choosed?
-Original Message-
From: Oli Howson [mailto:[EMAIL PROTECTED]
Sent: Friday, February 10, 2006 12:10 AM
To: php-general@lists.php.net
Subject: Re: [PHP] socket_read
Check out some XML examples, maybe you can find more there :
http://www.weberdev.com/AdvancedSearch.php?example=searchtype=categorysort
=titlesearch=category=XMLdate=secondary=SearchIn=All+CategoriesIsSub=
PHPFunctions=Articles=on
Sincerely
berber
Visit the Weber Sites Today,
To see where
Hello,
I'm writting a domain checker and for that, I want to use fsockopen to send
data to the registry's whois database.
Unfortunately I have always Connection refused, Error 111 when try to
create a socket...
Even the example shown on php.net website doesn't work, so I believe it's
not a code
I'm writting a domain checker and for that, I want to use
fsockopen to send
data to the registry's whois database.
Unfortunately I have always Connection refused, Error 111
when try to
create a socket...
Are you just doing whois lookups? If so, there's an easier way on a linux
box:
This may help :
http://www.weberdev.com/get_example-4335.html
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
SEO Data Monitor : http://seo.weberdev.com
PHP MySQL Forums : http://www.weberforums.com
Free Uptime Monitor :
Hello,
I am also creating the same thing...
I use socket_create(), and it works fine. Who is the registrar?
Well I try querying denic which is the german registry.
I finally got it to work, but it seems it is a name-ip resolving issue.
Instead of using the whois.denic.de as a name, I used the
On 2/9/06, Peter Lauri [EMAIL PROTECTED] wrote:
And the opposite way, creating XML, must be even easier. Any function that
take an array as input, and returns XML? If not, I just need to create a
recursive function that loops thru the array. If there is a standard function
I would be very
At 07:56 PM 2/8/2006, Matt Arnilo S. Baluyos (Mailing Lists) wrote:
I have a config.inc.php file which basically contains all the
configuration info that the applications needs (directory/file
locations, database credentials, etc). The information there is set
using the define() function.
Hello,
About 2 years ago i setup Apache/1.3.28 (Unix) PHP/4.3.4RC1
mod_ssl/2.8.15 OpenSSL/0.9.7c and mysql on BSD Unix and did up some
simple php enabled web pages to add / remove /edit / search entries to
a 1 table mysql database to keep track of abuse complaints for my company.
This week
Hello Everyone,
I'm succesfully generate report from mysql table using PEAR :
Spreadsheet_Excel_Writer, but I have problem to generate from table
which contain long text, the text is not download completely.
such as blablabla.
it only contain blab
How can manipulate PEAR, to get full
On Thu, Feb 09, 2006 at 04:04:49PM -0500, Brent wrote:
Hello,
About 2 years ago i setup Apache/1.3.28 (Unix) PHP/4.3.4RC1
mod_ssl/2.8.15 OpenSSL/0.9.7c and mysql on BSD Unix and did up some
simple php enabled web pages to add / remove /edit / search entries to
a 1 table mysql database to
Hello list,
Does anybody know which is the TMP default directory when uploading file to
the server using PHP?
PHP 7.1.2-7
MySQL 3.23.49-3
APACHE 1.3.23-11
RED HAT LINUX 7.3
---
Miguel Guirao Aguilera
Logistica R8 TELCEL
Tel. (999) 960.7994
Este mensaje es exclusivamente
Hi,
Well, firstly there is no php 7..
By default it should be /tmp - but create a phpinfo page and check that.
Miguel Guirao wrote:
Hello list,
Does anybody know which is the TMP default directory when uploading file to
the server using PHP?
PHP 7.1.2-7
MySQL 3.23.49-3
APACHE 1.3.23-11
RED
On Wednesday 08 February 2006 17:24, Curt Zirzow wrote:
On Wed, Feb 08, 2006 at 01:25:18PM -0500, Reuben D. Budiardja wrote:
Hello,
For debugging purposes, I have display_errors = On in the /etc/php.ini
on my development server.
I'm trying to use the error_log() function to log errors,
Hi all,
The Zend Encoder 4.0 (beta) have a new function in the license manager
which can limit the number of concurrent users. I have wriiten something
to work like it. But I found a problem. My script can limit the number
of concurrent running script only. When the script ends, there is some
hai everbody
i am facing a problem with static
variable. i declared $count=0 as Static variable,when
i click the link specified in anchor tag my page is
refreshed again and static variable lose its value and
assigned with 0.i want the logic code say my stsic
variable will not lose
Suresh,
You could use the link to pass your variable to the next page, or to the
same page:
Instead of
$count=0;
use
if (!isset($_GET['count'])) $count=0;
Then for your link use
print a href=http://www.whatever.com?count=$countlink to new
page/a
or use
print a
I am beginnging to do vaidation on my web form and I know of a few
functions to do this with. For example the empty fuction and the is_
functions. Ok to give you a picture of what I am vaildating its just
your basic form, Name, Address, Email. I am obviously going to check
for empty fields.
46 matches
Mail list logo