|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 23 Feb 2007 11:16:28 -0000 Issue 4641
php-general-digest-help
lists.php.net
Date: Fri Feb 23 2007 - 05:16:28 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 23 Feb 2007 11:16:28 -0000 Issue 4641
Topics (messages 249259 through 249277):
can this be fone with PHP?
249259 by: Bruce Gilbert
249261 by: Jon Anderson
249270 by: tedd
249274 by: Haydar Tuna
Re: [PHP-DEV] PHP 4.4.6 RC1 Released
249260 by: Edin Kadribasic
Re: Session problems with 4.4.5?
249262 by: steve
Re: Safari 2.0.4 / PHP 4.3.7 / Apache 2.0.44 Isuue with HTTP Headers
249263 by: steve
Re: Which version of phpmyadmin is stable for php 5.1.6 and FC6 System
249264 by: Jürgen Wind
Capture the whole URL
249265 by: Ken Kixmoeller -- reply to ken.kixmoeller.com
249266 by: Jochem Maas
249271 by: tedd
249272 by: Jim Lucas
249273 by: Haydar Tuna
Is php_manual_prefs.exe broken?
249267 by: Daevid Vincent
PHP + SQL..
249268 by: Liz Kim
249269 by: Robert Cummings
Re: Enable login prompt with main page of phpmyadmin
249275 by: Haydar Tuna
Re: JPG Not supported on my server, but GDlib enabled?
249276 by: Haydar Tuna
Q: Logical assignment with strstr( )
249277 by: rgx.gmx.de
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
I have created forms with PHP where the information in the fields is
sent via sendmail to an email, but is there a way to have the
information extracted and a pdf form created when the user hits the
submit button?
--
::Bruce::
attached mail follows:
Bruce Gilbert wrote:
> I have created forms with PHP where the information in the fields is
> sent via sendmail to an email, but is there a way to have the
> information extracted and a pdf form created when the user hits the
> submit button?
>
Yep, probably. See http://www.php.net/manual/en/ref.pdf.php
jon
attached mail follows:
At 2:59 PM -0500 2/22/07, Bruce Gilbert wrote:
>I have created forms with PHP where the information in the fields is
>sent via sendmail to an email, but is there a way to have the
>information extracted and a pdf form created when the user hits the
>submit button?
>
>--
>::Bruce::
Sure -- see:
http://xn--nvg.com/pdf
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
attached mail follows:
Hello,
You can use the fpdf free package. I have used this PDF package in my
many project. It's very easy to use and free:)
www.fpdf.org
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net
""Bruce Gilbert"" <webguync
gmail.com> wrote in message
news:463b785d0702221159n57a55b94j4cae199f3a3eb02f
mail.gmail.com...
>I have created forms with PHP where the information in the fields is
> sent via sendmail to an email, but is there a way to have the
> information extracted and a pdf form created when the user hits the
> submit button?
>
> --
> ::Bruce::
attached mail follows:
Hi,
Windows build is available at:
http://downloads.php.net/edink/php-4.4.6RC1-Win32.zip
Edin
Derick Rethans wrote:
> Hello!
>
> I packed PHP 4.4.6RC1 today, which you can find here:
> http://downloads.php.net/derick/
>
> This release candidate addresses an issues that unfortunately crept
> into PHP 4.4.5:
>
> - Fixed segfault in ext/session when register_globals=On. (Tony)
>
> And some other issues:
>
> - Fixed bug #40578 (imagettftext() multithreading issue). (Tony)
> - Fixed bug #40502 (ext/interbase compile failure). (Tony)
> - Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill
> children when parent is killed). (Dmitry)
>
> It also updates the PCRE library to version 7.0.
>
> Please test it carefully, and report any bugs in the bug system.
>
> If everything goes well, we can release it somewhere at the end of next
> week.
>
> regards,
> Derick
>
attached mail follows:
Yes... I think the test version of it goes out today.
On 2/22/07, alex handle <alex.handle
gmail.com> wrote:
> On 2/16/07, Jochem Maas <jochem
iamjochem.com> wrote:
> >
> > Ken Williams wrote:
> > > Is anyone else having problems with session in 4.4.5? I'm under apache
> > > 1.3.27 in linux 2.4.34 and all my web sites break under 4.4.5. As soon
> > as a
> > > page tries to register a session variable with session_register apache
> > will
> > > segfault. Has worked perfectly fine for the past 2 years and like 10
> > > version of PHP 4.4.X.
> >
> > segfault probably indicates problem. goto bugs.php.net and file a bug
> > with
> > details about your machine and a small reproduce script.
> >
> > side note: use of session_register() is not recommended - reading the
> > following
> > page may help you understand why, help you work around your current
> > problem and
> > hopefully get you on the path of using $_SESSION:
> >
> > http://php.net/session_register
> >
> > >
> > > kenw232
yahoo.com
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> Will there be a 4.4.6 release soon?
> A lot of users run OsCommerce and i don't like to run a unpatched php
> 4.4.4.
>
> Thanks
>
> Alex
>
attached mail follows:
I've see that before. Update the PHP (and Apache while you are at it).
Also disable the server from showing the Apache and PHP versions. Why
are they broadcasting to the world that they are easy prey to remote
exploits? Also check if the server has been compromised.
On 2/22/07, Ron Stiemer <ron
stiemer.de> wrote:
> Hi everyone,
>
> got a really strange thing going on on a client website, the website outputs the whole
> http headers after every 2nd reload in safari, also in FF on Windows, but only after much
> much more relaods...here is a scrrenshot:
>
> http://www.waldhaeusl.com/downloads/bug/http_header.png
>
> any ideas what the problem could be, i checked if there are any used socket
> connections, but nothing there...maybe an apache issue ?
>
> any help is appreciated...
>
> thank you,
> -Ron
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
edwardspl wrote:
>
> cajbecu wrote:
>
>>edwardspl
ita.org.mo wrote:
>>
>>
>>>Dear All,
>>>
>>>Which version of phpmyadmin is suitable for php 5.1.6 ?
>>>
>>>Edward.
>>>
>>>
>>>
>>
>>the latest :)
>>
>>cajb.
>>
>>
> So, Which version no. ?
>
>
next version will come in the next days(hours?) : pma 2.10.0
(not sure if it will work with php 5.1.6, there were serious issues with
that php version)
--
View this message in context: http://www.nabble.com/Which-version-of-phpmyadmin-is-stable-for-php-5.1.6-and-FC6-System-tf3273403.html#a9108655
Sent from the PHP - General mailing list archive at Nabble.com.
attached mail follows:
Hey - -
I must be missing something, but in a URL such as:
diddly.com?id=fred&total=goof
$_SERVER['PHP-SELF'] gives me the diddley.com part.
I want to capture the whole URL. The documentation makes it seem like
$_SERVER['REQUEST_URI'] is supposed to do that, but I get an
"Undefined Index" error.
Do I have to enable this somehow? I realize that I could recreate the
rest of the URL from $_GET's, but I'd rather not if I don't have to.
PHP 5.1
Ken
attached mail follows:
Ken Kixmoeller -- reply to ken
kixmoeller.com wrote:
> Hey - -
>
> I must be missing something, but in a URL such as:
>
> diddly.com?id=fred&total=goof
>
> $_SERVER['PHP-SELF'] gives me the diddley.com part.
>
> I want to capture the whole URL. The documentation makes it seem like
> $_SERVER['REQUEST_URI'] is supposed to do that, but I get an "Undefined
> Index" error.
do a var_dump($_SERVER); or phpinfo(); to see what you do have available.
page
>
> Do I have to enable this somehow? I realize that I could recreate the
> rest of the URL from $_GET's, but I'd rather not if I don't have to.
>
> PHP 5.1
>
> Ken
>
> --PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
At 4:26 PM -0600 2/22/07, Ken Kixmoeller -- reply to ken
kixmoeller.com wrote:
>Hey - -
>
>I must be missing something, but in a URL such as:
>
> diddly.com?id=fred&total=goof
>
>$_SERVER['PHP-SELF'] gives me the diddley.com part.
>
>I want to capture the whole URL. The documentation makes it seem
>like $_SERVER['REQUEST_URI'] is supposed to do that, but I get an
>"Undefined Index" error.
>
>Do I have to enable this somehow? I realize that I could recreate
>the rest of the URL from $_GET's, but I'd rather not if I don't have
>to.
>
>PHP 5.1
>
>Ken
Ken:
Print out these three and you'll see your problem.
$_SERVER['SERVER_NAME']
$_SERVER['QUERY_STRING']
$_SERVER['REQUEST_URI']
hth's
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
attached mail follows:
Ken Kixmoeller -- reply to ken
kixmoeller.com wrote:
> Hey - -
>
> I must be missing something, but in a URL such as:
>
> diddly.com?id=fred&total=goof
First of forgoing the http:// missing, this still isn't a qualified URL
you are missing the / after the .com.
echo $_SERVER['REQUEST_URI'];
and see what it returns
if for some odd reason that doesn't work try
echo $_SERVER['QUERY_STRING'];
and if you are possibly making a typo, try
var_dump($_SERVER);
>
> $_SERVER['PHP-SELF'] gives me the diddley.com part.
this should be $_SERVER['PHP_SELF'] underscore, not a hyphen
>
> I want to capture the whole URL. The documentation makes it seem like
> $_SERVER['REQUEST_URI'] is supposed to do that, but I get an "Undefined
> Index" error.
show us an example of the script that generates the error
source and output of given source please
>
> Do I have to enable this somehow? I realize that I could recreate the
> rest of the URL from $_GET's, but I'd rather not if I don't have to.
I have never heard of this not being disabled.
Looks like you either typed this pretty fast or maybe you had a few
typo's. Review your code and check that you are using underscores and
not hyphens.
Jim
>
> PHP 5.1
>
> Ken
>
> --PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Hello,
URL consist of two part HOST and URI respectivetely. HOST part likes
example www.domain.com . URI part likes main.php?id=5 and so on. You can get
the HOST part of URL with $HTTP_HOST and URI part of URL with
$REQUEST_URI.:)
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net
""Ken Kixmoeller -- reply to ken
kixmoeller.com"" <Kixjaguar
comcast.net>
wrote in message news:31A2B65D-A2F2-49E6-891C-745E96B76EF8
comcast.net...
> Hey - -
>
> I must be missing something, but in a URL such as:
>
> diddly.com?id=fred&total=goof
>
> $_SERVER['PHP-SELF'] gives me the diddley.com part.
>
> I want to capture the whole URL. The documentation makes it seem like
> $_SERVER['REQUEST_URI'] is supposed to do that, but I get an "Undefined
> Index" error.
>
> Do I have to enable this somehow? I realize that I could recreate the
> rest of the URL from $_GET's, but I'd rather not if I don't have to.
>
> PHP 5.1
>
> Ken
attached mail follows:
I downloaded this full package...
http://us2.php.net/get/php_manual_chm.zip/from/a/mirror
And replaced the core .chm file from here:
http://us2.php.net/get/php_manual_en.chm/from/a/mirror
No matter what setting I select for the skin in "php_manual_prefs.exe", it
doesn't seem to change when I click on "php_manual_en.chm". Am I doing
something wrong?
attached mail follows:
I am storing a lot of text into my mssql database.
Are there any special characters I should watch out for?
I think so far I've got ' covered.
Also, when I retrieved the string later on...
The ' is printed out with a \ in the front. How do I get rid of the \?
When I try to get a really long string and print it out on a website, it
tends to stop in the middle of the string.
Is this some sort of a limitation that I can change?
Thank you!
attached mail follows:
On Thu, 2007-02-22 at 17:53 -0800, Liz Kim wrote:
> I am storing a lot of text into my mssql database.
> Are there any special characters I should watch out for?
> I think so far I've got ' covered.
Skip the guesswork and use an appropriate quoting mechanism for your
database -- that said I'm not aware of an mssql specific quoting
mechanism (and I don't care to find out :) -- so maybe just use
addSlashes().
> Also, when I retrieved the string later on...
> The ' is printed out with a \ in the front. How do I get rid of the \?
Turn off magic quotes.
> When I try to get a really long string and print it out on a website, it
> tends to stop in the middle of the string.
> Is this some sort of a limitation that I can change?
Sounds like your storing the data into a table column that is too short
for the data and so it gets truncated when stored. Then when you
retrieve it you get the truncated text. Increase the column width.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
Hello,
Firstly, you should create a configuration file for your phpMyAdmin
administration web site. If you extract phpMyAdmin in your htdocs folder,
you will create easily configuration file to enter the phpMyAdmin web site
on your localhost. (for example http://localhost/phpmyadmin/) After this
step, you can choose http in authentication and choose localhost in host:)
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net
<edwardspl
ita.org.mo> wrote in message news:45DDA3D5.9090405
ita.org.mo...
> Dear All,
>
> I just install the phpMyAdmin 2.9.2 on the Web...
> So, how to enable the login prompt with the main page ?
>
> Edward.
attached mail follows:
Hello,
Firstly, you should download latest GD library and Jpeg library and
then you should compile your GD with jpeg enabled option and then compile
jpeg. After this step, you can compile Apache and PHP. In PHP installation,
you should use such as --with-gd=/usr/local option for gd library and such
as --with-jpeg-dir option for jpeg library. If you use --with-gd option
without not write any folder name , PHP will use default GD folder (
extension directory).
http://www.libgd.org/Downloads
ftp://ftp.uu.net/graphics/jpeg/
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net
<afan
afan.net> wrote in message
news:6227.69.66.68.21.1172152233.squirrel
www.afan.net...
> after we (company I work for) mmoved to new hosting company (dedicated
> server), I requested from them to instal php5 with GDlib to be able play
> with images.
> they did.
> and then yesterday (2 months after we moved) I wasn't able to use
> ImageCreateFromJpeg() function:
> "Fatal error: Call to undefined function ImageCreateFromJpeg() in
> /srv/www/mydomain.com/image_resize.php on line 11"
>
> Then, I was searching a little bit and found this from gd_info()
> Array
> (
> [GD Version] => bundled (2.0.28 compatible)
> [FreeType Support] =>
> [T1Lib Support] =>
> [GIF Read Support] => 1
> [GIF Create Support] => 1
> [JPG Support] =>
> [PNG Support] => 1
> [WBMP Support] => 1
> [XPM Support] =>
> [XBM Support] => 1
> [JIS-mapped Japanese Font Support] =>
> )
>
> Looks like they didn't do correctly because JPG is not supported?
>
> In phpinfo() found this:
> Configure Command './configure' '--with-apxs2=/etc/apache2/bin/apxs'
> '--with-mysql' '--with-gd' '--with-zlib-dir=/usr/local/lib'
>
> and this:
> gd
> GD Support enabled
> GD Version bundled (2.0.28 compatible)
> GIF Read Support enabled
> GIF Create Support enabled
> PNG Support enabled
> WBMP Support enabled
> XBM Support enabled
>
> Now, when I talk to them they said we have to pay $250 to be fixed?!?
>
> I have root access and have some php/mysql/apache installation experience
> and want to fix myself - can somebody point me to the right direction?
>
> Thanks.
>
> -afan
attached mail follows:
Dear list,
strstr returns a string (in case the needle is found),
but a boolean if there is no needle in the haystack.
I am trying to make a readable evaluation of some tests, but this fails
to work as supposed because of
- undefined results when "OR"ing strings with possible string (?)
- use of bitwise OR operator ("|") where I am uncertain if I can
write anything like $a ||= $b;
Please read this snippet and tell me your ideas ;)
Thanks
Ralf
$oLen = strlen ($commentary);
$isSpam = ! strstr($_POST['Name']," ");
$isSpam |= strlen (str_replace("http://","",$commentary)) < $oLen;
$isSpam |= strstr($_POST['Name'],"
");
$isSpam |= stristr($_POST['Name'],"Casino");
//My next trial will be to add "is_string( ...)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]