php-general Digest 25 Mar 2002 00:32:21 -0000 Issue 1246
Topics (messages 89907 through 89951):
Re: How to reduce an array to n values?
89907 by: Jacob Wyke
89909 by: Andy
89923 by: [-^-!-%-
89926 by: Thalis A. Kalfigopoulos
storing PDF in a database
89908 by: Alain DESEINE
DOMXML and encodings (php4.1.2, libxml2.4.16)
89910 by: Lucky
89913 by: Stefan Livieratos
HELP! Open "HTTPS://", and follow rediect header
89911 by: Zlutarch G.
89914 by: Stefan Livieratos
Re: Retreiving website contents
89912 by: Craig Westerman
Re: Problem with special characters
89915 by: Jason Wong
Re: PHPTriad Error in Windows XP.
89916 by: Avdija A.Ahmedhodzic
Re: Stripslashes & addslashes question ...
89917 by: Johnson, Kirk
Re: test...
89918 by: Avdija A.Ahmedhodzic
forms and inputs
89919 by: Vlad Kulchitski
89922 by: S
89927 by: Vlad Kulchitski
89928 by: [-^-!-%-
89933 by: Jason Sheets
89935 by: S
Rebuilding PHP4 with IBM DB2 Support Causes Apache to Die Upon Restart
89920 by: Derek Battams
socket functions and singnals
89921 by: Michael Govorun
rpm -ba php.spec fails
89924 by: David McInnis
Creating table in mySQL db
89925 by: Piotr Skorupski
89930 by: TV Karthick Kumar
89934 by: Demitrious S. Kelly
Displaying a 2 column html table with N elements
89929 by: Marc Andre Paquin
Re: PHP and xEmacs
89931 by: Gunter Ohrner
Problem ?
89932 by: ren
Re: Image Manipulation/GD support
89936 by: Richard Archer
upload forms, how much was uploaded before upload fails..
89937 by: Gerhard Hoogterp
89938 by: Rasmus Lerdorf
Re: Using EditPlus with PHP
89939 by: Martin Towell
89941 by: Mantas Kriauciunas
89945 by: Martin Towell
The CGI open source foundry needs members - Reedited
89940 by: David Duong
header and session?
89942 by: bob
Retrieving POP mail
89943 by: Kearns, Terry
89949 by: Rasmus Lerdorf
Image manipulation with PHP on RHLinux 7.1
89944 by: Dale & Lora Marshall
89946 by: Thalis A. Kalfigopoulos
89948 by: Dale & Lora Marshall
Non-Cache in forms?
89947 by: eric.coleman.zaireweb.com
PHP - hosting tips
89950 by: Rudi Starcevic
what's "undefined index" ?
89951 by: Kai Schaetzl
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Use array_slice().
$output = array_slice ($input, 0, 3);
will return the first three values of the array.
Check out http://www.php.net/manual/en/function.array-slice.php for more
details.
-----Original Message-----
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: 24 March 2002 12:31
To: [EMAIL PROTECTED]
Subject: [PHP] How to reduce an array to n values?
Hi there,
I am trying to reduce an array to n values if it is more than n values.
eg.
$level_depth = 3;
$test = array('banana', 'super', 'php', 'car');
# some array function which is deleting the last item ( car) if existant
Thanx for any help,
Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
^thanx.
"Jacob Wyke" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Use array_slice().
>
> $output = array_slice ($input, 0, 3);
>
> will return the first three values of the array.
>
> Check out http://www.php.net/manual/en/function.array-slice.php for more
> details.
>
>
>
> -----Original Message-----
> From: Andy [mailto:[EMAIL PROTECTED]]
> Sent: 24 March 2002 12:31
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to reduce an array to n values?
>
>
> Hi there,
>
> I am trying to reduce an array to n values if it is more than n values.
>
> eg.
>
> $level_depth = 3;
> $test = array('banana', 'super', 'php', 'car');
>
> # some array function which is deleting the last item ( car) if existant
>
> Thanx for any help,
>
> Andy
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
--- End Message ---
--- Begin Message ---
Use array_pop.
See the manual.
-j
__________John Monfort_________________
_+-----------------------------------+_
P E P I E D E S I G N S
www.pepiedesigns.com
-+___________________________________+-
On Sun, 24 Mar 2002, Andy wrote:
> Hi there,
>
> I am trying to reduce an array to n values if it is more than n values.
>
> eg.
>
> $level_depth = 3;
> $test = array('banana', 'super', 'php', 'car');
>
> # some array function which is deleting the last item ( car) if existant
>
> Thanx for any help,
>
> Andy
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Use array_splice or better array_slice.
array_slice($orig_array,0,n);
cheers,
--t.
On Sun, 24 Mar 2002, [-^-!-%- wrote:
>
>
> Use array_pop.
> See the manual.
>
> -j
>
> __________John Monfort_________________
> _+-----------------------------------+_
> P E P I E D E S I G N S
> www.pepiedesigns.com
> -+___________________________________+-
>
> On Sun, 24 Mar 2002, Andy wrote:
>
> > Hi there,
> >
> > I am trying to reduce an array to n values if it is more than n values.
> >
> > eg.
> >
> > $level_depth = 3;
> > $test = array('banana', 'super', 'php', 'car');
> >
> > # some array function which is deleting the last item ( car) if existant
> >
> > Thanx for any help,
> >
> > Andy
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello,
For many different reasons, like security ans soùme other one, i need to
store PDF files in a database.
- Does anybody have already do this ?
- What kind of field type should i use (image filed type ???) ?
I'm currently using an ASE 12 (64 bits) SYBASE server on a HP-UX 11.00
(64 bits) box.
The application server is a linux server with apache and PHP.
Any feedback about doing somethin like this will be valuable ...
Many thanks for responses.
Best regards,
Alain DESEINE.
--- End Message ---
--- Begin Message ---
Hello all, I have a little problem with encodings with libxml2 resp. domxml
in php.
In our site we're storing articles as XML, ISO-8859-1 encoded (indicated in
xml-header). Libxml2 is doing all the internal processing in UTF-8, so the
article gets translated to UTF-8. But when I do an xmltree() on the article,
all output of libxml is in UTF-8, too, and it's really ugly to read german
umlauts in UTF-8 in a browser displaying all as ISO-8859-1.
Is there any way (other than manually do utf8_decode on every part of the
output, which is _very_ ugly and annoying) to tell php or libxml to output
things in UTF-8?
We're using Debian Woody, php4-4.1.2-1, libxml2-2.4.16-2,
php4-domxml4.1.2-1.
--
Lukas
--- End Message ---
--- Begin Message ---
Hi
Lucky wrote:
> Hello all, I have a little problem with encodings with libxml2 resp. domxml
> in php.
>
> In our site we're storing articles as XML, ISO-8859-1 encoded (indicated in
> xml-header). Libxml2 is doing all the internal processing in UTF-8, so the
> article gets translated to UTF-8. But when I do an xmltree() on the article,
> all output of libxml is in UTF-8, too, and it's really ugly to read german
> umlauts in UTF-8 in a browser displaying all as ISO-8859-1.
> Is there any way (other than manually do utf8_decode on every part of the
> output, which is _very_ ugly and annoying) to tell php or libxml to output
> things in UTF-8?
No, unfortunately there isn't. Here's a quote from the libxml site
(http://xmlsoft.org/encoding.html):
"... basically the I18N (internationalization) support get triggered
only during I/O operation, i.e. when reading a document or saving one"
Regards,
Stefan Livieratos
--
ICS Plus
Internet Consulting + Services
==============================
Aeussere Brucker Str. 51
D-91058 Erlangen
Germany
==============================
Tel : +49 9131 127733
Fax : +49 9131 127744
E-mail : [EMAIL PROTECTED]
Web : http://www.icsplus.de
==============================
--- End Message ---
--- Begin Message ---
Hi All,
I need help on two problems:
1) Is there a PHP function similar to fopen() that would open URL begins
with "https://", i.e., SSL address?
2) Does anyone know if it is possible in PHP to read redirect instructions
in HTTP header, and then follow the links?
Thanks in advance,
Zlu
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--- End Message ---
--- Begin Message ---
Hi,
Zlutarch G. wrote:
> Hi All,
>
> I need help on two problems:
> 1) Is there a PHP function similar to fopen() that would open URL begins
> with "https://", i.e., SSL address?
fopen("https://...") is working with current CVS but is not going to be
in a release before version 4.3. For now you can use the cURL module
provided the cURL library is compiled with OpenSSL support.
>
> 2) Does anyone know if it is possible in PHP to read redirect
> instructions in HTTP header, and then follow the links?
Use the cURL module:
<?php
$ch = curl_init ("http://www.php.net/");
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_NOBODY, 1);
ob_start();
curl_exec ($ch);
$header = ob_get_contents();
ob_end_clean();
curl_close ($ch);
?>
Now search for the "Location" header in $header.
Regards,
Stefan Livieratos
--
ICS Plus
Internet Consulting + Services
==============================
Aeussere Brucker Str. 51
D-91058 Erlangen
Germany
==============================
Tel : +49 9131 127733
Fax : +49 9131 127744
E-mail : [EMAIL PROTECTED]
Web : http://www.icsplus.de
==============================
--- End Message ---
--- Begin Message ---
http://curl.haxx.se/libcurl/php/examples/
-----Original Message-----
From: Liam [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 23, 2002 9:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Retreiving website contents
Hi, I've asked this before but I'm still ost.
How can I receive the contents of a remote website through PHP and only disp
lay one section of it?
Someone said something about curl.
What is it, where could I get it?
Thanks for your help,
Liam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Sunday 24 March 2002 17:51, N. Pari Purna Chand wrote:
> When a form is submitting data to another php page
> it is sending specialcharacters with escape sequences added.
>
> Ex : <Input type=text value="c:\programfiles\" name=var1>
> & when i do an
> echo $var1;
> in the submitted php page
> it is showing "c:\\programfiles\\" instead of "c:\programfiles\"
>
> Howto overcome this ?
Look up the following in the manual:
php.ini > magic_quotes_gpc
stripslashes()
addslashes()
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Sweet sixteen is beautiful Bess,
And her voice is changing -- from "No" to "Yes".
*/
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> Hi,
> I installed PHPTriad under Windows XP and I keep gettting the
> following error:
>
> Warning: MySQL Connection Failed: Can't connect to MySQL server on
> 'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line
> 255
>
>
> It worked before under Windows ME. WinMySQLadmin1.0 works fine as well
> as MySQL when I ran it in the cmd-line mode. What's the remedy?
>
> Thanks in advance,
> -Peter
>
>
>
you should start MySQL first.
--
Prevencija putem edukacije
http://www.narkomanija.com/
--- End Message ---
--- Begin Message ---
Have you echo'd the variables before the addslashes() call, to be sure that
the stripslashes() call is being executed?
Kirk
> -----Original Message-----
> From: John Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 23, 2002 12:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Stripslashes & addslashes question ...
>
>
> Hi, can someone tell me why the following results in
> evaluated variables
> with 2 slashes in front of apostrophys instead of one and how
> I can modify
> it to only add 1? Thanks!
>
> foreach($_POST as $k=>$v){
> if (get_magic_quotes_gpc()){
> $_POST[$k] = stripslashes($v);
> }
> $_POST[$k] = addslashes($v);
> eval( "\$$k = \"$_POST[$k]\";" );
> }
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> 24/03/2002 8:34:40 PM
>
> Umm, is it just me or has there been no traffic on this list for the last 2 hours....
>
> Weird....
>
>
>
>
people write less on weekdays.
Poz!
--
Prevencija putem edukacije
http://www.narkomanija.com/
--- End Message ---
--- Begin Message ---
Hi,
Can anyone suggest anything regarding the following problem.
Basically, I ask the user to type a few sentences, in
<input type=text name=name> and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...
Once clicked "YES" all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)
But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit "Hello my name is Vlad", the only word that will
end up in the database would be "Hello". What is the best solution to
overcome this?
Thanks,
Vlad
--- End Message ---
--- Begin Message ---
Your input tag should look like this:
<input type="text" name="myvariable" value="Hello my name is Vlad">
-----Original Message-----
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs
Hi,
Can anyone suggest anything regarding the following problem.
Basically, I ask the user to type a few sentences, in
<input type=text name=name> and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...
Once clicked "YES" all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)
But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit "Hello my name is Vlad", the only word that will
end up in the database would be "Hello". What is the best solution to
overcome this?
Thanks,
Vlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi continuing with the same issue I just found another bug in my code. Basically I
have a script myfile.php, based on codition it goes through submit process STEP 1
through 4. It takes along the values it has collected via:
<form>
<input type=hidden name="name">
</form>
And so on, on the final stage it submits everything is has collected to the database.
What I noticed now is that if I type name with space, like "Mister Simpson" or again
like I mentioned before if I type a sentence in step 2 on the final stage it gets
lost. You can check how it works here:
http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit
If anyone knows how to overcome the problem, please help.
Thanks,
Vlad
-----Original Message-----
From: S [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:34 PM
To: Vlad Kulchitski; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs
Your input tag should look like this:
<input type="text" name="myvariable" value="Hello my name is Vlad">
-----Original Message-----
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs
Hi,
Can anyone suggest anything regarding the following problem.
Basically, I ask the user to type a few sentences, in
<input type=text name=name> and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...
Once clicked "YES" all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)
But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit "Hello my name is Vlad", the only word that will
end up in the database would be "Hello". What is the best solution to
overcome this?
Thanks,
Vlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
You need to add quotes (" ") arround the PHP variable that displays your
text.
In your case, it should be something like:
<?php
echo "$text";
?>
-john
On Sun, 24 Mar 2002, Vlad Kulchitski wrote:
> Hi,
>
> Can anyone suggest anything regarding the following problem.
>
> Basically, I ask the user to type a few sentences, in
> <input type=text name=name> and on the next page I show everything
> s/he typed asking "Are you sure you want to submit this...
>
> Once clicked "YES" all data is being taken to the next page for
> FINAL submission to mysql. (all is done in one php script though)
>
> But anyway, the problem is that when I see the final data in the
> database, there's only 1 word from the sentence the used has typed
> in, i.e if I submit "Hello my name is Vlad", the only word that will
> end up in the database would be "Hello". What is the best solution to
> overcome this?
>
> Thanks,
> Vlad
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
As the previous poster said you need to have " around your value in your
input tag
Instead of <input type=text name=fname_eng size='20' maxlength='18'
value=Jason J> you need to be using <input type=text name=fname_eng
size='20' maxlength='18' value="Jason J">
Otherwise the browser is only displaying the first word, this is not a PHP
problem, this is a html coding mistake.
PHP Code Example:
<input type=text name=fname_eng size='20' maxlength='18' value="<?php echo
$_POST['fname']; ?>">
Jason
"Vlad Kulchitski" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi continuing with the same issue I just found another bug in my code.
Basically I have a script myfile.php, based on codition it goes through
submit process STEP 1 through 4. It takes along the values it has collected
via:
<form>
<input type=hidden name="name">
</form>
And so on, on the final stage it submits everything is has collected to the
database. What I noticed now is that if I type name with space, like "Mister
Simpson" or again like I mentioned before if I type a sentence in step 2 on
the final stage it gets lost. You can check how it works here:
http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit
If anyone knows how to overcome the problem, please help.
Thanks,
Vlad
-----Original Message-----
From: S [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:34 PM
To: Vlad Kulchitski; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs
Your input tag should look like this:
<input type="text" name="myvariable" value="Hello my name is Vlad">
-----Original Message-----
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs
Hi,
Can anyone suggest anything regarding the following problem.
Basically, I ask the user to type a few sentences, in
<input type=text name=name> and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...
Once clicked "YES" all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)
But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit "Hello my name is Vlad", the only word that will
end up in the database would be "Hello". What is the best solution to
overcome this?
Thanks,
Vlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
You have to put quotes around the value or else you won't get anything pass
the space.
WRONG:
<input type=hidden name=fname_eng value=Bob J.>
RIGHT:
<input type=hidden name=fname_eng value="Bob J.">
-----Original Message-----
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 3:10 PM
To: S; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs
Hi continuing with the same issue I just found another bug in my code.
Basically I have a script myfile.php, based on codition it goes through
submit process STEP 1 through 4. It takes along the values it has collected
via:
<form>
<input type=hidden name="name">
</form>
And so on, on the final stage it submits everything is has collected to the
database. What I noticed now is that if I type name with space, like "Mister
Simpson" or again like I mentioned before if I type a sentence in step 2 on
the final stage it gets lost. You can check how it works here:
http://kulchitski.com/btl/btl.php?lang=eng&page=talkroom_submit
If anyone knows how to overcome the problem, please help.
Thanks,
Vlad
-----Original Message-----
From: S [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:34 PM
To: Vlad Kulchitski; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs
Your input tag should look like this:
<input type="text" name="myvariable" value="Hello my name is Vlad">
-----Original Message-----
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs
Hi,
Can anyone suggest anything regarding the following problem.
Basically, I ask the user to type a few sentences, in
<input type=text name=name> and on the next page I show everything
s/he typed asking "Are you sure you want to submit this...
Once clicked "YES" all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)
But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit "Hello my name is Vlad", the only word that will
end up in the database would be "Hello". What is the best solution to
overcome this?
Thanks,
Vlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Currently I have Apache and PHP4 (using the Apache module for PHP4) working
just fine on my server. However, the RPMs I installed for mod_php4 didn't
include IBM DB2 support. So I took the source RPM and modified it by simply
adding the following line to the spec file:
--with-ibm-db2
I appended this to the CFLAGS parameter in the spec file. I then rebuilt
the RPMs and everything built fine. I then installed them and that was
fine. However, when I try to restart Apache nothing happens. It just exits
immediately with nothing written to any logs. If I remove the
'--with-ibm-db2' flag from the spec file, rebuild the RPMs, then reinstall
them without DB2 support then Apache restarts fine and operates with no
problems. DB2 is installed, configured, and running on the server. I've
spent numerous hours (on the weekend none the less) trying to figure this
out, but with no luck. Any help would be greatly appreciated.
Thanks,
Derek
--- End Message ---
--- Begin Message ---
Socket functions, such as socket_read(), socket_accept() blocking
signal handling in php-processes. Is it bug? Is there any way to use
signals and socket_accept() together?
Please, help!
--
Michael Govorun
--- End Message ---
--- Begin Message ---
I am using RPM 4.0.2 on the YellowDog 2.1 Distro.
rpm -b php.spec yields the following:
[root@cpdev1 SPECS]# rpm -b php.spec
-b: unknown option
Is there something wrong with my version of RPM? When I type, rpm -ba
php.spec, I get nothing but the following:
************ output ************
[root@cpdev1 SPECS]# rpm -ba php.spec
RPM version 4.0.2
Copyright (C) 1998-2000 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm {--help}
rpm {--version}
rpm {--initdb} [--dbpath <dir>]
rpm {--install -i} [-v] [--hash -h] [--percent] [--force]
[--test]
[--replacepkgs] [--replacefiles] [--root <dir>]
[--excludedocs] [--includedocs] [--noscripts]
[--rcfile <file>] [--ignorearch] [--dbpath
<dir>]
[--prefix <dir>] [--ignoreos] [--nodeps]
[--allfiles]
[--ftpproxy <host>] [--ftpport <port>]
[--httpproxy <host>] [--httpport <port>]
[--justdb] [--noorder] [--relocate
oldpath=newpath]
[--badreloc] [--notriggers] [--excludepath
<path>]
[--ignoresize] file1.rpm ... fileN.rpm
rpm {--upgrade -U} [-v] [--hash -h] [--percent] [--force]
[--test]
[--oldpackage] [--root <dir>] [--noscripts]
[--excludedocs] [--includedocs] [--rcfile
<file>]
[--ignorearch] [--dbpath <dir>] [--prefix
<dir>]
[--ftpproxy <host>] [--ftpport <port>]
[--httpproxy <host>] [--httpport <port>]
[--ignoreos] [--nodeps] [--allfiles] [--justdb]
[--noorder] [--relocate oldpath=newpath]
[--badreloc] [--excludepath <path>]
[--ignoresize]
file1.rpm ... fileN.rpm
rpm {--query -q} [-afpg] [-i] [-l] [-s] [-d] [-c] [-v] [-R]
[--scripts] [--root <dir>] [--rcfile <file>]
[--whatprovides] [--whatrequires] [--requires]
[--triggeredby]
[--ftpproxy <host>] [--ftpport <port>]
[--httpproxy <host>] [--httpport <port>]
[--provides] [--triggers] [--dump]
[--changelog] [--dbpath <dir>] [targets]
rpm {--verify -V -y} [-afpg] [--root <dir>] [--rcfile <file>]
[--dbpath <dir>] [--nodeps] [--nofiles]
[--noscripts]
[--nomd5] [targets]
rpm {--setperms} [-afpg] [target]
rpm {--setugids} [-afpg] [target]
rpm {--freshen -F} file1.rpm ... fileN.rpm
rpm {--erase -e} [--root <dir>] [--noscripts] [--rcfile <file>]
[--dbpath <dir>] [--nodeps] [--allmatches]
[--justdb] [--notriggers] package1 ... packageN
rpm {--resign} [--rcfile <file>] package1 package2 ... packageN
rpm {--addsign} [--rcfile <file>] package1 package2 ... packageN
rpm {--checksig -K} [--nopgp] [--nogpg] [--nomd5] [--rcfile
<file>]
package1 ... packageN
rpm {--rebuilddb} [--rcfile <file>] [--dbpath <dir>]
rpm {--querytags}
--- End Message ---
--- Begin Message ---
Hello
Is there a way to create a teble in mySQL database by PHP?
--- End Message ---
--- Begin Message ---
Hi,
That's very simple. All you have to do it, connect to the mysql on the
host and then execute the 'create table..' querty, that's all... You can
find good tutorials at webmonkey.com and devshed.com.. and lot more....
Hope this helps.
Hth,
Karthick
----- Original Message -----
From: "Piotr Skorupski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 24, 2002 8:58 PM
Subject: [PHP] Creating table in mySQL db
Hello
Is there a way to create a teble in mySQL database by PHP?
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
http://www.apokalyptik.com/ftp/src/bin/ftp_indexer.phps
look at the "Create table" sql queries I used...
-----Original Message-----
From: Piotr Skorupski [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 11:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Creating table in mySQL db
Hello
Is there a way to create a teble in mySQL database by PHP?
--- End Message ---
--- Begin Message ---
Hello,
I am trying to display a HTML table of 2 cells with "n" elements... This means
an unknown number of lines.
I need to use 2 FOR loops (one to determine the number of <TR> and one to
create the 2 cells needed). This is a bit to overwellming for me...
I have:
$result = connect_db("select prod_id,photo from prod where cat_id=1");
$Rows = pg_NumRows($result);
$lines_TOT = ceil($Rows/2);
for($TR=0; $TR < $ligne_TOT; $TR++){
print "<tr>\n";
for($TD=0; $TD < 2;$TD++){
$photo=pg_Result($result,$TD,photo);
$prod_id=pg_Result($result,$TD,prod_id);
print "<td>";
if ($prod_id != ""){
print "<img src=\"../photo/". $photo. "s.jpg\" border=0>\n";
} else {
print " ";
}
print "</td>";
}
}
As you can see, the second loop cant continue to display the next product... So
the first line with the 2 images are ok but the other lines are identical, so
if I have 10 products, I see only 1 and 2 over 5 lines!
How can I solve this? To have 2 columns per line, I must limit the loop but I
need to continue at that point on the second line...
Thank you for any assistance!
--
Marc André Paquin
--- End Message ---
--- Begin Message ---
Gunter Ohrner wrote:
> I use psgml-html and Turadg Aleahmad's php-mode 1.0.2 (I just tried it
> with Fred Yankowski, too, getting excactly the same results) and tried to
> combine both using mmm-mode 0.4.7.
> So far it does work, however I cannot indent the embedded php-code at
> all... :-( Pressing TAB in a line just causes its indentation to get lost,
To answer my own question: Using the latest mmm-mode from CVS fixes that,
indentation still is not perfect but it does at least work - and not too
bad at all. :-)
Greetinx,
Gunter Ohrner
--
If the Creator had said, "Let there be light" in Ankh-Morpork, he'd have
gotten no further because of all the people saying "What colour?" --
(Terry Pratchett, Men At Arms)
-+-+-+-+-+- PDEPP Webserver: http://pdepp.SourceForge.net/ -+-+-+-+-+-
--- End Message ---
--- Begin Message ---
if I through the proxy server view our Php website ,sometime I got
proxy error page. The message is "64 The specified network name is no longer available
",when I refresh it will be ok.
if I do not through the proxy,I never got error.
Anyidea ?
Thanks
Jim
--- End Message ---
--- Begin Message ---
At 8:17 PM -0800 23/3/02, Rasmus Lerdorf wrote:
>failing. I use gd2 these days because the 8-bit limitation of gd1 just
>sucks. You can find my simple gd2 instructions here
>http://www.php.net/~rasmus/gd.html
I found that enabling GD and freetype support in php-4.1.2 was not
this simple. php-4.1.2 seems to require gd-2.0.2 which has not yet
been released.
Here's a description of how I got it working:
http://mel01.juggernaut.com.au/patches/gd/
...Richard.
--- End Message ---
--- Begin Message ---
Hello all,
I'm still having problems uploading BIG files (15MB and more) Is there a way
to find howmuch data was uploaded before the connection was broken?
For some weird reason no browser has a half decent user feedback if it come
to upload forms.
Gerhard
--
ICQ: 4502226
--- End Message ---
--- Begin Message ---
You'll probably need PHP 4.2 for uploads that big to work well. Before
4.2 uploads were buffered in ram, so no, you have no way to recover a
broken upload.
On Sun, 24 Mar 2002, Gerhard Hoogterp wrote:
> Hello all,
>
> I'm still having problems uploading BIG files (15MB and more) Is there a way
> to find howmuch data was uploaded before the connection was broken?
>
> For some weird reason no browser has a half decent user feedback if it come
> to upload forms.
>
> Gerhard
>
> --
> ICQ: 4502226
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Doesn't look like anyone's replied to this...
I just have a button with the following parameters
Menu Text: Parse w/ PHP4 -> I have a "Parse w/ PHP3" and "Parse w/
PHP-GTK".... :)
Command: C:\Program Files\httpd\php\php.exe
Argument: $(FilePath)
Initial directory: $(FileDir)
and I have the "Capture output" checkbox selected
HTH
Martin
-----Original Message-----
From: Luca Grossi [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Using EditPlus with PHP
I'm sorry if this question has been asked before
but could anyone give me instructions on how to debug and interpret php
scripts using Edit Plus ? I download the php modules for edit plus so
it recognise the syntax. But how do I setup the user tools , so I can check
for bugs in the script and run it
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hey PHP General List,
I have problem also with editplus. Well i have same as Martin has but
i get warning = " Unable to load dynamic library
'c:\web\php\extensions/php_java.dll' - The specified modyle could not
be found. " But what is interesting that php_java.dll is in the place
in that directory and it doesn't find it. Well any suggestions what
should i do ?
Thanks
:----
Got your email on:Sunday, March 24, 2002, 2:25:02 PM writing:
MT> Doesn't look like anyone's replied to this...
MT> I just have a button with the following parameters
MT> Menu Text: Parse w/ PHP4 -> I have a "Parse w/ PHP3" and "Parse w/
MT> PHP-GTK".... :)
MT> Command: C:\Program Files\httpd\php\php.exe
MT> Argument: $(FilePath)
MT> Initial directory: $(FileDir)
MT> and I have the "Capture output" checkbox selected
MT> HTH
MT> Martin
MT> -----Original Message-----
MT> From: Luca Grossi [mailto:[EMAIL PROTECTED]]
MT> Sent: Sunday, March 24, 2002 2:00 PM
MT> To: [EMAIL PROTECTED]
MT> Subject: [PHP] Using EditPlus with PHP
MT> I'm sorry if this question has been asked before
MT> but could anyone give me instructions on how to debug and interpret php
MT> scripts using Edit Plus ? I download the php modules for edit plus so
MT> it recognise the syntax. But how do I setup the user tools , so I can check
MT> for bugs in the script and run it
MT> Thanks
:------------------------------:
Have A Nice Day!
Mantas Kriauciunas A.k.A mNTKz
Contacts:
[EMAIL PROTECTED]
Http://mntkz-hata.visiems.lt
--- End Message ---
--- Begin Message ---
try mucking around with the include path in php.ini
I've managed to get it to work, but then I've got to change it for other
reasons, then I can't remember how I had it before - next time I'll have to
remember to just comment out the line and create a new one...
-----Original Message-----
From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:15 PM
To: PHP General List
Subject: Re[2]: [PHP] Using EditPlus with PHP
Hey PHP General List,
I have problem also with editplus. Well i have same as Martin has but
i get warning = " Unable to load dynamic library
'c:\web\php\extensions/php_java.dll' - The specified modyle could not
be found. " But what is interesting that php_java.dll is in the place
in that directory and it doesn't find it. Well any suggestions what
should i do ?
Thanks
:----
Got your email on:Sunday, March 24, 2002, 2:25:02 PM writing:
MT> Doesn't look like anyone's replied to this...
MT> I just have a button with the following parameters
MT> Menu Text: Parse w/ PHP4 -> I have a "Parse w/ PHP3" and "Parse
w/
MT> PHP-GTK".... :)
MT> Command: C:\Program Files\httpd\php\php.exe
MT> Argument: $(FilePath)
MT> Initial directory: $(FileDir)
MT> and I have the "Capture output" checkbox selected
MT> HTH
MT> Martin
MT> -----Original Message-----
MT> From: Luca Grossi [mailto:[EMAIL PROTECTED]]
MT> Sent: Sunday, March 24, 2002 2:00 PM
MT> To: [EMAIL PROTECTED]
MT> Subject: [PHP] Using EditPlus with PHP
MT> I'm sorry if this question has been asked
before
MT> but could anyone give me instructions on how to debug and interpret php
MT> scripts using Edit Plus ? I download the php modules for edit plus so
MT> it recognise the syntax. But how do I setup the user tools , so I can
check
MT> for bugs in the script and run it
MT> Thanks
:------------------------------:
Have A Nice Day!
Mantas Kriauciunas A.k.A mNTKz
Contacts:
[EMAIL PROTECTED]
Http://mntkz-hata.visiems.lt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Is their anyone who would like to join the CGI Open Source Foundry (COSF)?
COSF will be a CGI foundry that produces scripts from:
- The existing projects of its members (which means if you have a project
in the works which was supposed to be finished a year ago right before you
started on the new one)
- The Scripts which have been abandoned because the scripter lost his/her
interest in.
- From the brain child of any of our members.
I am planning to make a CGI Open Source Foundry
After the Foundry is initally set-up we will begin to release scripts.
The main goal would be to improve our skills, start something and actually
finish it quickly and better than designed.
--- End Message ---
--- Begin Message ---
1.php? 2.php
session_start(); session_start();
.......... ..........
$_SESSION['a'] =$a; echo $_SESSION['a'];
$_SESSION['b'] =$b; echo $_SESSION['b'];
header("location: 2.php");
after jump to 2.php ,there is an warning: undefined index a ,b
if i change 1.php to
session_start();
..........
$_SESSION['a'] =$a;
$_SESSION['b'] =$b;
<a href='2.php' >go on </a>
it works well!
Best regards and thanks in advance,
bob
--- End Message ---
--- Begin Message ---
The documentation for the IMAP functions is, er, virtually non-existent. I'm
not looking to read several sets of RFCs - all I want to do it check a POP
account on Exchange for messages and retrieve them.
Does anyone know if there is a tutorial on this somewhere?
[TK]
--- End Message ---
--- Begin Message ---
Did you read php.net/imap_open ?
On Mon, 25 Mar 2002, Kearns, Terry wrote:
> The documentation for the IMAP functions is, er, virtually non-existent. I'm
> not looking to read several sets of RFCs - all I want to do it check a POP
> account on Exchange for messages and retrieve them.
>
> Does anyone know if there is a tutorial on this somewhere?
>
>
> [TK]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello all. I have a PHP script which retrieves records from a database,
and one field in the record is the path to an image. I want to do things
with this image:
See what it's size (pixes) is
Resize it if necessary
Move it to a different location
Can someone give me an idea on how to do this? I'm running PHP 4.1.2 on
Red Hat Linux 7.1
Thanks!
- Dale
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dale & Lora Marshall Internet Marketing Services
http://lonestar.texas.net/~marshal1 http://www.internet-ms.com
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--- End Message ---
--- Begin Message ---
This isn't image manipulation. This is filesystem manipulation.
As for the "resizing", check if you have mogrify with you Linux installation and do a
system() on it.
cheers,
--t.
On Sun, 24 Mar 2002, Dale & Lora Marshall wrote:
>
> Hello all. I have a PHP script which retrieves records from a database,
> and one field in the record is the path to an image. I want to do things
> with this image:
>
> See what it's size (pixes) is
> Resize it if necessary
> Move it to a different location
>
> Can someone give me an idea on how to do this? I'm running PHP 4.1.2 on
> Red Hat Linux 7.1
>
> Thanks!
>
> - Dale
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Dale & Lora Marshall Internet Marketing Services
> http://lonestar.texas.net/~marshal1 http://www.internet-ms.com
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I guess I should clarify. If the image that's referenced in the
database is, for example, 700x300, I want to reduce it to 600
pixels wide, keeping the height proportional. Then, save that
image to a new name somewhere else in the filesytem. Then I want
to reduce the image further to 300 pixels wide, again keeping the
height proportional. And save that image elsewhere.
Ideas?
- Dale
At 3/24/02 06:30 PM, you wrote:
>This isn't image manipulation. This is filesystem manipulation.
>As for the "resizing", check if you have mogrify with you Linux
>installation and do a system() on it.
>
>cheers,
>--t.
>
>
>On Sun, 24 Mar 2002, Dale & Lora Marshall wrote:
>
> >
> > Hello all. I have a PHP script which retrieves records from a database,
> > and one field in the record is the path to an image. I want to do things
> > with this image:
> >
> > See what it's size (pixes) is
> > Resize it if necessary
> > Move it to a different location
> >
> > Can someone give me an idea on how to do this? I'm running PHP 4.1.2 on
> > Red Hat Linux 7.1
> >
> > Thanks!
> >
> > - Dale
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > Dale & Lora Marshall Internet Marketing Services
> > http://lonestar.texas.net/~marshal1 http://www.internet-ms.com
> > [EMAIL PROTECTED] [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dale & Lora Marshall Internet Marketing Services
http://lonestar.texas.net/~marshal1 http://www.internet-ms.com
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--- End Message ---
--- Begin Message ---
Alright,
When I submit a form, and shoot out an error, such as "Please fill in email address"
and then send them back to the form, the form seems to be blank...
Why? What is happening that the form isn't keeping the previously posted data?
My error function looks like so
function crapout($msg, $hidden_msg = FASE) {
echo($msg);
if($hidden_msg != "FALSE") {
echo('<!-- ' . $hidden_msg . ' -->');
}
exit;
}
Thanks,
Eric Coleman
--- End Message ---
--- Begin Message ---
Hi friends,
Here at work we are gearing up to host PHP applications.
Could anyone point me towards some tips on PHP hositng ?
I'm interested in preparing my PHP server so that it is as secure as
possible.
Thanks
Kind regards
Rudi Starcevic.
--- End Message ---
--- Begin Message ---
When I enable display of warnings I get an "undefined index" warning
instead of an "undefined variable" for some variables.
Why and what's the difference?
Warning: Undefined index: KundeRemark in
C:\Server\www\conadmin\admin-beta\lib\kunden_functions.inc on line
138
Warning: Undefined variable: KundeStatusNeu_show in
C:\Server\www\conadmin\admin-beta\lib\kunden_functions.inc on line
192
Kai
--
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org
--- End Message ---