Re: [PHP] Installing php and mysql on linux
I gonna suggest something very cool: Apache Friends. http://www.apachefriends.org/en/xampp-linux.html Its the best option on lamp packs. Regards. 2007/3/12, Jonathan Kahan <[EMAIL PROTECTED]>: http://www.die.net/doc/linux/man/man8/yum.8.html I checked the above page on 'Yum" and see no up2date command as you point out. However when I tried update in the format suggested in the link, it still gives a command not found error. "Brad Bonkoski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I think up2date is *not* up2date ;-) > Google for 'yum' and all its flags for usage... > > -B > > Jonathan Kahan wrote: >> Hi all, >> >> I am attempting to start the mysql rpm in Red hat as a first step prior >> to downloading and activating the php-mysql rpm. I was attempting to >> follow steps based on the link below. the php rpm is loaded and activated >> as I have been able to execute php scripts. When I attempt to follow >> those directions, I get the below errors. Does anyone know why I got the >> below errors or can help me through this process? >> >> Thanks >> >> http://kbase.redhat.com/faq/FAQ_39_3633.shtm >> >> >> [EMAIL PROTECTED] var]# rpm -q mysql-server >> mysql-server-4.1.20-1.FC4.1 >> [EMAIL PROTECTED] var]# rpm -q mysql >> mysql-4.1.20-1.FC4.1 >> [EMAIL PROTECTED] var]# up2date mysql >> bash: up2date: command not found >> [EMAIL PROTECTED] var]# up2date mysql-server >> bash: up2date: command not found >> [EMAIL PROTECTED] var]# ./up2date mysql >> bash: ./up2date: No such file or directory >> [EMAIL PROTECTED] var]# ./up2date mysql-server >> bash: ./up2date: No such file or directory >> [EMAIL PROTECTED] var]# ./up2date mysql >> bash: ./up2date: No such file or directory >> [EMAIL PROTECTED] var]# >> >> >> Kind Regards >> Jonathan Kahan >> >> >> Systems Developer >> Estrin Technologies, inc. >> 1375 Broadway, 3rd Floor, New York, NY, 10018 >> >> Email: [EMAIL PROTECTED] >> Web: http://www.estrintech.com - Original Message - From: "Brad Bonkoski" <[EMAIL PROTECTED]> To: "Jonathan Kahan" <[EMAIL PROTECTED]> Cc: Sent: Monday, March 12, 2007 4:30 PM Subject: Re: [PHP] Installing php and mysql on linux >I think up2date is *not* up2date ;-) > Google for 'yum' and all its flags for usage... > > -B > > Jonathan Kahan wrote: >> Hi all, >> >> I am attempting to start the mysql rpm in Red hat as a first step prior >> to downloading and activating the php-mysql rpm. I was attempting to >> follow steps based on the link below. the php rpm is loaded and activated >> as I have been able to execute php scripts. When I attempt to follow >> those directions, I get the below errors. Does anyone know why I got the >> below errors or can help me through this process? >> >> Thanks >> >> http://kbase.redhat.com/faq/FAQ_39_3633.shtm >> >> >> [EMAIL PROTECTED] var]# rpm -q mysql-server >> mysql-server-4.1.20-1.FC4.1 >> [EMAIL PROTECTED] var]# rpm -q mysql >> mysql-4.1.20-1.FC4.1 >> [EMAIL PROTECTED] var]# up2date mysql >> bash: up2date: command not found >> [EMAIL PROTECTED] var]# up2date mysql-server >> bash: up2date: command not found >> [EMAIL PROTECTED] var]# ./up2date mysql >> bash: ./up2date: No such file or directory >> [EMAIL PROTECTED] var]# ./up2date mysql-server >> bash: ./up2date: No such file or directory >> [EMAIL PROTECTED] var]# ./up2date mysql >> bash: ./up2date: No such file or directory >> [EMAIL PROTECTED] var]# >> >> >> Kind Regards >> Jonathan Kahan >> >> >> Systems Developer >> Estrin Technologies, inc. >> 1375 Broadway, 3rd Floor, New York, NY, 10018 >> >> Email: [EMAIL PROTECTED] >> Web: http://www.estrintech.com > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- bet0x - Barrahome http://www.barrahome.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] template engine/template class
http://www.eframework.org/index.php has one, better than Smarty :P Check docs http://www.eframework.org/doc/ http://www.eframework.org/template-syntax/ 2007/3/5, Ross <[EMAIL PROTECTED]>: I am looking for a template class that will take a basic 2 column template I have made and let the user -change the page title -add an header image - enter the main body text -save the file to a folder of their choice Is there already a class out there that does this or similar. Smarty is far too complex for this. It is not really an engine I am looking for but a good class where all the user does is fill in a form and the page is generated. Could do one myself but if there is already one out there why reinvent the wheel? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- bet0x - Barrahome http://www.barrahome.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running AMP from CD
www.apachefriends.org have a "Lamp" on CD project. 2006/11/27, Ryan A <[EMAIL PROTECTED]>: Hello, A little while back there was a discussion on running Apache,MySql and PHP from a CD... I can't seem to find that thread and i cant seem to find the links i had from that thread, so Can anybody suggest/recommend a way to run our project from CD? Our project is made in PHP 4 with a MySql backend... so far its been running on Apache.. I have found some commercial alternatives via google(PortableWebAp ,dwebpro,microweb to name a few) but if I remember correctly the solution in the old thread was a freeware. The commercial solutions offer a lot of bells and whistles and inter platform compatability but all we need is for AMP to run on CD and on Windows 2000 onwards. Any help appreciated, even if its a one line link, thanks in advance! -Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) - Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. -- bet0x - Barrahome http://www.barrahome.com.ar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Copy of image -> smaller
For that i recomend detect the MIME, my 2 cents: function image_get_info($image) { $details = array(); $data = @getimagesize($image); if (is_array($data)){ $types = array( '1' => 'GIF', '2' => 'JPEG', '3' => 'PNG', '4' => 'SWF', '5' => 'PSD', '6' => 'BMP', '7' => 'TIFF', '8' => 'TIFF', '9' => 'JPC', '10' => 'JP2', '11' => 'JPX', '12' => 'JB2', '13' => 'SWC', '14' => 'IFF', '15' => 'WBMP', '16' => 'XBM' ); $type = array_key_exists($data[2], $types) ? $types[$data[2]] : 'Tipo de Imagen No valida o Desconocida'; $details = array('width' => $data[0], 'height'=> $data[1], 'type' => $type, 'mime_type' => $data['mime'] ); } return $details; } i cut&paste :P 2006/5/15, Chris <[EMAIL PROTECTED]>: Gustav Wiberg wrote: > Hi there! > > When I upload a picture from a form, then I want to create a copy with a > smaller image. > For example: I upload a picture with dimensions 200x150 name 4.jpg. I > also want a copy of this image but with the dimensions 100x75 pixels. > I've tried this below, but I'm missing something I think... :-) > > I'm using PHP 4.x (don't know exactly the vers.nr, but I can search for > it if it is of importance) First of all *run* to this thread and add some security checks to your image uploading: http://marc.theaimsgroup.com/?l=php-general&m=114755779206436&w=2 Secondly, what does or doesn't happen with your code? It looks fine at first glance but do you get an error? What do you expect it to do and what does it actually do? -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- bet0x -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Searching for Duplicated records..
Hello all, how i search duplicates records on a TXT file ? Thanks in Advance. -- bet0x -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with SSI, Apache & PHP!
I got only a test.shtml with this: and a test.php with: PHP 4.4.2 , Apache 1.3.34 , nothing weird, Compiled Options: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-xmlrpc' '--with-zlib' here is my phpinfo: http://ns1.tutorhost.com/test.php Thanks in advance for the help. 2006/3/16, Chris <[EMAIL PROTECTED]>: > Alberto Ferrer wrote: > > i get segmentation fault with apache 1.3.34 , like this bug: > > http://bugs.php.net/bug.php?id=35029 , only change the apache version. > > > > The error is: > > > > [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal > > Segmentation fault (11) > > [Thu Mar 16 03:33:08 2006] [notice] child pid 2120 exit signal > > Segmentation fault (11) > > We can't do much about segfaults. Post more information on that bug > report and help the php guys work out what's going on. > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > -- bet0x -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems with SSI, Apache & PHP!
i get segmentation fault with apache 1.3.34 , like this bug: http://bugs.php.net/bug.php?id=35029 , only change the apache version. The error is: [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice] child pid 2120 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice] child pid 2112 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice] child pid 958 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice] child pid 957 exit signal Segmentation fault (11) [Thu Mar 16 03:33:09 2006] [notice] child pid 2127 exit signal Segmentation fault (11) [Thu Mar 16 03:33:09 2006] [notice] child pid 2126 exit signal Segmentation fault (11) [Thu Mar 16 03:33:10 2006] [notice] child pid 2128 exit signal Segmentation fault (11) Yy SHTML have a include to a script in PHP, with a connection to mySQL , im using php 4.4.2 Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a Thank -- bet0x -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] disable_functions problems
Hello, im testing the php_admin_value disable_functions froma Vhost in my Apache, and not works, is are set from Master (php.ini) works, but set via Apache vhost not works, any are using from apache php_admin_value disable_functions bla,bla,bla ? -- -- Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org JID: [EMAIL PROTECTED] -- SNMP = Security? Not My Problem! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Refreshing
use pconnect? -- -- Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org -- Syntax Error in KITCHEN.H: COFFEE not found. "Stephen" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] Hello, I have a chat script. I want it to refresh the chat display area whenever there is a new message posted, but not every 10 seconds or so. How could I get the script to refresh only when there is a new entry into the database table? Also, this may not be PHP but...does anyone know how to stop the annoying click on Internet Explorer when something refreshes? With bubblegum in my shoe, Stephen Craton Senior Executive Web Developer Mophus.com, Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exec() and passthru()
not is more easy use system ? $output = system('/path/to/a.out'); -- -- Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org -- Syntax Error in KITCHEN.H: COFFEE not found. "Jason Wong" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > On Friday 20 June 2003 01:56, Mignon Hunter wrote: > > > I'm only subscribed to digest and found your reply in archives and > > couldnt figure out how to reply :{ > > > > Anyway, right now I'm just trying to get something to work. The c exe > > is as follows: > > ** > > #include > > #define NAME "Mignon" > > int main(void) > > { > > > > int q; > > > > q = 5; > > printf("Hello, %s,%d \n", NAME,q); > > return 0; > > } > > * > > > > I'm trying to return the "Hello, Mignon, 5" which is what's outputted on > > the command line. > > In that case what you want is shell_exec(): > > $output = shell_exec('/path/to/a.out'); // note the whole command line has > // to be enclosed in '' or "". > echo $output; > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > -- > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > -- > /* > Taxes are going up so fast, the government is likely to price itself > out of the market. > */ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php editor?
im use PHPcoder too, and the best :) http://devphp.sourceforge.net/ , and in Linux Zend Studio :) -- -- Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org -- Syntax Error in KITCHEN.H: COFFEE not found. "Chris Sherwood" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > I use PHPCoder Pro and it works great... hook it into your php and apache > engines and you can run and debug while coding > > > - Original Message - > From: "Noel Wade" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 16, 2003 9:57 AM > Subject: Re: [PHP] Re: php editor? > > > > My favorite little gem is a shareware program called Code-Genie > > (www.code-genie.com). Its cheap, fast, a "slim" app, provides tons of > > useful little features, and has TOTALLY user-configurable text-coloring. > > You can specify a particular coloring scheme for each file extension, so > it > > automatically picks the scheme for the type of programming you're doing - > > very handy! Comes with schemes for all of the most common / simple > > programming languages, plus plenty of user-made files for download, too! > > > > It doesn't have any real debugging features, nor can it do fancy things > like > > track your custom object-functions and color them or present their > > arguments - but for a quick, simple, helpful tool - its just perfect! > > > > Take care, > > > > --Noel > > > > > > > > -- > > 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
[PHP] Re: problem with pop3 check
My english is bad, but see the code: $mbox = imap_open ("{localhost/pop3:110}INBOX", "user_id", "password"); The only way I could open a IMAP or POP3 conection into my server is, I hope it helps you$MAILSERVER="{mail.midominio.cl:110/pop3/notls}"; //Para POP3 $MAILSERVER="{mail.midomino.cl:143/imap/notls}"; //Para IMAP$mbox = @imap_open ($MAILSERVER,$user,$pass) or die ("No abrio"); - Other Complete Example For Imap -- $mbox = imap_open ("{localhost:143}", "username", "password"); echo "Mailboxes\n"; $folders = imap_listmailbox ($mbox, "{your.imap.host:143}", "*"); if ($folders == false) echo "Call failed\n"; else while (list ($key, $val) = each ($folders)) echo $val . "\n"; echo "Headers in INBOX\n"; $headers = imap_headers ($mbox); if ($headers == false) echo "Call failed\n"; else while (list ($key, $val) = each ($headers)) echo $val . "n"; imap_close ($mbox); And you can look the manual, but this code is from the manual, have a loot of examples ;) --Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org--Syntax Error in KITCHEN.H: COFFEE not found. "Joe111" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hi > I have been trying to get to know the imap functions for checking pop3 email > account with php. i have had absolutely no luck. just cant get the script to > connect to the server. > here is a sample: > > $mbox = imap_open ("{mail.hot.ee:110}", "pop3testing", "testing"); > > if(!$mbox){echo"offline";} > else{echo "online";} > > imap_close($mbox); > ?> > > it just loads and loads doesnt even give an error. could somebody please > look into it and see whats wrong. the account on hot.ee actually exists > (un:pop3testing, pw:testing). it is an estonian free e-mail service > provider. supports pop3 and the server should be mail.hot.ee, because > outlook checks e-mails from mail.hot.ee without any problems. > help please :) > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compile 4.3.2 Errors.
Im compiling the last vercion of PHP 4.3.2 and says this after finish of compile. The system is a Redhat 7.3, Apache 1.3.27. ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam': /root/php-4.3.2/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp' -- -- Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org -- Syntax Error in KITCHEN.H: COFFEE not found. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php