[PHP] Multiple Inheritance Emulation

2002-09-27 Thread Julio Nobrega
('A'); $a-insideA(); $b = parent::callClass('B'); $b-insideB(); } } $c = new C(); $c-insideC(); -- And it echo: I'm inside A! I'm inside B! -- Julio Nobrega http://gnet.inerciasensorial.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] ~off: Discovering what values start and finish x% of the records

2002-09-26 Thread Julio Nobrega
erratic values too. So I am open to any suggestions, since I've lost my afternoon on this problem. Any advice is appreciated, and sorry for my english (I am from Brazil). Many thanks, -- Julio Nobrega http://www.inerciasensorial.com.br [1] = Sorry if the intro was too long. [2

[PHP] Re: Cleanup script

2002-08-18 Thread Julio Nobrega
I just had a massive open house party... Is it possible to write a PHP script to collect all the bottles and cans, mop the floor, fumigate the carpet and make me lunch? PHP is all. You need. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Liam Mackenzie [EMAIL

[PHP] Re: Drop down reload

2002-08-16 Thread Julio Nobrega
http://www.zend.com/zend/tut/drop-down.php -- Julio Nobrega Me empurraram pra chegar lá mais rápido! http://www.inerciasensorial.com.br Christian Ista [EMAIL PROTECTED] wrote in message 000201c2451b$94fe4300$c000a8c0@p3portable">news:000201c2451b$94fe4300$c000a8c0@p3portable... Hello,

[PHP] Shared network server failing to include files

2002-08-14 Thread Julio Nobrega
the beggining: How can I server webpages from a networked Linux through the Windows 2000 that is connected to the Internet? Any help is sincerely appreciated. Thanks, -- Julio Nobrega -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Shared network server failing to include files

2002-08-14 Thread Julio Nobrega
the beggining: How can I server webpages from a networked Linux through the Windows 2000 that is connected to the Internet? Any help is sincerely appreciated. Thanks, -- Julio Nobrega -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shared network server failing to include files

2002-08-14 Thread Julio Nobrega
pages are served normally. The problem is when I use require() (and similar) functions. It can't find the files. I've edited php.ini and used .htaccess to specify the include_path() but no luck yet... Still researching! -- Julio Nobrega http://gnet.inerciasensorial.com.br -- PHP General

[PHP] Re: Random mirrors and download quota

2002-08-11 Thread Julio Nobrega
. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Andrew Conner [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I have a script (at bottom) that, upon loading, will randomly select a mirror or primary server (on average, the

Re: [PHP] Hacker?

2002-08-11 Thread Julio Nobrega
What about all the users of his web site that are requesting his php scrpts that are compiling through my server? Contact him and ask to stop. If he doesn't, block. It will be him that will lose customers, not you. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Rps

Re: [PHP] Thumb nail of a web page

2002-08-10 Thread Julio Nobrega
. The problem is getting to know if (and how much) you need to scroll down to see the rest of the content... -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Jason Wong [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Saturday 10 Aug

[PHP] Re: weird urls

2002-08-10 Thread Julio Nobrega
Well, it's a GET parameter, not a server file. Probably the file source.php has a command to include the file /index.php. if (isset($_GET['url'])) { // Security check, prepend filesystem or webserver root and include($url); } -- Julio Nobrega Pode acessar: http

[PHP] Re: is this possible ...

2002-08-10 Thread Julio Nobrega
Yes, it's possible. You concatenate the form variables with the html, transform it to a file and attach to the email. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br M.E. Suliman [EMAIL PROTECTED] escreveu na mensagem 000701c24097$044a1b00$9fb71fc4@b1s0n2">news:0007

RE: [PHP] JSP vs. PHP?

2002-08-09 Thread Julio Nobrega
, yearly. But s, the people at the Evangelism mailing list are expecting details already ;-) -- Julio Nobrega http://gnet.inerciasensorial.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP4 and MySql - Search Results Question?

2002-08-02 Thread Julio Nobrega
You could select everything, count the results, and just show 15 results. I am not sure that a COUNT() with LIMIT will perform the desired effect. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Jason Caldwell [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED

[PHP] Re: decrypting values in MYSQL

2002-08-01 Thread Julio Nobrega
You can't view it anymore. You can compare a string with PASSWORD('string') to see if they match. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Michael P. Carel [EMAIL PROTECTED] escreveu na mensagem 001101c239c1$541db6a0$[EMAIL PROTECTED]">news:001101c239c1$

[PHP] Re: PHP implementation of something like Apache's mod_speling?

2002-07-31 Thread Julio Nobrega
How about a file wilh all the directories and you compare its contents using similar_text() or soundex/metaphone() with the url/directory that failed? Shouldn't be too hard to implement. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Tim Luoma [EMAIL PROTECTED] escreveu

[PHP] Re: Quotes getting screwed up in form fields

2002-07-27 Thread Julio Nobrega
I would guess your value doesn't have double quotes around. input type=text value=?php echo $var; ? size=20 / Because what might happen is this: input type=text value=New York \City\ size=20 Also, take a look at stripslashes() to remove the \ before the . -- Julio Nobrega Pode acessar

[PHP] Re: mysql question

2002-07-26 Thread Julio Nobrega
Christian Calloway em Friday 26 July 2002 17:30 foi agraciado com uma resposta por: Sorry this may be a little offtopic, but I am currently moving a site I was developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading somewhere that there is a utility that will convert/transfer

[PHP] Re: Speeding up PHP or MySQL

2002-07-24 Thread Julio Nobrega
the next query comes, compare if one already exists on the database. If so, only grab the rawdata, ie, the previous results. And read Mysql's manual section about optimization if you haven't done so already, since it has important tips. -- Julio Nobrega Pode acessar: http

[PHP] Re: date

2002-07-24 Thread Julio Nobrega
(CURRENT_DATE), 'Today', IF (date_field = DATE_SUB(date_field, INTERVAL 1 DAYS), 'Yesterday', date_field)) FROM table If the date isn't today or yesterday, you will get the date_field contents. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br Alexander Ross [EMAIL PROTECTED] escreveu

[PHP] Re: multithreading

2002-05-15 Thread Julio Nobrega Trabalhando
This might help you: http://www.faqts.com/knowledge_base/view.phtml/aid/1982/fid/58 I've also seen before an actual php script that interacts with a C program to do the same. Google for it and it will be esay to find. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects

[PHP] Re: Very Large MySQL Query String

2002-05-06 Thread Julio Nobrega Trabalhando
Instead of uploading to Mysql, why don't you store the file at a directory and on Mysql only the path to it? Retrieving files from the hard drive is much faster than doing the same on Mysql, and also access to manipulation (insert, update, delete, etc...) -- Julio Nobrega. Um dia eu chego

[PHP] Re: Alternate To Making Form Variables Global (Clerified)

2002-05-06 Thread Julio Nobrega Trabalhando
']; But, if you don't want to convert your script (and I object btw, you should ;-), you can modify a line at php.ini so variables are *globally registered* again. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http

[PHP] Re: php beginner

2002-05-04 Thread Julio Nobrega
echo My Name is . $_GET['myName'] . \n; Specify where myName is from! It's coming from GET method, in other (simplistic) words, from the url. -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br Paras Mukadam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">new

[PHP] Replacing non exact strings

2002-05-03 Thread Julio Nobrega Trabalhando
; $original = Joe Cougar Doe; $final = bJoe/b Cougar bDoe/b; Any ideas about how can I achieve this result? I am currently using eregi_replace($searched, b$searched/b, $original), so that's why it only accepts the whole string. Thanks a lot, Julio Nobrega. -- PHP General Mailing List (http

Re: [PHP] Replacing non exact strings

2002-05-03 Thread Julio Nobrega Trabalhando
Thanks Brian, it's working! -- Julio Nobrega. Brian Paulson [EMAIL PROTECTED] wrote in message 005101c1f2af$fa59eb00$89010a0a@bpaulson">news:005101c1f2af$fa59eb00$89010a0a@bpaulson... Julio, Try this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Re: why is better?

2002-05-02 Thread Julio Nobrega Trabalhando
by using it (specially maintance and portability) As usual, use the best suited hammer :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Steve Bradwell [EMAIL

[PHP] Re: avoid multiple submissions

2002-05-02 Thread Julio Nobrega Trabalhando
Make a unique form key for every form. When someone submits, store this unique key. Don't insert another form is there's a key already there :-) Make sure it's unique, like of current time in miliseconds plus random characters, I don't know. -- Julio Nobrega. Um dia eu chego lá: http

[PHP] Re: why is better?

2002-05-01 Thread Julio Nobrega Trabalhando
Faster, and better interaction with the engine that runs php (and therefore other parts of the system). -- Julio Nobrega. Franky [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Why is better to write module than class? ok is compiled code so i

[PHP] Re: Kinda HTML and PHP question....

2002-05-01 Thread Julio Nobrega Trabalhando
!'; } -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Mantas Kriauciunas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: PHP 4.2.0 + Apache 2.0.35 (W2KSP2)

2002-04-30 Thread Julio Nobrega Trabalhando
Load the experimental apache2filter.dll instead. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Kirk Babb [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: build array dinamicaly

2002-04-29 Thread Julio Nobrega Trabalhando
] = $clients_address; $i++; } Alguma coisa do genero :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Rodrigo Peres [EMAIL PROTECTED] wrote in message

[PHP] Re: In Addition to [PHP] PHP Security

2002-04-29 Thread Julio Nobrega Trabalhando
27bf1bb8b919e7c35217f76e45f1e86a) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Jan Peuker [EMAIL PROTECTED] wrote in message 00f101c1efad$ef688670$7164a8c0@toshiba"

[PHP] Re: web application development question

2002-04-26 Thread Julio Nobrega Trabalhando
someones inspired by your app, such as especific to a client, to a part of the webiste, to users, merchants (or vendors), etc -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid

[PHP] Re: Redirecting

2002-04-26 Thread Julio Nobrega
Send head()ers before any html output (including spaces or newlines before ?php) -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br Liam Mackenzie [EMAIL PROTECTED] wrote in message 006801c1ed9e$1fddf4a0$0400a8c0@enigma">news:006801c1ed9e$1fddf4a0$0400a8c0@enigma...

[PHP] GD: º becomes $

2002-04-25 Thread Julio Nobrega Trabalhando
found any relevant information about characters being replaced in GD... Any help is welcome, thanks -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Destroy a session var passed as an argument

2002-04-24 Thread Julio Nobrega Trabalhando
($_SESSION)? Thanks for any tips, -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroy a session var passed as an argument

2002-04-24 Thread Julio Nobrega Trabalhando
with in function definition and call, and didn't work. I am tired :( -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: To store or not to store . . .

2002-04-24 Thread Julio Nobrega
Store a link to the file! Mainly because filesystems are designed to store, er.. files ;-) There's a note on Mysql's manual, under Optimizations, that recommends this. -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br Php List [EMAIL PROTECTED] wrote in message

[PHP] Re: How do i upgrade from PHP 4.1.2 to 4.2.0?

2002-04-23 Thread Julio Nobrega Trabalhando
Are you using Windows? That's the one I can give you a tip about :-) Stop the server, overwrite all php files with the new ones, pick up the new php4ts.dll and copy it to your Windows, Windows\System and Windows\System32. Restart the server :-) -- Julio Nobrega. Um dia eu chego lá: http

[PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread Julio Nobrega Trabalhando
session_id(); ?amp;type=?php echo $type; ? // At the last part of the url ACTION=network_option_transunion.php?type=?php echo $type; ?amp;PHPSESSID=?php echo session_id(); ? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http

[PHP] Re: Display large text fields in html

2002-04-23 Thread Julio Nobrega Trabalhando
these in between entries. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Jan Peuker [EMAIL PROTECTED] wrote in message 006c01c1eb07$28d79500$7ca990d4@toshiba

[PHP] Re: Backup of MySQL database

2002-04-22 Thread Julio Nobrega Trabalhando
Can anybody explain me how to do the backup? Mysql's manual? I want to make a script to do a backup of a MySQL DB and email me it. It is posible? Then you take the backup (aka Mysql's dump), and attach it to a mail(); -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net

Re: [PHP] Re: Backup of MySQL database

2002-04-22 Thread Julio Nobrega Trabalhando
without brief comments of what is usually expected in such enviroments :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Mike Fifield [EMAIL PROTECTED] wrote

[PHP] Re: PHP editor for windows

2002-04-22 Thread Julio Nobrega Trabalhando
www.phpide.de It's called PHP Coder. Don't get the versions by Maguma (last time I used, it was buggy). Instead, go to older downloads and get the PHP Coder file named phpide-r2p3setup -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um

[PHP] Re: CMS -- central module handling

2002-04-20 Thread Julio Nobrega
'steal' good programming ideas :-D -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br Lauri Vain [EMAIL PROTECTED] wrote in message 000301c1e856$f357e5e0$1431a8c0@tharapita">news:000301c1e856$f357e5e0$1431a8c0@tharapita... Hello there, I'm seriously researching some

[PHP] Comments Display, with replies

2002-04-20 Thread Julio Nobrega
how to display the comments like this: - Comment 1 - Comment 2 - Comment 3 Is greatly appreciated. I am thinking about storing all comments in an array and construct the layout from there. But still, I don't know if it's the best choice in performance terms. Thanks, -- Julio Nobrega. Tô

[PHP] Re: official statement about PHP file extensions?

2002-04-19 Thread Julio Nobrega Trabalhando
source developer, if you are, I would go with the most used, .php. Even if you are not.. :-) A client or boss can always change webhosting services and you gotta be prepared ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http

[PHP] Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
. If there's a way to keep using PEAR to handle other errors, I would be very glad if someone could point me to any tutorial or documentation about how to do so, Thanks, -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
of time, you know :-D If I can't find this class, I will make one and submit it to your website, okay? ;-) -- Julio Nobrega. Why do you want to use a bloated 800 lines error handling class when PHP already has built-in functions to do exactly what you want? http://www.php.net/manual/en

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
that I think that would be useful on a such class... ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: function returning true or errors

2002-04-18 Thread Julio Nobrega Trabalhando
['error'] = 'Error!';. Then you could check for false or true with your if (custom_function()) and echo/unset the $_SESSION['error'] part. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br

[PHP] Re: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
(), with a few twists. Why using a bloated error handling class that what you want without requiring 800 lines of code that PEAR error handler does? I didn't know and I kind knew it, that's why I asked for tips ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca

[PHP] Re: multiple select list

2002-04-18 Thread Julio Nobrega Trabalhando
http://www.zend.com/zend/tut/drop-down.php -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: equivalent of qw?

2002-04-18 Thread Julio Nobrega Trabalhando
$str = 'a b c foo bar'; $array = explode(' ', $str); -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Screen Scraping using PHP

2002-04-17 Thread Julio Nobrega Trabalhando
I read this post a few days ago and didn't know what is Screen Scrap. I thought someone would know and would reply to you. Well, a long time has passed and none replied. So I make my question, what are you trying to accomplish in simpler terms? :-) -- Julio Nobrega. Um dia eu chego lá

[PHP] Re: Sessions / Serialized Data

2002-04-17 Thread Julio Nobrega Trabalhando
That would be easier. fopen the session file and store the information on a database. Later you just fwrite the contents to a new file. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br

[PHP] Re: Storing images in MySql

2002-04-16 Thread Julio Nobrega
contents. So it it's much easier to get a fast system if you are using files. I guess Mysql developers are a good reference ;-) -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br Mike Fifield [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

[PHP] Re: phpMyAdmin protection

2002-04-15 Thread Julio Nobrega Trabalhando
phpmy.apache, where phpmy is a user whose password is only known to you, and apache is the group under which Apache runs. You should use PHP safe mode, to protect from other users that try to include your config.inc.php3 in their scripts. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net

[PHP] Re: placing data outside the server root

2002-04-15 Thread Julio Nobrega Trabalhando
Yes, if the user you are, and are trying to access the dir/files, also have access to them. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Andy [EMAIL

[PHP] Re: Writing Cross DB application

2002-04-15 Thread Julio Nobrega Trabalhando
Pear's Db class, and a few other things here and there (nice things, btw ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Arcadius A. [EMAIL PROTECTED] wrote

[PHP] Re: PHP Shopping Engine Recommendation

2002-04-15 Thread Julio Nobrega Trabalhando
http://www.oscommerce.com/ -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Robert Collins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">new

[PHP] Re: meta tags from mysql

2002-04-15 Thread Julio Nobrega Trabalhando
Mysql table with a meta column and a url column: $url = $PHP_SELF; $sql = SELECT meta FROM table WHERE url = '$url'; Just select from the database a meta column depending on the url people are. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que

Re: [PHP] Re: alphabetizing titles when first word begins with 'The','A',etc.

2002-04-12 Thread Julio Nobrega
... -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 12 Apr 2000, Steph wrote: Hi. Im using MySQL and as part of my tables I have titles (of stories). My que

[PHP] Re: HTML select form element

2002-04-12 Thread Julio Nobrega
select name=majors[] multiple size=6 option value=ArtArt/option option value=BiologyBiology/option option value=Business and EconomicsBusiness and Economics/option etc. etc. /select Note the [] after majors. Now majors is an array with the selected values. -- Julio Nobrega. Tô

[PHP] Re: Sessions and Opera

2002-04-10 Thread Julio Nobrega Trabalhando
Cookies disabled? Or cache? Have you tried a 'fresh' Opera install or a newer version? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Steve Fitzgerald

[PHP] Re: skipping a WHILE loop in mysql_fetch_*()

2002-04-09 Thread Julio Nobrega Trabalhando
= SELECT id, city FROM table WHERE name = '$name'; $res = mysql_query($sql) or exit (mysql_error()); list ($id_user, $city_user) = mysql_fetch_array($res); Vars inside list() can have any name you wish, just remember to put the same number as the columns in your sql query. -- Julio Nobrega

[PHP] Re: getting the 'client' date and time for use in PHP scripts ??

2002-04-08 Thread Julio Nobrega Trabalhando
Still you can use Javascript. get it and reload the page appending the info on the url. Or write to a file and open with php. Or you could get what country the user is and calculate the time zones. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei

[PHP] Re: Making sure a post request came from your site

2002-04-05 Thread Julio Nobrega Trabalhando
page. The thing is to find out whetever you can check that should be fixed between page transitions or things that you can invent. Not 100%, but the more, the best. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http

[PHP] Re: help condensing regular expressions

2002-04-05 Thread Julio Nobrega Trabalhando
How about: $site_root = '/www/user/htdocs/'; img src=?php echo $site_root; ?images/logo.png / Instead of going relative, go from the root. Or you could put $site_root as your url: $site_root = 'http://www.your_site.com/'; -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net

[PHP] Emulation: $var = print_r($array)

2002-04-04 Thread Julio Nobrega Trabalhando
are shown like if I really did a print_r();? Any help is great! :-) Thanks, -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Current URL, Last URL, error handling

2002-04-04 Thread Julio Nobrega Trabalhando
$REQUEST_URI? If it's not the full you can complement with $HTTP_HOST or similar. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Ben Edwards [EMAIL

Re: [PHP] Current URL, Last URL, error handling

2002-04-04 Thread Julio Nobrega Trabalhando
Okay, just phpinfo(); and use the variables. You can see whetever you will need there for url script construction. If you need, setup two pages with phpinfo() and a link between them so you can check for Referers (the Last Url you need) -- Julio Nobrega. Um dia eu chego lá: http

[PHP] Re: Exit();

2002-04-04 Thread Julio Nobrega Trabalhando
return; stops a function execution. Function One() { If (!$var) { return; } } -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Mauricio Cuenca

[PHP] Re: what should be my wishlist?

2002-04-02 Thread Julio Nobrega Trabalhando
Curl, gd, zlib, sockets, pdf... pear is fine but you don't need your isp to install, can have on your own directory. Humm... if possible, no safemode() enabled :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http

Re: [PHP] Re: Has anyone looked at phpinfo today?

2002-04-01 Thread Julio Nobrega
Also the last question from this page: http://www.php.net/license/ If what the guy is holding in his mouth is really this... -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp

[PHP] Loop non-fixed sized array

2002-03-27 Thread Julio Nobrega Trabalhando
a good job trying to explain what I am trying to do :-) Many thanks for any help, sincerely! -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Followup: Loop non-fixed sized array

2002-03-27 Thread Julio Nobrega Trabalhando
this: function MakePowers ($area, $powers) { foreach ($powers as $value) { $_SESSION[$area] = $value; } } But this gives me ILLEGAL OFFSET error on $_SESISON[$area]; Any help? Again? :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que

[PHP] Re: Question on eval()

2002-03-27 Thread Julio Nobrega Trabalhando
Maybe parse_str() will do the trick? I am using it in a close situation, I store: a=1b=1 And $a has value 1, $b has value 2. But I guess to work in your case you would need to stripslashes(); and str_replace(';', '', $string) before the parse_str(); -- Julio Nobrega. Um dia eu

[PHP] Re: escaping PHP's closing tags

2002-03-27 Thread Julio Nobrega Trabalhando
Haven't seen it either, but you could use: echo '' . '?'; So is separated from ?. Or ? from for the matter. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid

Re: [PHP] syntax

2002-03-27 Thread Julio Nobrega Trabalhando
Make it this way: Looping first. I will loop with while: $i = 0; $array = Array(); while (list($value) = mysql_fetch_array($result)) { $array[$i] = $value; $i++; } Arrays are easier :-) Each $i will be a key. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects

[PHP] Re: cookie problem. Not possible to set and read a cookie on the same page?

2002-03-26 Thread Julio Nobrega Trabalhando
Not possible, read the manual page about setcookie: www.php.net/setcookie There's a 'common pitfall' entry saying so. Don't know why. Maybe the cookie is only written to user's disk after the page is fully loaded, maybe for security reasons. -- Julio Nobrega. Um dia eu chego lá: http

Re: [PHP] OT - number of chars in querystring

2002-03-26 Thread Julio Nobrega Trabalhando
You could store the query somewhere, like in a database or file, give it an id, and store this id on a cookie. When the visitor returns, just grab the corresponding query using the cookie's id. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP General

Re: [PHP] Array in a Loop Question

2002-03-26 Thread Julio Nobrega Trabalhando
for ($i=0;$i$_POST[count];$i++) { echo $_POST['address' . $i] . 'br'; } Concanate array key 'address' with $i -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid

[PHP] Re: Merging Results of Queries

2002-03-26 Thread Julio Nobrega Trabalhando
... other option is to merge the individual sql queries using array_merge or similar functions. -- Julio Nobrega. Daniel Ferreira Castro [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello guys I have a database system that has many databases and many tables

[PHP] Re: Debugging tool

2002-03-25 Thread Julio Nobrega Trabalhando
http://www.google.com/search?q=php+debuggersourceid=operanum=0ie=utf-8oe =utf-8 Google good! ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Morten

[PHP] Re: Include Error on PHP 4.1.2

2002-03-25 Thread Julio Nobrega
ini_set ('include_path', '/new/path'). Change '/new/path' to (usually) your website root. Beleza? ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Alberto Wagner [EMAIL PROTECTED] wrote in message LI41WQTNUO1TTQHGHBGEGBBAWVWUB0E.3ca4d9dd@alberto

[PHP] Find if a html tag was closed

2002-03-25 Thread Julio Nobrega
solutions. Any help is appreciated, since I promised to myself to learn regex tonight :-) Thanks, -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: A Newbie needs help with his first Class

2002-03-22 Thread Julio Nobrega Trabalhando
$DOCUMENT_ROOT inside a function, scope problems. Pass it as an argument or global, or use $_SERVER['DOCUMENT_ROOT']; -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid

[PHP] Re: [newman] Whats wrong with this MySql Statement?

2002-03-22 Thread Julio Nobrega
mysql_query(UPDATE access SET accessVIEW = accessVIEW+1 WHERE accessIP = '$proxy_ip'); Singles quotes around $proxy_ip? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid

[PHP] Re: Tool to remove comments??

2002-03-22 Thread Julio Nobrega
There's an php obfuscator, http://pobs.mywalhalla.net/, and one of the options is to remove comments. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Oliver

[PHP] Re: testing for blank var

2002-03-21 Thread Julio Nobrega Trabalhando
if (ereg(^[[:blank:]]*$,$img_url)) { // $img_url is blank } -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Robert McPeak [EMAIL PROTECTED] wrote

[PHP] Re: checking if a link is still alive

2002-03-21 Thread Julio Nobrega Trabalhando
Open a connection? Maybe fopen, dns search, ip search, anything. I just don't know which way is faster (I think it's fopen). -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Function Not Accepting Variable Values From a Form

2002-03-21 Thread Julio Nobrega Trabalhando
Scope. Try to pass the values as the function reference (inside the ()), 'global' them, or use $_POST[''], from 4.1 and beyond. If you don't know what's a 'scope', there's an entry on the manual that can explain better. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects

[PHP] Re: Calling a javascript function?

2002-03-21 Thread Julio Nobrega
Maybe not the way you have imagined, but either you do it outside php (out of ?php ?) or you echo it. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 David

[PHP] Re: Calling a javascript function?

2002-03-21 Thread Julio Nobrega
Like I said: ?php if (something true) { echo 'somejavafunc();'; } ? ?php if (something true) { ? somejavafunc(); ?php } ? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: More fun with sessions

2002-03-21 Thread Julio Nobrega
From all users on your site? I guess only if you open the directory where the session files are stored. And loop through the files, opening each one and interpreting the contents. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um

[PHP] Re: combining headers with includes

2002-03-19 Thread Julio Nobrega Trabalhando
that doesn't output anything to the browser. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Ian Wayne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">new

[PHP] Re: strlen() gives a wrong count

2002-03-19 Thread Julio Nobrega Trabalhando
Once I say \n as strlen() = 2, if I remember correctly. Definitively not 1. Any whitespaces, tabs, newline, or similar inside? strlen() count them different. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http

[PHP] Re: [NEWMAN] make an if or else if statement from mysql.

2002-03-19 Thread Julio Nobrega Trabalhando
Select before to see if exists: if (db_num_rows() 0) { // Update view where ip = visitor_ip } else { // Normal insert } -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp

  1   2   3   >