php-general Digest 9 Jan 2007 16:57:44 - Issue 4560
Topics (messages 246779 through 246791):
Re: Sending file stored on server via email - How?
246779 by: Matt Arnilo S. Baluyos (Mailing Lists)
Re: Parsing an XML return from a POST
246780 by: Fahad Pervaiz
Re: Table
Wikus Moller wrote:
Hi.
I am new to uising html forms with php and I am having a problem with
database contents not being updated although it seems my coding is
correct.
It's a xhtml formatted site with html forms:
Here are my functions:
SNIP lots of code
Judicious use of
Hi,
I compiled the milter sapi, the example in the distribution works well.
BUT when I try to get the values of the sendmail macros with the
smfi_getsymval function, i desperately get a blank string.
I used strace and I do see the i sendmail macro in a red system call but
I can no red its value
I have to make a domain search so I don´t know if there is an API or
something that could help me in this o if you know how I could make this.
Thank you.
Marcelo Ferrufino Murillo wrote:
I have to make a domain search so I don´t know if there is an API or
something that could help me in this o if you know how I could make this.
What do you mean by a domain search?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Most domain wholesale sites have it. www.onlinenic.com has it, I am sure
that godaddy.com has it as well. Joker.com has it.
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
Marcelo Ferrufino Murillo wrote:
I have to make a domain search so I don´t know if there is an API or
something that could help me in this o if you know how I could make this.
Should just be a matter of spewing out the results of the command whois
mydomain.com.
There may be a specific PHP
Colin Guthrie wrote:
Marcelo Ferrufino Murillo wrote:
I have to make a domain search so I don´t know if there is an API or
something that could help me in this o if you know how I could make this.
Should just be a matter of spewing out the results of the command whois
mydomain.com.
Jochem Maas wrote:
without getting into the specifics of what the OP might be looking for,
I'd like to add that I think the above should (?) use escapeshellarg() rather
than escapeshellcmd() although escapeshellcmd() will, AFAICT from the docs,
also keep you safe in the current example.
I try to unzip openDocument files with pclzip.
At my laptop this is no big problem, but the target server has safe
mode switched on (no way to change that).
The problem with safe mode and unzipping openDocument ist, that a
openDocument zip file contains directories. It is not possible to write
to
Bernhard Zwischenbrugger wrote:
I try to unzip openDocument files with pclzip.
At my laptop this is no big problem, but the target server has safe
mode switched on (no way to change that).
The problem with safe mode and unzipping openDocument ist, that a
openDocument zip file contains
Am Dienstag, den 09.01.2007, 17:21 +0100 schrieb Jochem Maas:
Bernhard Zwischenbrugger wrote:
I try to unzip openDocument files with pclzip.
At my laptop this is no big problem, but the target server has safe
mode switched on (no way to change that).
The problem with safe mode and
At 2:09 AM + 1/5/07, Roman Neuhauser wrote:
... the opening remark was completely unwarranted, unasked for.
You mean like the closing remark in your sig?
What do you know about unwarranted and unasked for?
tedd
--
---
http://sperling.com http://ancientstones.com
At 11:36 PM +0100 1/4/07, Jochem Maas wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-01-03 15:48:31 -0600:
On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote:
I have a form where a user can upload different types of documents. A
valid file type they will be able to upload is
hi,
$date = January 8 2007 11:23 pm;
and have to store it on db in datetime column as -mm-dd HH:ii:ss.
Is there any function that will translate $date in format I need to
store it in DB?
Right now I was thinking to do like this:
$date_new = explode(' ', $date);
switch($date_new[0])
{
case
At 9:55 PM +0100 1/2/07, Satyam wrote:
- Original Message - From: Robert Cummings [EMAIL PROTECTED]
To: Jürgen Wind [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Tuesday, January 02, 2007 8:57 PM
Subject: Re: [PHP] Javascript detection , working version
On Tue, 2007-01-02 at
# [EMAIL PROTECTED] / 2007-01-09 17:57:40 +0100:
[ safe_mode-induced usability problems]
http://www.php.net/manual/de/function.ziparchive-addfile.php
and
http://at.php.net/manual/de/function.ziparchive-getfromname.php
would be fine.
If there is a package for BSD that would be a solution.
At 9:17 PM -0500 1/5/07, [EMAIL PROTECTED] wrote:
You'll probably get 50 answers to this, but here's probably what happened.
There's a setting called register globals that will turn your
name=me and age=27 into $name = me and $age = 27. It used to be
turned ON by default. This was generally
Wow, there are some really bitchy, unattractive people here. No wonder some
people bail out of IT. Don't confuse knowledge for wisdom.
On 1/9/07, tedd [EMAIL PROTECTED] wrote:
At 9:17 PM -0500 1/5/07, [EMAIL PROTECTED] wrote:
You'll probably get 50 answers to this, but here's probably what
Hi Everyone, I'm very new to php and to this list. I'm hoping to be
able to suck up as much knowledge from this list as I possibly can
and be able to help and contribute in the future.
But until that time, I'm in need of some help.
I'm trying to write an image gallery script(Or
# [EMAIL PROTECTED] / 2007-01-09 17:36:55 +:
Wow, there are some really bitchy, unattractive people here. No wonder some
people bail out of IT. Don't confuse knowledge for wisdom.
I don't see anything bitchy in the whole email. Don't confuse terseness
with bitching.
Oh, and also don't
Read the reponses.
-Original Message-
From: Jason Pruim [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 9 de Janeiro de 2007 17:37
To: php-general@lists.php.net
Subject: [PHP] Introduction and questions...
Hi Everyone, I'm very new to php and to this list. I'm hoping to be
able to suck up as much knowledge
On Tue, 2007-01-09 at 18:41 +, Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-01-09 17:36:55 +:
Wow, there are some really bitchy, unattractive people here. No wonder some
people bail out of IT. Don't confuse knowledge for wisdom.
I don't see anything bitchy in the whole email.
At 5:36 PM + 1/9/07, Dave Goodchild wrote:
Wow, there are some really bitchy, unattractive people here. No
wonder some people bail out of IT. Don't confuse knowledge for
wisdom.
Dave:
I don't understand your comment. What I said below is good coding.
Never trust any input to be what you
Jason Pruim wrote:
Hi Everyone, I'm very new to php and to this list. I'm hoping to be able
to suck up as much knowledge from this list as I possibly can and be
able to help and contribute in the future.
But until that time, I'm in need of some help.
I'm trying to write an image gallery
Markus Fischer wrote:
Hi,
I'm searching for an efficient way to use unpack on binary data within a
variable (php 5.1.something). In the past I was doing
fopen
fseek
unpack( fread(...)
fseek
etc.
Now this time I need to do the same, but I don't have an actual file: my
data is only
[EMAIL PROTECTED] wrote:
hi,
$date = January 8 2007 11:23 pm;
and have to store it on db in datetime column as -mm-dd HH:ii:ss.
Is there any function that will translate $date in format I
need to store it in DB?
Right now I was thinking to do like this:
$date_new = explode(' ',
I'm having trouble sorting an array. When I do, it empties the array
for some reason. Take the following code:
$data = bird,dog,cat,dog,,horse,bird,bird,bird,lizard;
$array = explode(,,$data); // Create the array
$array = array_diff($array, array()); // Drop the empty
WORKS PERFECT!
Thanks Brad!
-afan
[EMAIL PROTECTED] wrote:
hi,
$date = January 8 2007 11:23 pm;
and have to store it on db in datetime column as -mm-dd HH:ii:ss.
Is there any function that will translate $date in format I
need to store it in DB?
Right now I was thinking to do like
Hi
sort returns a bool, the sorted array passed by reference.
So try:
$result = sort( $array );
//Now $array is sorted
print_r( $array );
/Fredrik Thunberg
Kevin Murphy skrev:
I'm having trouble sorting an array. When I do, it empties the array
for some reason. Take the following code:
Once you see it in email, sometimes the obvious jumps out at you.
Fixed this on my own.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Jan 9, 2007, at 10:41 AM, Kevin Murphy wrote:
I'm having trouble sorting an
Jason Pruim wrote:
...
http://php.net/htmlentities
Okay, So after this post I have 1 more before everyone throws the manual
at me... So lets make this good, I added that as you suggested, but
think I may have put the entries in the wrong place... As it sits right
now the $imgHTML=
Hi List
I am sending this to the list again with a bit more information in the hope I
can get some help.
There is a requirement to send a request to a server and I now have that working
using cURL, thanks to help from this list. I now have the responses coming back
as an XML response. What I
Hi ereryone I need to do an script into a web page to know if a domain is
registered so I don´t know how to send a query to internic or what I have
to do to get this.
Thank you, I hope your help.
If you are running under linux you can use one of the many exec functions in
php to execute the whois command.
?php
$command = whois domain.com;
$output = shell_exec($command);
// Insert code to parse results here
echo pre$output/pre;
?
Larry
-Original Message-
From: Marcelo
On 1/9/07, Wickham, Larry [EMAIL PROTECTED] wrote:
If you are running under linux you can use one of the many exec functions in
php to execute the whois command.
?php
$command = whois domain.com;
i'd rather like to see a path used from from `which whois`
Assuming paths is evil :)
Curt.
--
Curt Zirzow wrote:
Assuming paths is evil :)
To add to what Curt says here, so is assuming the command actually
exists. :)
--
H | It's not a bug - it's an undocumented feature.
+
Ashley M. Kirchner mailto:[EMAIL
On 1/9/07, Ashley M. Kirchner [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
Assuming paths is evil :)
To add to what Curt says here, so is assuming the command actually
exists. :)
ha! nice
any shell command should really be used like:
$cmd = '/bin/command ' . escapeshellcmd($userinput)
Jochem Maas wrote:
Bernhard Zwischenbrugger wrote:
I try to unzip openDocument files with pclzip.
At my laptop this is no big problem, but the target server has safe
mode switched on (no way to change that).
The problem with safe mode and unzipping openDocument ist, that a
openDocument zip
Marcelo Ferrufino Murillo wrote:
Hi ereryone I need to do an script into a web page to know if a domain is
registered so I don´t know how to send a query to internic or what I have
to do to get this.
Thank you, I hope your help.
You've already asked this question earlier today and people
# [EMAIL PROTECTED] / 2007-01-10 09:47:39 +1100:
I have spent most of last night and today looking at XML parsing and now am
totally confused. Some testing I have done suggests that SimpleXML is not the
way to go however I am open to suggestions if it might be an answer.
What makes you think
Hi Roman,
RN What makes you think simplexml is not for you? I don't say it is, but
RN you need to tell us exactly what you need.
RN
From what I can see, unless I am mistaken, SimpleXML can not deal with
attributes within a tag. It only seems to deal with data contained between a
start tag and
# [EMAIL PROTECTED] / 2007-01-10 12:09:40 +1100:
RN What makes you think simplexml is not for you? I don't say it is, but
RN you need to tell us exactly what you need.
RN
From what I can see, unless I am mistaken, SimpleXML can not deal with
attributes within a tag. It only seems to deal
you additionaly can surround the meta redirect with noscript tags:
script
!--// index.html
D=new Date()
location.href='jstest.php?js=okt='+D.getTimezoneOffset()
//--/script
noscript
meta http-equiv='refresh' content='0;url=jstest.php?js=no'
/noscript
tedd wrote:
At 9:55 PM +0100
On 1/1/07, Jürgen Wind [EMAIL PROTECTED] wrote:
well,
no cute css, but (hopefully) working - here is my quick dirty version :
http://149.222.235.16/public/
I dont understand the point.
Curt,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
From all XML parsers I tried I loved the most:
www.phpclasses.org/browse/package/1328.html
The advantage is that you don't need any extra addons to php or
anything else. It's pure php.
Andrei
Richard Luckhurst wrote:
Hi List
I am sending this to the list again with a
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-01-10 12:09:40 +1100:
RN What makes you think simplexml is not for you? I don't say it is, but
RN you need to tell us exactly what you need.
RN
From what I can see, unless I am mistaken, SimpleXML can not deal with
attributes within a tag.
Hi Jochem,
Thanks for your reply. Here is a short sample of the XML I have to parse. I need
the data in the attributes as well as the data in the character fields.
?xml version=1.0 encoding=UTF-8?
?ypsilon RNGSchema=fareResponse.rnc type=compact?
fareResponse cntTarifs=122 offset=0
fares
# [EMAIL PROTECTED] / 2007-01-10 18:23:19 +1100:
So far I have had no luck with simpleXML at all.
So far I am not convinced you have tried it at all.
Show us the code you wrote and describe how its behavior differs from
your expectations.
--
How many Vietnam vets does it take to screw in a
50 matches
Mail list logo