php-general Digest 28 Aug 2008 07:22:34 - Issue 5649
Topics (messages 278827 through 278857):
Re: Sending a POST variable to an ASP page
278827 by: Nathan Nobbe
278834 by: shaun thornburgh
278835 by: Nathan Nobbe
278855 by: Nathan Nobbe
Re: concatenating
! function_exists(curl_init) BUT curl_init exists and works.
After my host blocked the file_get_contents and other functions, I am
using CURL - but when I do function_exists(curl_init) it returns
false but I can still use it anyone knows why?
--
PHP General Mailing List
tedd wrote:
The WG did solve this issue and came up with a way to do that -- the
current algorithm is called PUNYCODE which allows Unicode code-points
to appear in a domain name. I know this to be true because I have
several domains that lie outside the standard ASCII AND they are real
Kevin Waterson wrote:
There is no silver bullet regex to validate all RFC compliant email
address. Many have tried, but they all fail at some point. The best
you can do is cater to most _sane_ addresses.
Exactly - the regex is a quick/cheap sanity check, nothing more. To go
all the way,
That Rx.com domain name is really great stuff, but how do you expect
the average user to type it in?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeti wrote:
That Rx.com domain name is really great stuff, but how do you expect
the average user to type it in?
Sorry, I don't understand the problem. The average user will obviously
have a suitable keyboard, such as this for instance:
http://en.wikipedia.org/wiki/Image:KB_Swiss.svg
Though vim is not a so-called IDE, actually it's quite handy.
On Wed, Aug 27, 2008 at 1:06 PM, Sascha Braun [EMAIL PROTECTED]wrote:
Hi people,
I have a webproject which is round about 3 GB in size. I was usually
using eclipse to work with the software but over time eclipse became
very
Thanks for your reply.
But what happens if the file is situated here:
www.site.com/include/documents/file.doc
and someone knows that path file somehow or they get a program to crawl the
site. Then they would be able to get that file. How do we prevent that?
Thanks in advance.
Through PHP you can access the filesystem, so the folder containing your
documents doesn't even have to be on the website.
I would do this way:
A HREF=getfile.php?filename=something.docClick here/A
And in the PHP file:
file_get_contents(DOCFOLDER . $_GET['filename'])
or something like this.
Hi all!
And again, a slightly off topic subject for you all from yours truly :o)
I have a customer (helicopter company) who is willing to give me some free
flights for a small website.
Now, I have been talking to my sister in law who is a designer (note:
designer, not coder). She said I should
daniel danon schrieb:
! function_exists(curl_init) BUT curl_init exists and works.
After my host blocked the file_get_contents and other functions, I am
using CURL - but when I do function_exists(curl_init) it returns
false but I can still use it anyone knows why?
Hi Daniel,
read here:
On Aug 28, 2008, at 5:17 AM, Auto-Deppe, C. Haensel wrote:
Hi all!
And again, a slightly off topic subject for you all from yours
truly :o)
I have a customer (helicopter company) who is willing to give me
some free
flights for a small website.
Now, I have been talking to my sister in
On 27 August 2008 18:45, Jay Blanchard advised:
tedd-o has been around for a long time and has witnessed the evolution
of said blow-ups dolls enough to know when he sees quality, form and
function.
I think I may be the second oldest regular on the
listtedd and I had
that discussion
Auto-Deppe, C. Haensel schrieb:
Hi all!
And again, a slightly off topic subject for you all from yours truly :o)
I have a customer (helicopter company) who is willing to give me some free
flights for a small website.
Now, I have been talking to my sister in law who is a designer (note:
Date: Wed, 27 Aug 2008 15:07:53 -0600From: [EMAIL PROTECTED]: [EMAIL
PROTECTED]: Re: [PHP] Re: Sending a POST variable to an ASP page
well that would constitute a particular reason :)
On Wed, Aug 27, 2008 at 2:55 PM, shaun thornburgh [EMAIL PROTECTED] wrote:
Date: Wed, 27 Aug 2008 14:45:42
On 27 August 2008 19:04, Jay Blanchard advised:
[snip]
My memory may be a bit off but I think tedd is around 4017 (he uses
rocks
if you can recall) [/snip]
I am certainly no less virile. Let's see if anyone can GREP this
reference for my age; I was born The Day the Music Died
Oh, so
On 28 August 2008 04:26, Micah Gersten advised:
You cannot have anything in the brackets for the name in a checkbox
group. The brackets specify that it is an array. The name
of the array
is the key in $_POST that contains the values of the checkbox group
that
were checked. You can have as
On 28 August 2008 00:04, tedd advised:
At 12:07 AM +0200 8/28/08, Maciek Sokolewicz wrote:
input type=check name=my_checkboxes[1] value=1 / 1br /
input type=check name=my_checkboxes[2] value=1 / 1br /
input type=check name=my_checkboxes[3] value=1 / 1br /
input type=check
2008/8/28 Shelley [EMAIL PROTECTED]:
Though vim is not a so-called IDE, actually it's quite handy.
And as PHP is not [generally] compiled, no IDE is needed. VIM is
great, and for a GUI text editor I use Kate. Note that there will soon
be a VIM mode in Kate! I cannot wait!
--
Dotan Cohen
On 28 Aug 2008, at 11:57, Dotan Cohen wrote:
2008/8/28 Shelley [EMAIL PROTECTED]:
Though vim is not a so-called IDE, actually it's quite handy.
And as PHP is not [generally] compiled, no IDE is needed. VIM is
great, and for a GUI text editor I use Kate. Note that there will soon
be a VIM
Please tell me which IDE might be a true alternative for projects at
that size.
Don't know for sure, but you can try Netbeans for PHP :
http://php.netbeans.org/
kind regards,
Brice Favre
Thank you friends,
kind regards,
Sascha
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
There she was friends and neighbors in all her radiant beauty eating
on a raisin, a pomegranate, a bowl of chitlins, two bananas, three
Hershey bars, listening to the Grand Old Opry of TV, sipping on a RC
coke a cola and signing Does your crewing gum lose it's favor and
the bed post
Auto-Deppe, C. Haensel schreef:
Hi all!
And again, a slightly off topic subject for you all from yours truly :o)
I have a customer (helicopter company) who is willing to give me some free
flights for a small website.
Now, I have been talking to my sister in law who is a designer (note:
-:- -Original Message-
-:- From: Jochem Maas [mailto:[EMAIL PROTECTED]
-:- Sent: Thursday, August 28, 2008 1:46 PM
-:- To: [EMAIL PROTECTED]
-:- Cc: php-general@lists.php.net
-:- Subject: Re: [PHP] Manual Coding vs. CMS Systems
-:-
-:- Auto-Deppe, C. Haensel schreef:
-:- Hi all!
hiya,
anyone know if it's possible to grab the entire commandline
that was used to start up a php script on the CLI, an example
of what I'm looking to grab from within the script (test.php in
this example):
php -qC -ddisplay_errors=1 ./test.php -o -d -e [EMAIL PROTECTED] -f ./last.log |
grep
(is Joomla a kind of wysiwyg editor? Does CMS mean content management
system? ..like blog software?)
I leave the commentary about CMS Systems/Joomla -vs.- hand-coding
to the experts here who have had way more experience with both than I
have...
What I can offer may be considered OT or
Joomla is a large content management system that allows novice people
to edit the pages without touching the actual design. It's all
template driven and works quite well. Not the most lightweight
solution though...
On Aug 28, 2008, at 8:37 AM, Govinda wrote:
(is Joomla a kind of wysiwyg
Auto-Deppe, C. Haensel schrieb:
-:- -Original Message-
-:- From: Jochem Maas [mailto:[EMAIL PROTECTED]
-:- Sent: Thursday, August 28, 2008 1:46 PM
-:- To: [EMAIL PROTECTED]
-:- Cc: php-general@lists.php.net
-:- Subject: Re: [PHP] Manual Coding vs. CMS Systems
-:-
-:- Auto-Deppe,
-:- -Original Message-
-:- From: Carlos Medina [mailto:[EMAIL PROTECTED]
-:- Sent: Thursday, August 28, 2008 2:48 PM
-:- To: php-general@lists.php.net
-:- Subject: Re: [PHP] Manual Coding vs. CMS Systems
-:-
-:- Auto-Deppe, C. Haensel schrieb:
-:- -:- -Original Message-
2008/8/28 Stut [EMAIL PROTECTED]:
And as PHP is not [generally] compiled, no IDE is needed. VIM is
great, and for a GUI text editor I use Kate. Note that there will soon
be a VIM mode in Kate! I cannot wait!
What does compilation have to do with it? C/C++ are rarely interpreted but
that
On Thu, Aug 28, 2008 at 8:59 AM, Dotan Cohen [EMAIL PROTECTED] wrote:
2008/8/28 Stut [EMAIL PROTECTED]:
And as PHP is not [generally] compiled, no IDE is needed. VIM is
great, and for a GUI text editor I use Kate. Note that there will soon
be a VIM mode in Kate! I cannot wait!
What
I've done quite a bit of work with Joomla, both installing/configuring as
well as customizing and building components and modules. It's a great
system to build off of, but it's a bit of a blank slate that's a little
rough around the edges.I've also done my share of hand-coding, so don't
On 28 Aug 2008, at 13:59, Dotan Cohen wrote:
2008/8/28 Stut [EMAIL PROTECTED]:
And as PHP is not [generally] compiled, no IDE is needed. VIM is
great, and for a GUI text editor I use Kate. Note that there will
soon
be a VIM mode in Kate! I cannot wait!
What does compilation have to do with
Watch him go... there is Carloos, the man infront of all the others. He
is WAY ahead, and he is gaining more and more speed. He is an adult, and he
is sooo adult that he can't even take a laugh... see him run from the
humor! Faster and faster he runs... and there it is: the goal: an open
* Do not Cc: me, because I READ THIS LIST, if I write here *
*Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*
Hello
2008/8/28 Dan Joseph [EMAIL PROTECTED]:
Well, while that is true about compiling, you're forgetting about other
things inside of an IDE, such as debugging. Yes, you can just pull up a web
browser or run the script at command line, but the debugger also has the
stepping features and break
2008/8/28 Stut [EMAIL PROTECTED]:
And thanks for the tasty eggs!
Eggs? I've obviously missed something.
So long, and thanks for all the fish!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü
I'm wondering why you are using uuml;. If you had your site in UTF-8
it would not be necessary. Even google is using UTF-8 these days.
I guess your browser automaticly converts the uuml; in your textarea
into the namespace-proper ü.
You could try using htmlentities to convert the into amp; or
There we go .. from concatenation to Who knows a song nobody can guess right?.
Crazy Horses - The Osmonds
http://www.youtube.com/watch?v=MyRiNZDb5EY
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 11:50 AM +0100 8/28/08, Ford, Mike wrote:
On 28 August 2008 00:04, tedd advised:
One of the ways to get around this is to:
input type=checkbox name=my_checkboxes[]
id=my_checkbox_1 value=1
That way php will use name and javascript will use id.
Why???
form name=my_form ...
That's an opinion that you state as fact. I use an IDE for PHP for
function referencing is very PHP. The open declaration feature is very
helpful in eclipse. Also, subeclipse is great too.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Dotan Cohen
2008/8/28 Micah Gersten [EMAIL PROTECTED]:
That's an opinion that you state as fact.
You must be new here :)
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü
I've been on the list for over a month and I post quite a bit. I do the
same thing apparently. See 'Re: [PHP] Re: Variable name as a string'
thread. :-)
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Dotan Cohen wrote:
2008/8/28 Micah Gersten [EMAIL
Does this work?
$command = implode(' ', $argv);
http://us2.php.net/manual/en/reserved.variables.argv.php
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Jochem Maas wrote:
hiya,
anyone know if it's possible to grab the entire commandline
that was used
The reason why... (I think)
Id defines the element as a part of the DOM - it is the identifier of the
element
Name tells the browser the name of the parameter (i.e. the mane to associate
with the value), not of the element.
PHP and JS are looking for two different things - one wants the element,
At 11:00 AM +0100 8/28/08, Ford, Mike wrote:
On 27 August 2008 18:45, Jay Blanchard advised:
tedd-o has been around for a long time and has witnessed the evolution
of said blow-ups dolls enough to know when he sees quality, form and
function.
I think I may be the second oldest regular on
At 11:17 AM +0200 8/28/08, Auto-Deppe, C. Haensel wrote:
Hi all!
And again, a slightly off topic subject for you all from yours truly :o)
I have a customer (helicopter company) who is willing to give me some free
flights for a small website.
Now, I have been talking to my sister in law who is
2008/8/28 Micah Gersten [EMAIL PROTECTED]:
You must be new here :)
I've been on the list for over a month and I post quite a bit.
It is an internet meme for those who express surprise at some old
internet habits. Probably most familiar to readers of /.. It was meant
as an in-joke, with
On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote:
Does this work?
$command = implode(' ', $argv);
Only do it that way if it's for a log of general output. If you're going
to punt any of those parts back to the OS in another command you'll need
to properly escape them.
Cheers,
Rob.
--
On Thu, 2008-08-28 at 08:46 -0400, Jason Pruim wrote:
Joomla is a large content management system that allows novice people
to edit the pages without touching the actual design. It's all
template driven and works quite well. Not the most lightweight
solution though...
I've used quite a
On 28 August 2008 16:40, tedd advised:
I'm really not that old, I wrote my first line of code in college in
1965 -- I even remember the problem. It was how long a swimming pool
would take to drain to a trickle with the drain open and a garden
hose filling it. Of course, we were given all
On Thu, 2008-08-28 at 06:40 -0500, Jay Blanchard wrote:
[snip]
There she was friends and neighbors in all her radiant beauty eating
on a raisin, a pomegranate, a bowl of chitlins, two bananas, three
Hershey bars, listening to the Grand Old Opry of TV, sipping on a RC
coke a cola and
Shelley a écrit :
Though vim is not a so-called IDE, actually it's quite handy.
Actually, it is. An IDE is a glue between a set of tools. Vim
provides every services you need, and it is scriptable.
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org
--
PHP General Mailing List
On Thu, 2008-08-28 at 17:44 +0100, Ford, Mike wrote:
On 28 August 2008 16:40, tedd advised:
I'm really not that old, I wrote my first line of code in college in
1965 -- I even remember the problem. It was how long a swimming pool
would take to drain to a trickle with the drain open and
I really like zend studio for eclipse, debugger is slow at times on
large projects. I hope, zend said they won't, is provide xdebug
support for zend studio. I also really like working with mylyn.
--Brendon
On Aug 27, 2008, at 1:06 AM, Sascha Braun wrote:
Hi people,
I have a webproject
Robert Cummings wrote:
Good thing he didn't ask to bum a fag ;) I guess he wasn't a smoker. I
did ages 4 to 13 in Scotland so I'm familiar with some of the language
differences :)
Ahh now you're speaking my language. Ignore my Irish domain name, it's
just cos it fits... my home is Edinburgh
On Thu, 2008-08-28 at 18:42 +0100, Colin Guthrie wrote:
Robert Cummings wrote:
Good thing he didn't ask to bum a fag ;) I guess he wasn't a smoker. I
did ages 4 to 13 in Scotland so I'm familiar with some of the language
differences :)
Ahh now you're speaking my language. Ignore my Irish
2008/8/28 Jochem Maas [EMAIL PROTECTED]:
anyone know if it's possible to grab the entire commandline
that was used to start up a php script on the CLI, an example
of what I'm looking to grab from within the script (test.php in
this example):
php -qC -ddisplay_errors=1 ./test.php -o -d -e
At 10:50 AM +0200 8/28/08, Angelo Zanetti wrote:
Thanks for your reply.
But what happens if the file is situated here:
www.site.com/include/documents/file.doc
and someone knows that path file somehow or they get a program to crawl the
site. Then they would be able to get that file. How do we
At 9:29 AM +0200 8/28/08, Yeti wrote:
That Rx.com domain name is really great stuff, but how do you expect
the average user to type it in?
Of course the problem has always been how can the user enter these
types of characters from their keyboard. But, that's pretty simply
with a Mac and as
At 9:34 AM +0200 8/28/08, Per Jessen wrote:
Yeti wrote:
That Rx.com domain name is really great stuff, but how do you expect
the average user to type it in?
Sorry, I don't understand the problem. The average user will obviously
have a suitable keyboard, such as this for instance:
http://www.yfrindia.com/
Take FREE online TEST, read FREE articles, download FREE presentation, use
FREE source code, useful links, competition updates, free ONLINE TEST TESTS,
http://www.yfrindia.com/resources/Tests
free APTITUDE TEST, English Test, Computer Test, Mechanical Test,
Electronics
At 5:44 PM +0100 8/28/08, Ford, Mike wrote:
Santa Monica, CA.
I moved from Missouri to California when I was 12 just after the Feds
paid my father a visit and my father took-off for parts unknown --
apparently they frown on embezzling. I didn't see my father again
until I turned 30.
I
Carlos Medina schreef:
Watch him go... there is Carloos, the man infront of all the
others. He
is WAY ahead, and he is gaining more and more speed. He is an adult,
and he
is sooo adult that he can't even take a laugh... see him run from the
humor! Faster and faster he runs... and there
Robert Cummings schreef:
On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote:
Does this work?
$command = implode(' ', $argv);
no syntax errors, so in that sense it works.
but it doesn't answer my question (check the body of the post as
well as the subject and that might become clear).
David Otton schreef:
2008/8/28 Jochem Maas [EMAIL PROTECTED]:
anyone know if it's possible to grab the entire commandline
that was used to start up a php script on the CLI, an example
of what I'm looking to grab from within the script (test.php in
this example):
php -qC -ddisplay_errors=1
Hej everybody,
I built something I'd like to have feedback on. Looking at all the
template engines out there made me think.
I have two main requirements:
- use PHP as the template language
- effective XSS prevention without betting on discipline
Plain PHP only satisfies the first. I also
Hi guys,
I need to send post variables to an ASP page. I have the following code which
isn't producing any errors but isn't working either:
foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid']
= $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno,
[snip]
I need to send post variables to an ASP page. I have the following code
which isn't producing any errors but isn't working either:
foreach($_POST['newsletter-group'] as $key = $value){
$_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp =
fsockopen(dmtrk.net, 80, $errno,
IIRC ASP cant recive PHP $_POST variables but it can recive HTML post
from forms.
If you want to send variables to another language. You can try via a
get variable. Dont know if the items you want to send are safe to send
over though.
Ólafur Waage
2008/8/28 shaun thornburgh [EMAIL PROTECTED]:
Date: Thu, 28 Aug 2008 16:21:19 -0500 From: [EMAIL PROTECTED] To: [EMAIL
PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending
$_POST vairable to an ASP page [snip] I need to send post variables to an
ASP page. I have the following code which isn't producing any
[snip]
Unfortunately I don't have curl installed on my server.
[/snip]
Unless you can open a socket or a curl session you will not be able to
post values to a remote page. Curl is your best bet, can it be
installed?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Has anyone tried a ASCII Captcha method. To use a similar method like
this ASCII generator (http://www.network-science.de/ascii/)
Or even gone the next level and have an ASCII based simple math question?
I know this isnt strictly a PHP question but spam free sites are very
dear to us.
Ólafur
I suggest creating a shell wrapper for PHP that will write the command
to a file for you and then call PHP with the appropriate arguments. PHP
won't even see most of the command that you originally posted.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Date: Thu, 28 Aug 2008 16:24:58 -0500 From: [EMAIL PROTECTED] To: [EMAIL
PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending
$_POST vairable to an ASP page [snip] Unfortunately I don't have curl
installed on my server. [/snip] Unless you can open a socket or a curl
Auto-Deppe, C. Haensel wrote:
Hahaha.. THAT one told exactly what I feel! Thanks :o)))
Also a big thanks to the others who already replied. Waiting for more on
that Great one Jochem!!
If they only want a simple set of pages, then it's probably not worth the
hassle of configuring a
You're not really a PHP developer until you've written your own CMS from
scratch. It's a right of passage to roll your own, realize what a bad idea
it is, and move on to using a full on general CMS that will do 10x what you
can do on you own in 1/10 the effort on your parts.
My own bias is
At 9:27 PM + 8/28/08, Ólafur Waage wrote:
Has anyone tried a ASCII Captcha method. To use a similar method like
this ASCII generator (http://www.network-science.de/ascii/)
Or even gone the next level and have an ASCII based simple math question?
I know this isnt strictly a PHP question but
Micah Gersten schreef:
I suggest creating a shell wrapper for PHP that will write the command
to a file for you and then call PHP with the appropriate arguments. PHP
won't even see most of the command that you originally posted.
which wouldn't catch the pipe to grep now would it. nevermind, I
Lester Caine schreef:
Auto-Deppe, C. Haensel wrote:
Hahaha.. THAT one told exactly what I feel! Thanks :o)))
Also a big thanks to the others who already replied. Waiting for more on
that Great one Jochem!!
If they only want a simple set of pages, then it's probably not worth
the
On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote:
Micah Gersten schreef:
I suggest creating a shell wrapper for PHP that will write the command
to a file for you and then call PHP with the appropriate arguments. PHP
won't even see most of the command that you originally posted.
In writing the script, though, there are two points. I don't always use
checkboxes, sometimes I just want to update all the records on the
form. Eg I have a series of images and related text each with their ID
in the database table, on clicking update all the form elements get
submitted and
82 matches
Mail list logo