On Wed, August 24, 2005 10:06 pm, Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
In addition to
Louie Miranda wrote:
But when i try it on a image, that has been created with GD. It does
nothing.
I just want to confirm, it what im doing with the fonts possible thru
GD/Jpeg?
Please help, if this aint possible. I think imight purchase the PDFLib
instead to test the unicode support.
On 25 Aug 2005 10:53:37 +0530, Raj Shekhar [EMAIL PROTECTED] wrote:
Dotan Cohen [EMAIL PROTECTED] writes:
I don't really like CAPTCHA's. I'm filtering the content now, which is
in my opinion better anyway. In my university one of the computer
science projects (for an assignment!) is to
On Wed, August 24, 2005 6:10 pm, Jordan Miller wrote:
Is there a technical reason why PHP does not allow comparison
operator expressions like the following:
if (2 $x = 4) {}
2 $x = 4 is a valid expression already.
2 $x is evaluated first, and returns true/false
true/false is compared
Anas Mughal wrote:
Could someone please share with me sample code for:
- Adding an XML node to an existing XML document.
http://www.php.net/manual/en/function.domnode-append-child.php
http://www.php.net/manual/en/function.dom-domnode-appendchild.php
- Modifying the value for a given XML
On Wed, August 24, 2005 12:47 pm, Björn Bartels wrote:
       $binddn Â
'uid='.$username.',ou=users,ou=OxObjects,dc=dbusiness,dc=de';
Either you're missing an = sign here, or my eyesight is getting worse
than I thought... :-)
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP
wayne wrote:
When I run a script from a package I download, it always
bombs out on this section. I think that its getting
the wrong parameters when it tries to make the Connection.
I use PostgreSQL as my DB.Moodle is the name of the database and
the user is moodleuser. I do not have a password
Jasper Bryant-Greene wrote:
Robert Cummings wrote:
On Wed, 2005-08-24 at 23:12, Jasper Bryant-Greene wrote:
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a
On Wed, August 24, 2005 12:39 pm, Ross wrote:
Fatal error: Function name must be a string in
c:\Inetpub\wwwroot\ssn\php_mail.php on line 11
var_dump($_FILES['userfile']);
$_FILES['userfile'] is going to be an array.
It will have elements like 'name', 'tmp_name', 'error', 'size' etc.
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Robert Cummings wrote:
[snip]
Still need to check isset() status unless you've disabled E_NOTICE which
I don't advise since it's sloppy ;)
Yeah, I usually would in a real script. Just slipped my mind when
writing that example.
I would
On Wed, August 24, 2005 11:42 am, George B wrote:
Column count doesn't match value count at row 1
What does that mean? I have an id auto_increment and it breaks
everytime
because of that error. This has never happend before...
If you REALLY don't want to specify all the column names (as
Ross wrote:
$mail-AddAttachment($_FILES('userfile'));
Ignoring the fact that $_FILES['userfile'] is an array and probably
isn't what you want to pass to the AddAttachment method (although I know
nothing about phpmail specifics), shouldn't that be:
$mail-AddAttachment($_FILES['userfile']);
On Wed, August 24, 2005 11:40 am, George B wrote:
Richard Lynch wrote:
On Tue, August 23, 2005 3:52 pm, George B wrote:
You know on forums when you make a topic right away it makes like a
new
link to your topic. How do you do that in PHP?
?php
//Untested code:
if
On Wed, August 24, 2005 9:50 am, cajbecu wrote:
Hello. I need some help. I set my php to run script.php before any php
script. I want to drop uploaded files, so I did
?php
if ($_SERVER[SERVER_NAME]==some.host.on.my.server) {
if ((isset($_SERVER['REQUEST_METHOD']))
On Wed, August 24, 2005 9:09 am, Ross wrote:
I have a table which I put php data from a database.
If i have a name 'thisisaveryverylongfirstname' the table stetches to
fit
the name. Is there any way I can force it to wrap to a fixed width of
100px??
If I put a space in BR the text wraps.
On Wed, August 24, 2005 8:33 am, Dotan Cohen wrote:
I seem to be having trouble with \n and \r in variables. I write my
code on a linux box, and the server is linux. So I should always have
\n\r, no? Is there a way the I could print $variable; and have it show
me the /n and /r 's ? I tried
Richard Lynch wrote:
PHP's wordwrap function may have an optional argument to FORCE it to
never be wider than X characters, but I don't think so...
http://www.php.net/wordwrap
string wordwrap (string str [, int width [, string break [, bool cut]]])
If the cut is set to 1, the string is
I recommend using Smarty for wrapping:
{$foo|wordwrap:30:br/:true}
--
Regards,
Aljaz mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, August 24, 2005 7:32 am, Rick Emery wrote:
Quoting Richard Lynch [EMAIL PROTECTED]:
Just for a test case, write a 10-line ASP script that does something
similar, if much simpler, and pound on it on the same box with the
Padcom clients.
I did that when the problem first appeared.
Aljaž Bizjak Zupanc wrote:
I recommend using Smarty for wrapping:
{$foo|wordwrap:30:br/:true}
That does the exact same thing as:
print(wordwrap($foo, 30, 'br /', true));
Which is much more convenient if you're not already using Smarty.
Jasper
--
PHP General Mailing List
Jasper Bryant-Greene wrote:
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Robert Cummings wrote:
[snip]
Still need to check isset() status unless you've disabled E_NOTICE
which
I don't advise since it's sloppy ;)
Yeah, I usually would in a real script. Just slipped my mind when
Burhan Khalid wrote:
Jasper Bryant-Greene wrote:
Prepending the variable name with an underscore happens to be what PHP
does ($_SERVER, $_GET, $_POST, $_COOKIES, so on...) so it is simpler
just to carry on that convention.
This is exactly the reason why you shouldn't do it. You don't know
On Wed, August 24, 2005 3:20 am, Uroš Gruber wrote:
I have XML and I would like to set some values. I almost done the
whole
thing but have some problems when looping through some tags
foo
bar id=1 name=bar1 /
bar id=2 name=bar2 /
...
/foo
I would like to set value for tag bar
On Thu, August 25, 2005 2:56 am, Burhan Khalid wrote:
I would also in a real script, not use $_MyVar.
$_XYZ use the $_ because they are superglobals.
If your $_MyVar isn't a superglobal with http://php.net/runkit, it
probably shouldn't be $_
That said, I do the same thing, for the variables I
never mind. i send it as bug report. and confirmed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
Column count doesn't match value count at row 1
What does that mean? I have an id auto_increment and it breaks everytime
because of that error. This has never happend before...
[/snip]
This is a MySQL problem and should be asked on a MySQL list, but having
said
From: [EMAIL PROTECTED]
Subject of the message: [PHP] Re: anyone get corrupted response with
php-fcgi when zlib.output_compression=On?
Recipient of the message: PHP LIST php-general@lists.php.net
===
is anyone moderate this mailinglist? and get him out of the list?
--
PHP General Mailing
On 8/23/05, Jay Blanchard [EMAIL PROTECTED] wrote:
You may (or may not) remember me posting to the list a couple of weeks
ago asking about using REGEX to get queries out of PHP files for a
migration project. I had to let it go for several days, but started
working on it again yesterday, here
Has the above site gone down? Does anyone know? I've not been able to
access it for quite a while...
thnx,
Chris
Hello,
Curently I do it with wget and by hand using a bash script,
but like to integrate it into my php4 webinterface.
What I need is:
1) INPUT-Form where I can type the URL of
a html/php (or something like this) page.
when submited,
2) the php script download the page and
[snip]
Has the above site gone down? Does anyone know? I've not been able to
access it for quite a while...
[/snip]
I'm thinking that it must be down.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 2005-08-25 at 10:55 +0300, Burhan Khalid wrote:
wayne wrote:
When I run a script from a package I download, it always
bombs out on this section. I think that its getting
the wrong parameters when it tries to make the Connection.
I use PostgreSQL as my DB.Moodle is the name of the
This list are not moderated, but Derick has taken care of this
particular problem :)
Edin
Xuefer wrote:
From: [EMAIL PROTECTED]
Subject of the message: [PHP] Re: anyone get corrupted response with
php-fcgi when zlib.output_compression=On?
Recipient of the message: PHP LIST
On Thu, 2005-08-25 at 03:14, Richard Lynch wrote:
On Wed, August 24, 2005 10:06 pm, Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the
Martin
You can use this, modified to fit your specific needs:
?
// THE NAME OF YOUR IMAGEFILE
$imagefile = bla.jpg;
//PATH WHERE THE IMAGES ARE STORED ON OUR WEB SERVER
$path = /home/user/website.come/themes/default/images/ . $imagefile;
//TELL THE BROWSER WE ARE SENDING AN IMAGE
Martin
Using Apache? Check out
http://httpd.apache.org/docs/1.3/misc/rewriteguide.html - all about
rewriting URLs...good luck!
HTH
Raz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi guys.
Does anyone know of any open source software written in PHP to create
HTML news letters (head, side and bottom graphics). as well as being
able to send the newsletters.
thanks in advance.
--
Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
--
PHP
The problem is I haven't seen any examples of this in php.
The best I have come up with is the following. I know the code is pants,
but it works. I am sure people out there can think of a better way of
doing it-
$ua = $logInfo[useragent];
if (
Angelo Zanetti [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi guys.
Does anyone know of any open source software written in PHP to create
HTML news letters (head, side and bottom graphics). as well as being
able to send the newsletters.
PHPlist from www.tincan.co.uk
thanks
Sabine wrote:
But pity for female germans asking stupid questions and mingling english
with german? ;-)
of course :-)
humour not-aimed-at=idiots, sheep
you might as well know that soon John Nichel will take over the world
and outlaw political correctness. this means we can soon start to take
Hi,
I have a website, which uses themes.
The web tree looks like this:
* webroot
o *themes*
+ default
# images
+ red design
# images
o *index.php*
Let's say I choose red design theme. All the
Jochem Maas schrieb:
Sabine wrote:
But pity for female germans asking stupid questions and mingling
english with german? ;-)
of course :-)
humour not-aimed-at=idiots, sheep
you might as well know that soon John Nichel will take over the world
and outlaw political correctness. this means
This is another rather hackish attempt at using the tokeniser.
It turns this:
?php
$emu = my_column {$banana};
$wallaby = 'my_table';
$kookaburra = 'SELECT * FROM';
$kookaburra .= $wallaby;
$koala = 'ASC';
$taipan = ' ORDER BY' . $emu;
$dropBear = 'group by something';
mysql_query($kookaburra
Good to know about expression evaluation. Writing the expression(s)
like that (left-to-right and right-to-left) solves my dilemma... thanks!
Jordan
On Aug 25, 2005, at 2:44 AM, Richard Lynch wrote:
I personally would use:
((2 $x) ($x = 4))
--
PHP General Mailing List
At the risk of making a complete and utter ass of myself, I'm going to
disagree with Richard.
I'm going to justify this, by the fact that file_get_content function
is written in C, and performs function required, that is currently
performed by wget.
On 8/25/05, Michelle Konzack [EMAIL PROTECTED]
If you're reading this text from a file, and then splitting it into
seperate lines, then I personally think you should leave this to the
built-in file() function.
On 8/24/05, Dotan Cohen [EMAIL PROTECTED] wrote:
I seem to be having trouble with \n and \r in variables. I write my
code on a
Does anyone know of a good polling script that is, obviously, written
in PHP?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Does anyone know of a good polling script that is, obviously, written
in PHP?
[/snip]
What are you polling?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, August 25, 2005 6:26 am, Michelle Konzack wrote:
Curently I do it with wget and by hand using a bash script,
but like to integrate it into my php4 webinterface.
?php exec(wget $URL, $output, $error);?
http://php.net/exec
You really don't want to re-write all of wget.
And I doubt that
[snip]
Does anyone know of a good polling script that is, obviously, written
in PHP?
[/snip]
What are you polling?
It's for a contest so that people can come in and read about the people
who are entered and then vote on which one they think should win. I
would like to at lease be able to
On 8/25/05, Richard Lynch [EMAIL PROTECTED] wrote:
Windows uses \r\n
Linux uses \n
Mac uses \r
Depending on what tools you use to read/write/create the files, and
where the data comes from, it's possible that you have any of those
formats.
This is especially true of FORM data from a
Bagus Nugroho would like to recall the message, [PHP] PHP without php.ini.
DISCLAIMER: The information in this email is confidential and proprietary. If
you are not the intended recipient, please do not read, copy, use, or disclose
the contents of this communication. Please permanently
Hi
We have a content management system running for a client of ours. It was
earlier on Debian and Apache 1.3 . Now they have moved to Redhat Ent and
Apache 2. The PHP and MySQL versions are the standard packages available
with Redhat Ent and the same version as before. However we can see that
[snip]
We have a content management system running for a client of ours. It was
earlier on Debian and Apache 1.3 . Now they have moved to Redhat Ent and
Apache 2. The PHP and MySQL versions are the standard packages available
with Redhat Ent and the same version as before. However we can see
thanks guys :)
that was exactly what I needed
good karma to you
g
On Aug 25, 2005, at 6:19 AM, Robert Cummings wrote:
On Thu, 2005-08-25 at 03:14, Richard Lynch wrote:
On Wed, August 24, 2005 10:06 pm, Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:19, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every message into a database. Now, on the first post
I want it
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
shout, so like the auto_increment would invert. Someone told me this is
possible through
if you are using mysql, just put the DESC (descending) directive at
the end of your sql statement (default is no DESC directive,
meaning ascending). most recent records will be returned first.
Jordan
On Aug 25, 2005, at 2:21 PM, George B wrote:
I have written a shoutbox, and it works
[snip]
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
shout, so like the auto_increment would invert. Someone told me this is
possible
Jordan Miller wrote:
if you are using mysql, just put the DESC (descending) directive at
the end of your sql statement (default is no DESC directive, meaning
ascending). most recent records will be returned first.
Jordan
On Aug 25, 2005, at 2:21 PM, George B wrote:
I have written a
W odpowiedzi na maila (21:21 - 25 sierpnia 2005):
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
shout, so like the auto_increment
Łukasz 'nostra' Wojciechowski wrote:
W odpowiedzi na maila (21:21 - 25 sierpnia 2005):
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
you need to provide more information. we cannot tell what you are
doing. you should:
**PASTE THE RELEVANT SECTION OF YOUR CODE IN YOUR EMAIL**
On Aug 25, 2005, at 2:38 PM, George B wrote:
Łukasz 'nostra' Wojciechowski wrote:
W odpowiedzi na maila (21:21 - 25 sierpnia 2005):
I have
http://www.php.net/magic_quotes
Check the php.ini for the settings on magic_quotes
Thanks, Jay. That was a lifesaver.
--
Warm Regards
~~~
Vinayak
On Thu, 2005-08-25 at 15:18, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:19, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every
I am relatively new to security
Is the below reasonable safe ?
I have all of my main functions outside the web folder
I am including this function with every php script that accesses
fonovisa.inc
function getBrain()
{
$temp = explode('.', $_SERVER['SERVER_NAME']); // returns
Robert Cummings wrote:
On Thu, 2005-08-25 at 15:18, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:19, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room
Graham Anderson wrote:
Is the below reasonable safe ?
I have all of my main functions outside the web folder
I am including this function with every php script that
accesses fonovisa.inc
function getBrain()
{
$temp = explode('.', $_SERVER['SERVER_NAME']);
Because $_SERVER['SERVER_NAME']
Is their some other reasonably safe way to call to the script outside
the web folder ?
Or, is there some other secure method to get the server name?
As an alternative:
I tried using a relative path: FROM the php script location TO the
fono.inc script location outside the web folder
$mypath =
Graham Anderson wrote:
Is their some other reasonably safe way to call to the script outside
the web folder?
Assuming you don't have too many hosts, a better way to write this:
$brainPath = /home/.$server./includes/fonovisa.inc;
is to use a switch statement to make sure $server is valid:
Is it possible to retrieve (view) the computers name from the client in PHP?
/G
@varupiraten.se
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
otherwise this gets a bit tedious
Proper
Gustav Wiberg wrote:
Is it possible to retrieve (view) the computers name from the client in
PHP?
If you mean the client, then no - this is not a standard part of an HTTP
request.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
PHP General Mailing List
Chris Shiflett wrote:
Graham Anderson wrote:
Is there a way to loop thru all of these GET requests by:
putting the GET variables into an array
processing the variable strings with trim/striptags/etc in a loop
exploding the variables back out into separate variables
otherwise this gets a bit
Guys I'm doing some research trying to find a good PHP based CMS. As
there a quite a few, I would really like to get your opinions so I can
narrow the search down.
We were using Webedit Pro, but have found it a pain not to be able to
use Firefox with it.
Thanks for your input.
Trell
--
I found a method for converting javascript arrays to PHP arrays here:
http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/414334; and
would like to expand the list of types the function knows about. It
looks like 's' = string, 'a' = array but 'i' for integer and 'n' for
number don't work.
I have been studying PHP all summer because I wanted to put some PHP
code on my schools web site. I got to school and went to the web design
teacher. I asked him if they had installed PHP on their server. He said
that the district thinks that it would be a HUGE security risk and that
people at
Ken Tozier wrote:
I found a method for converting javascript arrays to PHP arrays here:
http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/414334; and would
like to expand the list of types the function knows about. It looks
like 's' = string, 'a' = array but 'i' for integer and 'n' for
also
PHP HIT BY ANOTHER CRITICAL FLAW
A new security flaw in the PHP Web service protocol used by a large
number of Web applications could allow attackers to take control of
vulnerable servers.
http://www.computerworld.com/securitytopics/security/holes/story/0,10801,104124,00.html
Ian C.
Santosh Jambhlikar wrote:
also
PHP HIT BY ANOTHER CRITICAL FLAW
A new security flaw in the PHP Web service protocol used by a large
number of Web applications could allow attackers to take control of
vulnerable servers.
Ian C. McGarvey wrote:
I have been studying PHP all summer because I wanted to put some
PHP code on my schools web site. I got to school and went to the
web design teacher. I asked him if they had installed PHP on their
server. He said that the district thinks that it would be a HUGE
As this is the php mailing list it is obvious that i should not write
against php. but people should know the truth. And it's a news (not by
me) that's why i wanted to send link to u peoples.
I am sorry if i did something wrong, i am new user in php mailing list.
Jasper Bryant-Greene wrote:
Thanks for the link Jasper. That solved it.
Ken
On Aug 26, 2005, at 1:22 AM, Jasper Bryant-Greene wrote:
Ken Tozier wrote:
I found a method for converting javascript arrays to PHP arrays
here: http://aspn.activestate.com/ASPN/Cookbook/PHP/Recipe/
414334 and would like to expand the
Santosh Jambhlikar wrote:
As this is the php mailing list it is obvious that i should not write
against php. but people should know the truth.
Jasper is trying to make sure people know the truth. Articles like the
one you mentioned are doing quite the opposite.
I am sorry if i did
Santosh Jambhlikar wrote:
As this is the php mailing list it is obvious that i should not write
against php. but people should know the truth. And it's a news (not by
me) that's why i wanted to send link to u peoples.
I am sorry if i did something wrong, i am new user in php mailing list.
85 matches
Mail list logo