[PHP] about image gallery
You are right Daniel, working with no text file for the img file names represents less work to update the gallery but I'm working on this idea text file --- picture.jpg, description of the picture so a txt file is needed I would be glad to now when your page numbers for faster navigation image gallery is ready saludos Aniceto Lopez www.lamundial.net download our free music -- 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] fired!
dot.com crissis reaches me!! I've been fired, anyway I'll be in that nice PHP list (any job for me?) Aniceto Lopez www.laMundial.net download our free music -- 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] image gallery
some days ago someone, I can't remenber, asked how to do an image gallery so here is mine available for downloading: www.lamundial.net/bol/img_gallery.zip also posted in http://www.weberdev.com you can see it working at: www.lamundial.net fotos section when a thumb is clicked pops up a new window with the sice of the photo displayed. no database is required, names of the images are readed from a text file Configurable $data_file = photolist.txt; //name of the text file $thumbnail_dir = thumbs/; //folder containing the thumbs $num_rows = 2; $photos_per_row = 2; Credits: Original code from an article written by: Todd Kennedy [EMAIL PROTECTED] Article: http://hotwired.lycos.com/webmonkey/01/27/index3a.html?tw=programming Put all toghether in working files and fixing some little errors Aniceto Lopez [EMAIL PROTECTED] Ani Lopez www.lamundial.net download and spread our free music -- 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] image gallery
some days ago someone, I can't remenber, asked how to do an image gallery so here is mine available for downloading: www.lamundial.net/bol/img_gallery.zip also posted in http://www.weberdev.com you can see it working at: www.lamundial.net fotos section when a thumb is clicked pops up a new window with the sice of the photo displayed. no database is required, names of the images are readed from a text file Configurable $data_file = photolist.txt; //name of the text file $thumbnail_dir = thumbs/; //folder containing the thumbs $num_rows = 2; $photos_per_row = 2; Credits: Original code from an article written by: Todd Kennedy [EMAIL PROTECTED] Article: http://hotwired.lycos.com/webmonkey/01/27/index3a.html?tw=programming Put all toghether in working files and fixing some little errors Aniceto Lopez [EMAIL PROTECTED] Ani Lopez www.lamundial.net download and spread our free music
[PHP] about image gallery
thanks Daniel yours doen't need a text file with the image file names but this is usefull when you want to establish the order thumbs are shown little trick: both, big imgs and thumbs should be same file type but I use jpg for big ones and gif for thumbs. after procesing them (thumbs) in image software I change the .gif extension to .jpg and it works! Gif is better for little images using a few colors so little image size Aniceto Lopez www.lamundial.net download and spread our free music -- 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] Getting IP address
this is working for me $REMOTE_ADDR Aniceto Lopez www.laMundial.net download and spread our music -- 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] Thumbnail gallery
Daniel, if you like mine http://www.lamundial.net/pics/view.php tell me and I'll post the necesary php files Ani Lopez www.lamundial.net download and spread our music -- 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] Have y'all seen this?
they are right! PHP is a drug, once you begin to use it impossible to leave he habit! no other web programing languaje gives you more for free so let me abuse of it Ani Lopez www.lamundial.net download and spread our music -- 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] limiting rows and pages like google
paging results: this is tha idea page 1 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 0, 20 page 2 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 21, 20 page 3 - SELECT * FROM yourtable ORDER BY id DESC LIMIT 41, 20 ... so $next = 0 //starting SELECT * FROM yourtable ORDER BY id DESC LIMIT $next, 20 $next = $next + 20 //next pages till $next max(id) is this helping you? Ani Lopez www.lamundial.net download and spread our music -- 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] Session variables - Users online
put this code in the home web page ?php $timeoutsecs = 900; $timestamp = time(); $caduc = $timestamp+$timeoutsecs; $conexion = @mysql_connect(localhost, user, password) or die (No db CONEXION); mysql_select_db (yourdb, $conexion); mysql_query(INSERT INTO uonline SET . caduc='$caduc', . ip='$REMOTE_ADDR', . file='$PHP_SELF'); mysql_query(DELETE FROM uonline WHERE caduc'$timestamp'); $result = mysql_query(SELECT DISTINCT ip FROM uonline); $conn = mysql_num_rows($result); $dbdecnx = mysql_close ($conexion); if ($conn==1) { echospan class=\textPequ\$conn user online/span; } else { echospan class=\textPequ\$conn users online/span; } ? and create this table in you db to hold the necesary values # # Table structure for table 'uonline' # CREATE TABLE `uonline` ( `caduc` int(15) NOT NULL default '0', `ip` varchar(40) NOT NULL default '', `file` varchar(100) NOT NULL default '', PRIMARY KEY (`caduc`), KEY `ip` (`ip`), KEY `file` (`file`) ) TYPE=MyISAM; this is working good in my site Aniceto Lopez http://www.lamundial.net download and spread our music -- 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] Sending Mail via SMTP
I would like to send mail via SMPT and I guess some socket scripting should be done. any example? any help? thanks Ani Lopez http://www.lamundial.net -- 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] session_questions(end)
thanks everybody helping to clear my mind with sessions affair. many people asking about this so two possible problems: coders don't read manuals carefully or the info there is not so clear. [ trying to help a little bit newbies like me, as soon as I finish this navigation access for logged users work I'll post the php files ] aniceto lopez http://www.lamundial.net visit us, download and spread our music -- 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] session_start() problem
lines in the acceso.php file: 27 session_name(primera); 28 session_start(); 29 session_register(sesionvar); 30 $HTTP_SESSION_VARS[sesionvar] = fulanito; what I get in the browser: Warning: Cannot send session cookie - headers already sent by (output started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on line 28 Warning: Cannot send session cache limiter - headers already sent (output started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on line 28 some help please thanks in advance -- 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] thanks all sesion_start problem
Ok. Richard was right, the php code was placed in the middle of the html. I place it at the beguining oh the file (before html) and it works. Thanks Thanks also Daniel for your advice: first use session_start() and than session_name Did you make sure everything below is BEFORE the html tag? Also you can just set the variable $sesionvar like this: $sesionvar = fulanito; instead of $HTTP_SESSION_VARS[sesionvar] = fulanito; -- 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] session_start() part II
ok, let's have this in the right place in a file named startsesion.php i.e. session_start(); session_name(mysesion); session_register(myvar); $myvar = whatever; a SID is generated autmaticaly I've been trying to echo the values of the var defined and the SID generated in another php file ?php echo ($sesionvar); ? not working ?php echo ($HTTP_SESSION_VARS[myvar] ); ? not working ?php echo ($GLOBALS[$sesionvar]); ? not working ?php echo session_name(); ? not working ?php echo ($PHPSESSID); ? not working how can I get this values? thanks, gracias -- 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] session_start() part III
I guess Renze, I have to use session_start() in the file where I want to output data from the session All this questions about session are generated because I want to control the acces to some of the web pages in a site so only accesible to registered visitors. Ok name user and password are stored in a db (mysql), after password verification sesion is started, temporal storage of some values (PHPSESSID i.e.) and I guess in the begining of every restricted page this temporal info shoul be checked to make the page visible or not but if the visitor closes the browser the sesion is over, session_destroy is this necessary? thanks remind me to invite you to have a beer next time you come to barcelona -- 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] session_questions() part IV
Renze asked: how would you detect whether or not someone has closed his browser? (session is over then) Do I realy need to know this to let or not a registered user navigate some restricted web pages? Aniceto Lopez -- 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] Euro asccii value
Ascii Euro value: Dec# 128 Hex# 80 if its on the font
[PHP] hosting
Nice one: http://100megswebhosting.com - 100 MB of disk space - 3 GB of bandwidth - 10 subdomains - 10 FTP accounts - control panel - cgi-bin - built-in CGI scripts - PHP 4 - FrontPage extensions - mySQL - 10 POP e-mail accounts - unlimited e-mail forwarding - unlimited autoresponders - SSL capable - shopping cart - Real Audio/Video - telnet/SSH - password protected directories - raw access logs - full website statistics - search engine submission $10 per month, $55 for 6 months, $100 per year -- 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] hosting
Yes I use http://100megswebhosting.com to host the web sites of my customers, commerical purposes also and it works fine -- 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] a goog whatever you want editor
My opinion: UltraEdit https://www.ultraedit.com cheap, powerfull, totally configurable, ftp included, http://www.ultraedit.com/products/features.html free tag list (any code), word files, macros I use it for html, xml, xsl, wml, php, javascript... Ani Lopez http://www.lamundial.net visit us, download, spread our music
[PHP] Free Hosting Sites
some free host servers PHP + mySQL http://www.jumpworld.net/ http://hosting.datablocks.net/ http://www.coolfreehost.com/ http://www.nexen.net http://free.any.za.net Ani López http://www.lamundial.net Visit us, download our music -- 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] how to check if the required fields were filled in without the text in them?
Hola everybody; this is a simple form to send a mail via php, check if a field was filled in and prompt an error msg (if not) is easy but when the Submit button is presssed the text in the rest of the fields dessapear. How to avoid fields draining if one of them is no filled in? thanks Ani López html head titlemail send/title /head body bgcolor=#FF form name=emailer action=?php echo($PHP_SELF); ? method=post for: input size=26 name=forbr your name: input size=26 name=namebr your email: input size=26 name=mailbr tex:br textarea name=texto rows=8 cols=20/textareabr input type=submit name=submit value=enviar /form ?php $subjet = Welcome home [ www.lamundial.net ]; $headers = From: . $name . . $mail . ; $headers .= \nContent-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: PHP\n; if ($submit) { mail($for, $subjet, $text, $headers); } ? /body /html