[PHP] Re: Multiple Inheritance Emulation

2002-09-27 Thread Julio Nobrega
Julio Nobrega em Friday 27 September 2002 15:40 foi agraciado com uma resposta por: > I don't fully understand OOP, so my snippet might be wrong. But I need to > emulate Multiple Inheritance for a script, so I've made the following, > which I ask for opinions since I am not

[PHP] Multiple Inheritance Emulation

2002-09-27 Thread Julio Nobrega
{ $a = parent::callClass('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.c

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

2002-09-26 Thread Julio Nobrega
ot work as predicted, having 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 t

[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 M

[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$c000a8

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

2002-08-14 Thread Julio Nobrega
, now I am 100% it's a php configuration issue because HTML 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 research

[PHP] Shared network server failing to include files

2002-08-14 Thread Julio Nobrega
I have in mind since 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
I have in mind since 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] 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.co

[PHP] Re: Random mirrors and download quota

2002-08-11 Thread Julio Nobrega
ng the last one. -- 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 &g

[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$

[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); }

Re: [PHP] Thumb nail of a web page

2002-08-10 Thread Julio Nobrega
and toolbars using the gd module. 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]&q

RE: [PHP] JSP vs. PHP?

2002-08-09 Thread Julio Nobrega
ars, 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

[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 PROTECT

[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" &l

[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. Because what might happen is this: http://www.inerciasensorial.com.br "Monty" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If someone enters this into a field... > >New York "City"

[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/transfe

[PHP] Logging: Best archive method

2002-07-26 Thread Julio Nobrega
Are there any better alternatives? I must log this data for every requested page since it's for a bank application (ever had the Central Bank of your country asking for log files? ;-) Thanks, Julio Nobrega http://gnet.inerciasensorial.com.br -- PHP General Mailing List (http://w

[PHP] Re: date

2002-07-24 Thread Julio Nobrega
_field) = DAYOFMONTH(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.inerciasen

[PHP] Re: Speeding up PHP or MySQL

2002-07-24 Thread Julio Nobrega
fied. Then when 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. -- Ju

[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/pro

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

2002-05-06 Thread Julio Nobrega Trabalhando
This is not the global that is meant on the update. Not the global $var that you put inside your functions. That's scope, btw. You are making a variable available inside a different scope (the function), by making it "global". The global you are searching for is, like when you submit a for

[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

[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 PROT

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] Replacing non exact strings

2002-05-03 Thread Julio Nobrega Trabalhando
he middle. The result I am looking for is "Joe Cougar Doe". So: $searched = "Joe Doe"; $original = "Joe Cougar Doe"; $final = "Joe Cougar Doe"; Any ideas about how can I achieve this result? I am currently using eregi_replace($searched, "$searched&

[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 d

Re: [PHP] Re: why is better?

2002-05-02 Thread Julio Nobrega Trabalhando
t less headcaches 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=6641767428

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

2002-05-01 Thread Julio Nobrega Trabalhando
!ereg(' ', $text)) { echo 'Please use spaces!'; } -- 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" <[E

[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

[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 i

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

2002-04-29 Thread Julio Nobrega Trabalhando
uess the actual filename (it's something like 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 PROT

[PHP] Re: build array dinamicaly

2002-04-29 Thread Julio Nobrega Trabalhando
ent_name; $clients['address'][$i] = $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 "

[PHP] Re: Redirecting

2002-04-26 Thread Julio Nobrega
Send head()ers before any html output (including spaces or newlines before http://www.inerciasensorial.com.br "Liam Mackenzie" <[EMAIL PROTECTED]> wrote in message 006801c1ed9e$1fddf4a0$0400a8c0@enigma">news:006801c1ed9e$1fddf4a0$0400a8c0@enigma... > Hey all, > > Just curious as to what the best

[PHP] Re: web application development question

2002-04-26 Thread Julio Nobrega Trabalhando
and there always 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/wishlist

[PHP] GD: º becomes $

2002-04-25 Thread Julio Nobrega Trabalhando
N$: Searched the manual/Google but haven't 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] 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 PROTE

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

2002-04-24 Thread Julio Nobrega Trabalhando
mp;$_SESSION And a mix 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] Destroy a session var passed as an argument

2002-04-24 Thread Julio Nobrega Trabalhando
rror persists. So: How can I destroy the session variable inside showError($_SESSION)? Thanks for any tips, -- Julio Nobrega. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 006c01c

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

2002-04-23 Thread Julio Nobrega Trabalhando
lways echo the var instead of the short form &type=" // With session_id() instead of $PHPSESSID or $SID ACTION="network_option_transunion.php?PHPSESSID=&type=" // At the last part of the url ACTION="network_option_transunion.php?type=&PHPSESSID=" -- Julio Nobr

[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

[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?

Re: [PHP] Re: Backup of MySQL database

2002-04-22 Thread Julio Nobrega Trabalhando
newsgroups, but I couldn't not let it pass 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=66417

[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á: htt

[PHP] Comments Display, with replies

2002-04-20 Thread Julio Nobrega
ope!) So, any advices about 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

[PHP] Re: CMS -- central module handling

2002-04-20 Thread Julio Nobrega
Hi! I have tried to make a complete modular php cms system. The hardest part was not selecting which modules to load, but their presentation. I don't know if what I did was good enough, i.e: the best implementatin, but somewhat was working. What I did was basically query a Mysql table, sel

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

2002-04-19 Thread Julio Nobrega Trabalhando
. As an open 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

[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" <[E

[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: Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
error_log(), 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://sou

[PHP] Re: function returning true or errors

2002-04-18 Thread Julio Nobrega Trabalhando
tom_function(), if before the return you $_SESSION['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/toc

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

2002-04-18 Thread Julio Nobrega Trabalhando
#x27;file'); } } And etc, etc, etc :-D I understand there's a lot of "etc" on my post, that's because I am still thinking about all the features that I think that would be useful on a such class... ;-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net

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

2002-04-18 Thread Julio Nobrega Trabalhando
ot 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:/

[PHP] Error Handling Class - Any Recommendations?

2002-04-18 Thread Julio Nobrega Trabalhando
27;s choice. 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: 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: 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

[PHP] Re: Storing images in MySql

2002-04-16 Thread Julio Nobrega
abase 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]&quo

[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/

[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 PROTECT

[PHP] Re: Writing Cross DB application

2002-04-15 Thread Julio Nobrega Trabalhando
n use 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." <[

[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&quo

[PHP] Re: phpMyAdmin protection

2002-04-15 Thread Julio Nobrega Trabalhando
iles should be chown 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á: ht

[PHP] Re: HTML form element

2002-04-12 Thread Julio Nobrega
Art Biology Business and Economics" etc. etc. Note the [] after majors. Now majors is an array with the selected values. -- Julio Nobrega. Tô chegando: http://www.inerciasensorial.com.br "Brian McLaughlin" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

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

2002-04-12 Thread Julio Nobrega
rds, and INSERT-SELECT from temp to original... -- 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: > > >

[PHP] Re: HTML Character Parsing

2002-04-11 Thread Julio Nobrega
= substr_count(strtolower($text), $close_tag); if ($nr_open_tags > $nr_close_tags) { $missing_tag .= 'A tag ' . htmlentities($open_tag) . ' was not closed!'; } } if (!ereg("^[[:blank:]]*$", $missing_tag)) { return '

[PHP] Re: unique ID

2002-04-11 Thread Julio Nobrega Trabalhando
Make an autoincrement/primary column? Or keep a number stored and increase it one by one and using when derirable? I prefer the first one :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br

Re: [PHP] string...

2002-04-11 Thread Julio Nobrega Trabalhando
Checkout the substr() function. You can do something like: if (substr($var, -9) = '_.jpg')) { // do something } -9 would be the staring position. I am not sure if this is the right number, so you will have to look at the manual :-) -- Julio Nobrega. Um dia eu cheg

[PHP] Re: Statistic Variables

2002-04-11 Thread Julio Nobrega Trabalhando
nes I log, if I recall correctly :-) -- 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 "Martin Clifford" <[EMAIL PROTECTED]> wrote in message [E

[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 "S

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

2002-04-09 Thread Julio Nobrega Trabalhando
) More than one column: $sql = "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

[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: help condensing regular expressions

2002-04-05 Thread Julio Nobrega Trabalhando
How about: $site_root = '/www/user/htdocs/'; 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/projects/toca Ajudei

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

2002-04-05 Thread Julio Nobrega Trabalhando
ction 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?

[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 C

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

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 Edward

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

2002-04-04 Thread Julio Nobrega Trabalhando
the information 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

[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?

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

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: 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.submar

[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=1&b=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(); -

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

2002-03-27 Thread Julio Nobrega Trabalhando
ficados' without a value, so I can make 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á: htt

[PHP] Loop non-fixed sized array

2002-03-27 Thread Julio Nobrega Trabalhando
ys of $_SESSION values that say what powers the user has, powers that come from the $powers array. ANY help? I hope I did 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: Merging Results of Queries

2002-03-26 Thread Julio Nobrega Trabalhando
ger done in sql... 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 databas

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] . ''; } 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.submari

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 Ge

[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.

[PHP] Find if a html tag was closed

2002-03-25 Thread Julio Nobrega
Hi all, I am trying to build a regex to check if an array of allowed html tags were closed. For example: Wrong: text Should give me something like: Tag was not closed. Here's what I came up so far: $tags_to_check = Array('a','b','i','p'); foreach ($tags_to_check as $tag_check) { i

[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 LI

[PHP] Re: Debugging tool

2002-03-25 Thread Julio Nobrega Trabalhando
http://www.google.com/search?q=php+debugger&sourceid=opera&num=0&ie=utf-8&oe =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?w

[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 &q

[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/wis

[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/wishlistclien

[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: Calling a javascript function?

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

[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 ) 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 Joh

  1   2   3   >