[PHP] php and forms

2003-03-20 Thread b b
I would be most greatful Thanks, b. __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File download

2003-04-03 Thread b b
Hi, Anybody knows the solution to the following: I am trying to force the download of a file called dadada.txt. I have a file named downloadFile.php It is invoked like this: dadada.txt However within the downloadFile.php the $daFile argument is empty. This is the file: You are not a

[PHP] File Download?

2003-04-03 Thread b b
Hi, Why would the $daFile in the following code be resolved to "". I am passing it via the url. You are not autherized to view this page"); } ?> __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness,

Re: [PHP] File Download?

2003-04-03 Thread b b
ual daFile). Cheers, r. --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Friday 04 April 2003 13:51, b b wrote: > > > Why would the $daFile in the following code be > > resolved to "". I am passing it via the url. > > > session_start(); > >

[PHP] Prefilled forms

2003-11-18 Thread b b
Hi there, I have installed linux/apache/php (again) recently on my machine. When I run an application off my server, fill out a form, submit it and then click back to edit some entries, the form comes up blank. This happen for apps running off my server only. Is it something with my php.ini, or

RE: [PHP] Prefilled forms

2003-11-18 Thread b b
I don't think you understood my question. Off course you have to store data in a database or a session var if you want to retrieve them later on. My problem is not there. I hava a form, I click submit and right after that I hit back. Usually in most cases the form will be prefilled with what I

RE: [PHP] Prefilled forms

2003-11-18 Thread b b
The Problem again: I have a form, I fill it, click submit and then hit back. Usually in other sites I see the data that I attempted to submit. Forms originating from my site are coming up blank. In respnonse to your reply: I am using mozilla 5 or netscape 7. Same result in both. However, thi

RE: [PHP]{OT} Prefilled forms

2003-11-18 Thread b b
What??? You ahve sent me like three private emails. You did reply all which sends me a private message and a message from the list. I replied to the one that had only your email address in it by mistake. mama mia --- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > > Have you consulted an A

RE: [PHP] Prefilled forms

2003-11-18 Thread b b
I haven't found a more elegant solution, > so if there is another > out there, I'd appreciate hearing about it. > > good luck, > > Warren Vail > > -Original Message- > From: Jay Blanchard > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 18,

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread b b
es your address (so that you get duplicate responses, 8 from this person so far) complains that you replied to the wrong version. And he does it in the general list. That is not right. --- John Nichel <[EMAIL PROTECTED]> wrote: > b b wrote: > > What??? > > You ahve sent me

Re: [PHP]{OT} Prefilled forms

2003-11-18 Thread b b
am sending out personal emails to users when I was replying to a message sent to me. Again read and think before interfering. You really aren't helping much. In other words, mind your own ... --- John Nichel <[EMAIL PROTECTED]> wrote: > b b wrote: > > Some people don

[PHP] Prefilled forms (solved)

2003-11-18 Thread b b
Alright lets clean the slate here. I think we all mean well and that is what counts. I apologize if I offended anybody. Incidentally I can't quite explain the solution to my dillemma. The following is a description of the Problem and the Solution: Problem: I am running apache/php server. If

Re: [PHP] Prefilled forms (solved)

2003-11-18 Thread b b
No I am saying that if you have: and you click submit then if you click back to see the form the value you set w2 will be blank. If you reverse the order however then you will see what you entered in w2 --- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > b b wrote: >

[PHP] Query Batch

2003-11-18 Thread b b
#x27;$name', '$address') ; Insert into B(personID, department ...)values (@@identity, '$department');" ; $result= mysql_query($qStr, $link) ; In this case I inserted in two tables. for some reason it doesn't allow me to have to sql statements in $qStr. Is there a way

[PHP] php and tables

2001-11-27 Thread b
i have created a program that allows users to make custom sql queries to a mysql db and display the output to the browser. the program works as desired but what i would like to do is display the data in a table. as there can be up to 4 columns with up to 13 different titles, i cannot hard code thi

[PHP] $B:#F|$N;q6b7+$j$O(B

2001-06-28 Thread $B
$B!&!&!&(B $B:#F|$N;q6b7+$j$G$*:$$j$NJ}$O(B $B!&!&!&(B http://www.justinmail.net/ma01/pa01.htm $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!

[PHP] Fileinfo and MSWord bug

2009-05-16 Thread b
PHP 5.2.6 file-4.17-15.el5_3.1 Fileinfo installed through PECL Checking certain MSWord files, I'm getting back (sans quotes) "application/msword application/msword". Someone reported (in the manual comments) this same thing back in 2007: http://ca2.php.net/manual/en/ref.fileinfo.php#79063 Can

Re: [PHP] Why does PHP have such a pain in the a$$ configuration file?

2009-05-27 Thread b
ing to a different language because of this. I guess you could look for a language that has a parser with 0 configuration options. Sounds like a bundle of fun. Meanwhile, why don't you consider a) moving to a new host; or, b) setting up your own server so you can ~shudder~ *configure* it

Re: [PHP] Re: PHP Security

2009-06-02 Thread b
Grant Peel wrote: ??? I think you can safely assume that was a joke. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP as Language

2009-07-24 Thread b
On 07/24/2009 02:06 PM, Kyle Smith wrote: Martin Scotta wrote: Hi all Is there a formal definition for the php language? Where I can found it? I've STW with no results. Not sure if this is what you mean, but PHP stands for "PHP: Hypertext Processor" - Kyle I think Martin is looking for t

[PHP] preg_match too greedy

2009-07-29 Thread b
I'm trying to figure out how to test if a string matches *exactly* another string, using a regexp pattern. The manual says that ereg() is deprecated (in favour of what?) and preg_match() is giving me trouble. The problem is that I'm passing the end-of-line delimiter ($) but it seems to be ignor

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 02:07 PM, Jim Lucas wrote: b wrote: I'm trying to figure out how to test if a string matches *exactly* another string, using a regexp pattern. The manual says that ereg() is deprecated (in favour of what?) and preg_match() is giving me trouble. The problem is that I'm p

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 03:03 PM, Ben Dunlap wrote: Jim Lucas wrote: I expected 'no match' but get 'match'. [8<] cut/paste your code and it works for me. Works for me as well. I get 'no match' from PHP 5.1.2, 5.2.6, and 5.2.8. What version do you have? 5.2.9 If I might suggest a couple of simplifi

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 07:48 PM, Daniel Kolbo wrote: code works (no match) for me too on php 5.2.6 build date May 2 2008 18:01:20 with dumbdows NT. preg_match fails but for a reason other than what I think you may be expecting. It fails b/c of the first forwards slash in $url. The regex engine

Re: [PHP] preg_match too greedy

2009-07-29 Thread b
On 07/29/2009 11:18 PM, Daniel Kolbo wrote: b wrote: On 07/29/2009 07:48 PM, Daniel Kolbo wrote: code works (no match) for me too on php 5.2.6 build date May 2 2008 18:01:20 with dumbdows NT. preg_match fails but for a reason other than what I think you may be expecting. It fails b/c of the

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread b
On 07/30/2009 08:53 AM, Peter Ford wrote: Have you tried using 'file -i' from the command line: after all you are looking for a MIME type with your fileinfo... Having said that, with file -i on my system, Word documents are 'application/msword' and Excel files are 'application/octet-stream'

Re: [PHP] Formatting plain text file

2009-07-30 Thread b
On 07/30/2009 06:29 PM, Skip Evans wrote: Jim Lucas wrote: Skip Evans wrote: Hey all, Am I brain fading or what? I'm so used to formatting text in tables for HTML display I can't think of how to do it for a plain text file. I just need to create a columned table of names and addresses type st

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread b
On 07/30/2009 10:15 AM, Ashley Sheridan wrote: On Thu, 2009-07-30 at 07:12 -0700, Christoph Boget wrote: >> You could email it to me, which I presume is better if you replied back just to me and not the list? Just copying the list back on in this one now. I don't know of any places that you c

Re: [PHP] Character encoding

2009-08-05 Thread b
On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.) wrote: Hi, I have a mysql database, which the users can insert comments. As the users can be from different countries, with different character encoding, the mysql table can contain various special characters. How can I be sure to display t

[PHP] Using javascript function from php

2005-03-10 Thread b
Hi, I am just learning php, and am currently converting some jsp pages to php. I used the follwing code in jsp to toggle between two images
function toggle(imagename,src1,src2){
if(document.images && document.images[imagename])
{
image1=new Image;

[PHP] Re: Using javascript function from php

2005-03-10 Thread b
It's OK I worked it out. On Fri, 11 Mar 2005 15:44:55 +1100, <[EMAIL PROTECTED]> wrote: Hi, I am just learning php, and am currently converting some jsp pages to php. I used the follwing code in jsp to toggle between two images
function toggle(imagename,src1,src2){
if(document.imag

Re: [PHP] php image and javascript include

2008-09-07 Thread b
javasac wrote: [lots of stuff ...] I'm guessing that was the *output* of the PHP file, not the script itself. You've got a couple different errors here. The first is that you're not creating img tags. All you have here is the path to the image. A browser isn't going to do anything with that

Re: [PHP] tedd's back from vacation

2008-09-10 Thread b
tedd wrote: hi gang: For those who wondered where I went -- I was on vacation. I would have announced it before I left, but I was afraid that someone would have broken into my collection of stuff. I'll post pictures of my vacation soon. Oh, I had lot's of fun -- so much so, I broke my big t

Re: [PHP] New Server Install

2008-09-10 Thread b
Robbert van Andel wrote: I am working on a new webserver running Fedora 9. I installed php-mysql and php-mssql via yum. When I try to connect to our mysql server using php, I get the following error: Can't connect to MySQL server on 'mysqlservername' (13) Here's the weird part, I can connect t

Re: [PHP] Paypal Integration

2008-09-16 Thread b
Ashley Sheridan wrote: I don't recommend HSBC at all. They make you jump your code through so many hoops and their documentation was awful. I don't know why large companies think it's acceptable to produce bad/out-of-date documentation and expect it all to be OK. Thanks for the heads-up. I al

Re: [PHP] Associative array issues with loading values after initialization

2008-09-19 Thread b
Thomas Bolioli wrote: I should add, it is not working with this funciton, which could be the source of the issue. function dropbox_from_list($list, $selected_index){ while ($nex = next($list)) { I'd use foreach() here and avoid next(). At least, reset the array first. And maybe pass the a

Re: [PHP] was [PHP] Re: render html

2008-09-21 Thread b
tedd wrote: At 8:17 AM +0200 9/21/08, Lupus Michaelis wrote: Michelle Konzack a écrit : $body = "helloierhellohello"; ^ Should be Definitely no : Or ma

Re: [PHP] calling functions from one or multiple files

2008-09-24 Thread b
Lamp Lists wrote: Hi, Right now I use one file, usually called functions.php, with all functions I'm going to use most likely on every page. Then, I create each function I'm going to use once in a while as separate file. Pro: I would include a function when I'm going to use. Con: I have to write

Re: [PHP] calling functions from one or multiple files

2008-09-24 Thread b
Ashley Sheridan wrote: On Wed, 2008-09-24 at 12:37 -0400, b wrote: Lamp Lists wrote: Hi, Right now I use one file, usually called functions.php, with all functions I'm going to use most likely on every page. Then, I create each function I'm going to use once in a while as separate fi

Re: [PHP] Sepating MySQL result set into html tables

2008-09-26 Thread b
Thodoris wrote: Hello everybody, I have a mysql result set that I want to print out in an html table. But some times it gets so big that I will probably need to separate it in to multiple ones. I wrote a function that separates the result set into three ones like this: ... But I really n

[PHP] $B$4M;;q$N$40FFb(B

2001-07-13 Thread $B%"%]%m4k2h(B
$B!&!&!&(B $B:#F|$N;q6b7+$j$G$*:$$j$NJ}$O(B $B!&!&!&(B http://www.justinmail.net/ma02/pa01.htm $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!&(B $B!&!&!

[PHP] rename failes if file name contains single quotes

2003-01-31 Thread $B%X!<%s(B $B%H!<%^%9(B
when i try to rename a file with single quote(s) in the (Bfile name, e.g. (B (Brename("/tmp/foo 'n bar", "/tmp/foobar"); (B (Brename fails with "there is no such file". (Bwhats wrong? (B (Bthanx, (B (Bakagisan (B (B___

[PHP] pg_connect $B$,;H$($J$$(B

2003-02-08 Thread $BNS(B $B7C72(B
$B;O$a$^$7$F!#(Blin $B$H?=$7$^$9!#(B (B (Bphp$B$N(Bpg_connect$B$G(BpostgreSQL $B$K@\B3$r;n$_$^$7$?$,!"4X?t$,(B $B8+$D$+$j$^$;$s$H%(%i!<$,=P$F$7$^$$$^$7$?!#F1MM$J8=>]$,Ax(B $B6x$7$?J}$,$$$?$h$&$G$9$,!"4N?4$J2r7hJ}K!$O8+$D$+$j$^$;$s(B $B$G$7$?!#$I$J$?$+$,2r7h

[PHP] How to uncompress PHP

2003-02-08 Thread $BNS(B $B7C72(B
Hi, I am Lin. (B (BWhen I execute a command (B (Bgzip -d php-4_3_0_tar.gz (B (Bon the linux. The system show the following error. (B (Bgzip: php-4_3_0_tar.gz: not in gzip format (B (BHow can I uncompress this file. (B (B__ (BDo You Yahoo

[PHP] Is the session ID of php4 made like a session cookie?

2001-05-21 Thread $B>>K\!!8y0l(B
Is it possible to erase at the same time the session data of php4 closes a browser? Please teach a method, when a browser is closed and session data can be canceled. - now Environment OS RedHatLinux6.2 php 4.0.5 At php.ini, it is session.cookie_lifetime = 0.; session.cache_limiter = nocache ;

[PHP] Reverse (or backward?) Infinity Loop

2004-10-19 Thread Bruno B B Magalhães
3 • Category 4 • Category 5 A reverse (or backward) loop! We need to get the last category and then follow the ParentId until the 0 ParentId. Have anybody made this before (I hope so)? Many Thanks, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Mixing classes

2004-10-20 Thread Bruno B B Magalhães
Hi Tomy, I did the same thing! I´ve used a class called framework to encapsulate everything... here is what looks like: framework.inc.php http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework * @version 0

Re: [PHP] Mixing classes

2004-10-20 Thread Bruno B B Magalhães
Hi Tomy, I did the same thing! I´ve used a class called framework to encapsulate everything... here is what looks like: framework.inc.php http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework * @version 0

Re: [PHP] PHP framework

2004-10-23 Thread Bruno B B Magalhães
then: http://www.zope.org http://www.fusebox.org http://www.mojavi.org http://www.binarycloud.com http://www.eZpublish.com http://amb.sourceforge.net http://www.phpmvc.net http://phrame.itsd.ttu.edu http://www.horde.org Best Regards, Bruno B B Magalhães On Oct 23, 2004, at 4:04 PM, Igor wrote: I need

Re: [PHP] enterprise php application automated testing

2004-10-23 Thread Bruno B B Magalhães
Well, we call it pre-testing, the only way, and the better one, is doing it with the future users of your system! Regards, Bruno B B Magalhães On Oct 23, 2004, at 10:00 PM, blackwater dev wrote: Hello all, I know I can use simpletest to test my application at the class level but I need a tool

[PHP] $GLOBALS, any probolems?

2005-02-09 Thread Bruno B B Magalhães
Hi guys, is there any problems using $GLOBALS superglobal to carry all my global classes instances? For example: $GLOBALS['myclass'] = new myclass(); Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Simple Licensing System

2005-04-08 Thread Bruno B B Magalhães
ave a simple idea for it? Best Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple Licensing System

2005-04-09 Thread Bruno B B Magalhães
Hi Richard, And how do I generate this, and how would I check it?!?! Thanks, Bruno B B Magalhaes On Apr 8, 2005, at 11:48 PM, Richard Lynch wrote: On Fri, April 8, 2005 1:06 pm, Bruno B B Magalhães said: I need a help with a licensing system, I want something very simple, for example a simple var

Re: [PHP] Re: class calling script

2005-04-12 Thread Bruno B B Magalhães
return true; } return true; } else { return $this->_mdl->$module_name = false; return false; } } else { return $this->_mdl->$module_name = false; return false; } } else { return $this->_mdl->$module_name = false; re

Re: [PHP] Syntax highlighting of odd language

2004-11-05 Thread Bruno B B Magalhães
-1; $i++) { $highlighted_code = eregi_replace($oddsyntax[$i],''.$oddsyntax[$i].'',$code); } return $code; } echo highlight_code($code); Regards, Bruno B B Magalhães On Nov 5, 2004, at 6:39 PM, Aaron Gould wrote: Could any of you privide some leads in regard to highlighting synt

[PHP] keywords generation

2004-11-05 Thread Bruno B B Magalhães
{ $total[$val] = substr_count($text,$val); } } } = How can I sort the resulting array by value, without loosing its relations. Is there a faster way of doing this? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: keywords generation

2004-11-05 Thread Bruno B B Magalhães
um] => 0 [zzril] => 1 [delenit] => 1 [ugue] => 1 [duis] => 1 [te] => 4 [fcilisi] => 0 ) Which is the word and it total occurrence in the text... Now I want to sort it from the highest values to the lowest... and then return a keyword string as: $k

Re: [PHP] Re: keywords generation

2004-11-05 Thread Bruno B B Magalhães
at nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. '; echo generate_keywords($submited_text); ======== Than

Re: [PHP] Re: keywords generation (ANOTHER)

2004-11-05 Thread Bruno B B Magalhães
Hi, I am trying to categorize the keywords... for example, if a word shows at the begin probably it´s more important, but how many occurrences is also important... Does someone knows Google´s formula? hehe This code is working more or less as expected! Many Thanks, Bruno ==

Re: [PHP] Javascript and php

2004-11-07 Thread Bruno B B Magalhães
Reinhart, picture_url.'"'; if($i <= mysql_num_rows($result)-2) { echo ','; } } ?> Here is how I do in my developments. Regards, Bruno B B Magalhães On Nov 7, 2004, at 8:44 AM, Reinhart Viane wrote: Hey all, Hope some o

[PHP] Authentication Class

2004-11-16 Thread Bruno B B Magalhães
table.. == http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework * @version 0.5dev */ class authentication { var $domain; var $database; var $authentica

[PHP] Array unset

2004-11-16 Thread Bruno B B Magalhães
Hi, I my system can handle invisible modules, so they can't show in the menu but stills works... here is the code: $c = count($modules)-1; for($i = 0; $i <= $c; $i++) { if($modules[$i]['moduleVisibility'] == 0) { uns

[PHP] Auto-load class if it doesn't exists!

2004-11-16 Thread Bruno B B Magalhães
.class.php'); $myclass = new class(); } Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Authentication Class

2004-11-16 Thread Bruno B B Magalhães
Is this good or bad? heheh! Regards, Bruno B B Magalhaes On Nov 16, 2004, at 3:31 PM, raditha dissanayake wrote: Bruno B B Magalhães wrote: Hi guys, well, I wrote a class for a big project (a framework), and here it is, I was wondering if someone have any suggestions regarding flexibility and

[PHP] Re: [PHP-DB] OOP vs Functions and includes

2004-11-16 Thread Bruno B B Magalhães
Here is a example of a controller of my framework, can you imagine it using procedural approach? (http://www.yourhostname.com/controller/articles) http://www.bbbm.com.br/ * @copyright 2004 Bruno B B Magalhaes * @author Bruno B B Magalhaes <[EMAIL PROTECTED]> * @package BBBM Framework *

[PHP] Auto Class loading

2004-11-17 Thread Bruno B B Magalhães
le? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is it a good idea?

2004-11-20 Thread Bruno B B Magalhães
} } elseif(!isset($this->core->$class)) { return $this->core->$class =& new $class($this); } else { return $this->core->$class; } } Best regards to you all, Bruno B

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread Bruno B B Magalhães
g as foreach($modules as $module) { } our also a faster one for($i=0; $i < $t; $i++) { } where $t = count($modules)-1;. Best Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Lazy anwsers (WAS: mysql_connect vs mysql_pconnect)

2004-11-27 Thread Bruno B B Magalhães
) and I believe that others do too. So I think that this is the worst kind of comment or suggestion someone can receive. Sorry everybody. Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] identifying the country of the people who connect to web site / portal

2004-11-27 Thread Bruno B B Magalhães
Hi, course you can, you should search harder for it, but I will facilitate for you! :o) http://www.phpclasses.org/browse/package/1477.html Best Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Comment Speed

2004-11-27 Thread Bruno B B Magalhães
cess. Any idea? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Implementing database cache.

2004-12-08 Thread Bruno B B Magalhães
query itself. I would love any ideas! :) Nice regards. Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Implementing database cache.

2004-12-08 Thread Bruno B B Magalhães
I am using mysql with cache results enable, but as every addicted I want more and more... course I have to benchmark it to see if its worth... Regards, Bruno B B Magalhães On Dec 8, 2004, at 8:34 PM, John Holmes wrote: Bruno B B Magalhães wrote: Hi again guys, does anybody have am idea of witch

[PHP] Friendly URL

2004-12-10 Thread Bruno B B Magalhães
] = strtolower(addslashes(strip_tags(eregi_replace($get_string,'',$path[$i]) ))); } else { $this->uri[$i] = strtolower(addslashes(strip_tags($path[$i]))); } } } Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friendly URL

2004-12-11 Thread Bruno B B Magalhães
Richard, well a much simpler solution than my old one: $this->uri = explode('/',basename($_SERVER['SCRIPT_NAME']).$_SERVER['PATH_INFO']); Many thanks for your help, Bruno B B Magalhaes On Dec 10, 2004, at 11:57 PM, Richard Lynch wrote: $_SERVER['PHP_SE

[PHP] Infinity and nested categories

2004-12-12 Thread Bruno B B Magalhães
AND category_id='022') My problem is that how can I handle those categories! and build a three of it. I am using PHP5 and MySQL 4.1 Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Infinity and nested categories

2004-12-14 Thread Bruno B B Magalhães
Thanks Richard! Helped a lot! Regards, Bruno B B Magalhaes On Dec 13, 2004, at 4:16 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: Hi again everybody, well, I've asked it before, but I couldn't work on this at all. As some knows I have a system witch has a category system. The gener

[PHP] Not quite PHP, but related...

2004-12-10 Thread Bruno B B Magalhães
post, get, cookie and session headers. Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Slow Zend Optimizer

2004-12-14 Thread Bruno B B Magalhães
Hi guys, I've installed the zend Optimizer with my Mac OS X, Apache 1.2, PHP5. And guess what, it became about 40% slower!!! My framework was running for example in the modules administration (admin area) at 0.104ms, and now the average is 0.2ms - 0.24ms Does anybody have any idea of what hell

[PHP] Frameworks

2004-12-22 Thread Bruno B B Magalhães
tion class (lots of input validation) and its multilingual, fetched from the database. Best Regards, Bruno B B Magalhaes

[PHP] GMT

2005-01-04 Thread Bruno B B Magalhães
the hour. Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GMT

2005-01-04 Thread Bruno B B Magalhães
efault_timezone_offset)) { $this->local_timezone_offset = $this->default_timezone_offset - $this->server_timezone_offset; return time()+3600*$this->local_timezone_offset; } else { return time(); } } =

[PHP] Pagination Optimization

2005-01-07 Thread Bruno B B Magalhães
My question is: Is there ANY way to speed up this function, or any way to fetch paginated results quicker? I had a project list, without pagination, and when I added the pagination function, it slowed down up to 0.0125 secs. Before it was runnin

Re: [PHP] Re: Pagination Optimization

2005-01-08 Thread Bruno B B Magalhães
{ return null; } return $results; } === Regards, Bruno B B Magalhães On Jan 7, 2005, at 10:09 PM, M. Sokolewicz wrote: first of all, you're running 4 queries here. 4 queries is a lot! Especially when you don't nee

[PHP] UBB Code correct use

2005-01-11 Thread Bruno B B Magalhães
tabase | Eg. encoded to [b] When editing an article: Database ---> UBB Decode ---> Edit form ---> UBB Encode ---> Database | Eg. [b] becomes When viewing in the site:

[PHP] Checking if

2005-01-11 Thread Bruno B B Magalhães
Hi people, how to determine if the last char of a string is a '/'... The problem, a webpage can be accessed by www.domain.com/page.php or www.domain.com/page.php/ Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking if

2005-01-12 Thread Bruno B B Magalhães
Richard, my solution right know is: if(substr($url,-1) != '/') { $url = $url.'/'; } Simple and fast... :) Regards, Bruno B B Magalhaes On Jan 12, 2005, at 3:37 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: how to determine if the last char of a string is a &

[PHP] Dates, times, timezones...

2005-01-19 Thread Bruno B B Magalhães
7;s easy to convert to any format and to do math with dates Is this the way? Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] URGENT: Break-lines disappearing.

2005-01-20 Thread Bruno B B Magalhães
} else { return $input_data; } } Where are the break-lines?!?!? I am really desperate! Please! I am using MySQL and PHP4. Regards, Bruno B B Magalhaes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Formating

2005-07-05 Thread Bruno B B Magalhães
only, for example 05117635472 and outputted as NNN.NNN.NNN-NN... Is that any way that I can do it generic, storing the formatting strings ('N- NNN') with languages strings, so it is localised and this would be parsed as: string::format($string, $format); Best Regards, Brun

Re: [PHP] Formating

2005-07-07 Thread Bruno B B Magalhães
Hi Richard, On Jul 5, 2005, at 6:20 PM, Richard Lynch wrote: On Mon, July 4, 2005 6:48 pm, Bruno B B Magalhães said: For example I have a brazilian zipcode witch is stored in database as Is she a Good Witch, or a Bad Witch? :-) Ups, hehehehe! 22252970 and must be formatted as N-NNN

[PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
t;[EMAIL PROTECTED]> * @copyright 2004 by Bruno B B Magalhaes * @copyright 2005 by B3M Development Team * @link http://www.bbbm.com.br/platform/

Re: [PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
I found a round number (31557376.189582). Well, any help is appreciate. At least now I can work on a windows box. Best Regards, Bruno B B Magalhaes On Jul 7, 2005, at 3:42 PM, Richard Davey wrote: Hello Bruno, Thursday, July 7, 2005, 7:04:44 PM, you wrote: BBBM> I've read the manual, and

Re: [PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
return $output; } else { preg_match('([0-2][0-9][0-9][0-9])', $input, $year); preg_replace('([0-2][0-9][0-9][0-9])', '1976', $input); return floor(strtotime($input) + (($year[0] - 1976) * (31557376.189582))); } } Tha

Re: [PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Bruno B B Magalhães
and now multiply by number of seconds in a year (31557376.189582) before Gregorian Calendar, and we will get: -1262295047.583 Now we calculate the timestamp from 01/01/1976: 189313200 Now we have the final equation: 189313200 + (-1262295047.583). The result is a negative timestamp: -1072981847

Re: [PHP] TimeStamp BEFORE 1970 AND AFTER 2035

2005-07-07 Thread Bruno B B Magalhães
preg_match('([0-9][0-9][0-9][0-9])', $input, $year); $input = str_replace($year[0], '1976', $input); return (float)floor(strtotime($input) + (($year[0] - 1976) * (31557376.189582))); } } Shoot! Best Regards, Bruno B B Magalhaes

[PHP] How to read PHP variables.

2005-07-12 Thread Bruno B B Magalhães
Hi you all! That's my problem: I have a configuration files with the following structure... $vars['varname'] = 'varvalue'; And I would like to have a module to change those parameters, but I don't know how to write a pattern to match it... Thanks in advan

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread Bruno B B Magalhães
write the strings.. Best Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get recursive array

2006-02-06 Thread Bruno B B Magalhães
} } else { $this->vars[$key] = $value; } } For example I have: $this->vars['config']['database_type'] = 'mysql'; or... $this->vars['http']['get'] = 'b'; But now I want

[PHP] Get recursive array

2006-02-06 Thread Bruno B B Magalhães
} } else { $this->vars[$key] = $value; } } For example I have: $this->vars['config']['database_type'] = 'mysql'; or... $this->vars['http']['get'] = 'b'; But now I want

  1   2   3   4   5   6   7   8   9   >