[PHP] Re: Difference between i586 RPM and SRC.RPM?
src.rpm is the source code packaged in an rpm-file. If you install it as rpm --rebuild it will compile a binary rpm for you. If you use Redhat you can find the binary rpm in /usr/src/Redhat/RPMS i586.rpm is a compiled binary for the i586-platform architecture /Fredrik -- Fredrik WahlbergW: +46-8-54 54 56 12 Fusage AB C: +46-70-576 16 51 Kungstensgatan 38A F: +46-8-54 54 56 10 113 59 Stockholm[EMAIL PROTECTED] Sweden Gaukia 345 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Wanted to download PHP 4.1.1 RPM. What's the difference between i586 RPM and SRC.RPM? What sites provide non-FTP download for PHP4.1.1 RPM? Thanx ppl! _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: redirect
Make sure that you have no blank spaces before the ?php tag. It really must be the first line in the script. /Fredrik Etienne Colla [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi I 'm newbie with php and i have a small problem. I have a script that uploads 4 pictures But when that is done there has to be a redirect to an other page. but i keep getting the folowing error: Warning: Cannot add header information - headers already sent by (output started at /home/users/A000456/x.be/upload.php:1) in /home/users/A000456/x.be/upload.php on line 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: RPM Installation Did Not Install PHP Modules
Gabriel Richards wrote: I installed PHP/Apache/MySQL via the Red Hat installation process (7.2), but Apache isn't processing PHP files, they show up as plain text in the browser. I checked with the FAQ and related documentation which said to ensure that the AddModule and LoadModule directives where there and not commented out. They are there, although they are within IfDefine HAVE_PHP tags. When I followed the path the modules are supposed to be in (modules/mod_php.so for example), I discovered there were no php modules in /etc/httpd/modules, nor any other place on my system (after a find...). Try rpm -qa |grep php in the commandline. You should see at least php there, but you probably want to find php-mysql, php-pgsql etc also. If you get no output, the php is not installed. Insert the cd, goto the RPMS directory and do rpm -Uvh php* and restart apache. /Fredrik -- -- Fredrik Wahlberg Tel: 08-54 54 56 12 Fusage Fax: 08-54 54 56 10 Kungstensgatan 38a Mobil: 070-576 16 51 113 59 STOCKHOLMhttp://www.fusage.com --- [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Performance question
Hi! I have a page that uses server-side includes to display different features. Something like this: html !--#include virtual=feature1.php-- (a few db calls) !--#include virtual=feature2.cgi-- (perl-script with db calls) !--#include virtual=feature3.php-- (even more db calls) /html If everything is embedded in a php-page I assume that the parser would start only once, and that the db-connections would be open until the whole page closes? If the assumption above is correct, does the same apply to a .shtml-page? Or does the parser execute eache php-script one at the time, each time invoking the parser? Somehow I'm afraid I have to rewrite my perl code to php and put everything on one page, but I would sure like to hear a few arguments on how to plan for performance. /Fredrik -- -- Fredrik Wahlberg Tel: 08-54 54 56 12 Fusage Fax: 08-54 54 56 10 Kungstensgatan 38a Mobil: 070-576 16 51 113 59 STOCKHOLMhttp://www.fusage.com --- [EMAIL PROTECTED] --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
SV: [PHP] if... then... else with HTML
I hope I understood your question right. You can do like this ?php if () { ? bhtml text/b ?php else { ? bother html/b ?php } ? -Ursprungligt meddelande- Fran: Martin Thoma [mailto:[EMAIL PROTECTED]] Skickat: den 23 april 2001 14:41 Till: [EMAIL PROTECTED] Amne: [PHP] if... then... else with HTML Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of , which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Web Page/MySql
Read this (http://www.phpbuilder.com/columns/rod2221.php3) article over at phpbuilder which covers exactly that. /Fredrik Ursprungligt meddelande Mike [EMAIL PROTECTED] skrev 2001-03-13, kl. 16:52:00 angende mnet [PHP] Web Page/MySql: I have a Mysql Database on a web site.On very large record retrieval I want to split the recorset so there is "Page 1, Page 2"links at the bottom.This is the only part I dont have.Any Suggestions? Thank Mike P [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] RegExp help..
Try this: $ ereg("^([0-9]{2})[0-9]{2}([0-9]{2}).*", $var, $hits) if ($hits[1] == themonth $hits[2] == theyear) { do_the_stuff } What it does is that it puts the first two digitst into $hits[1], skips the two nextcoming digits and finally puts the next two numbers into $hits[2] /Fredrik Ursprungligt meddelande John Vanderbeck [EMAIL PROTECTED] skrev 2001-03-12, kl. 02:40:25 angende mnet [PHP] RegExp help..: I really wish I could figure these darn things out :) I have a task I need to do, and i'm certain I could do this easily with a regexp.. I have a file name in the format MMDDYY-*.txt...I need to parse it to determine if the month and year matches a specified month and year. Day is irrelevant Can any of your regexp wizards help me? Thanks! - John Vanderbeck - Admin, GameDesign -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] File type not set
I'm uploading a file to my server, and I check the mime-type and file size before saving it. For some reason I get the file size, but not the file type. $userfile_type returns nothing and $userfile_size returns the correct size. This works just fine on another server where I have the same script so the problem is not in the browser. I'm running RedHat 7.0 with PHP rpm php-4.0.4pl1-3 Bug, feature or my fault? /Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] LDAP Listing
This is a small test I wrote a couple of days ago that does just that. Hope it works for you. /Fredrik ?php $ldapserver = "orchide.habeebee.com"; $basedn = "dc=habeebee, dc=com"; $dir =ldap_connect($ldapserver);// Connect to server if ($dir) { ldap_bind($dir); // Bind to the server $result = ldap_search($dir, $basedn, "sn=*"); // query connection, set the base and look for any sn $info = ldap_get_entries($dir, $result); // The results get sent to the $info object for ($i=0; $i$info["count"]; $i++) { // Count is a ldap feature that contains the length of the resultset echo $info[$i]["cn"][0];// choose any parameter you want see here } ldap_close($dir); } ? Ursprungligt meddelande Mike Tuller [EMAIL PROTECTED] skrev 2001-02-28, kl. 01:31:09 angende mnet [PHP] LDAP Listing: I want to create a list of everyone on the LDAP server, and none of the examples I have in my books seems to work. What functions should I use to connect to the server, and list users in the LDAP to create a phone book type list to print out? Could someone also give me some sort of example that I can look at? Mike Tuller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]