[PHP] Re: I get headers already sent by error each time I use setcookie function

2001-08-23 Thread Inércia Sensorial Trabalhando
It will fail if the first line is a blank line. For example (numbers are line numbers): 1. 2.?php 3. setcookie(); // etc... 4.? While: 1.?php 2. setcookie(); // etc... 3.? It should work... -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net Ha Minh Nguyen [EMAIL

[PHP] Printf fails on large files

2001-08-17 Thread Inércia Sensorial Trabalhando
Hi All, A friend of mine said his printf is failing when he parses a variable from a 4.5 mega file. On smaller files, it works fine. There's a limit on the printf or somewhere else? Thanks. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net -- PHP General Mailing

[PHP] Re: PHP to embed font

2001-08-14 Thread Inércia Sensorial
Here's how, but it does not use PHP: http://cnet.com/webbuilding/pages/Authoring/Typography/ss01.html -- Julio Nobrega. 2B||!BB - That's the question. Admin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there anyway to use PHP to embed font types

[PHP] Re: saving the client's file upload location

2001-08-14 Thread Inércia Sensorial
On the form processing page, register the variable on a session. And put session_start(); on the form's page, so the value is remembered and echo()ed on the field. -- Julio Nobrega. 2B||!BB - That's the question. Bob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: searching arrays

2001-08-14 Thread Inércia Sensorial
in_array(); -- Julio Nobrega. 2B||!BB - That's the question. Raphael Pirker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Is there a possibility to search arrays in PHP? For example I'd like to find out the index-number of $countries[singapore];

[PHP] Re: submit form problem

2001-08-12 Thread Inércia Sensorial
I haven't found a way to disable the Enter key to submit the form, as I believe it does exists, but, found a way so when Enter is pressed works like Tab, moving to the next form field. Here: http://www.faqts.com/knowledge_base/view.phtml/aid/6793/fid/129 Google search used:

[PHP] Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?

2001-08-12 Thread Inércia Sensorial
I don't think it is possible to pass so much chars in a href, or URL for the matter. Is it really necessary? Couldn't you first write somewhere (db/file) those chars and retrieve it later, referencing it on the href? -- Julio Nobrega. 2B||!BB - That's the question. News.Fbcc.Com [EMAIL

[PHP] Re: server run page

2001-08-12 Thread Inércia Sensorial
I have seen this question before on a brazilian newsgroup I visit, and the only solutions we came (without going away from a default php installation) is to use the function include(); (and similars) or sessions. If anyone knows a different way, I would also be interested to know, to inform

[PHP] Re: Newbie: Simple site search To bit more Complex...

2001-08-08 Thread Inércia Sensorial
You might want to have a look on this script: http://www.digitalgenesis.com/software/dgssearch.html It can search specified directories/file extensions/databases, or deny search for the same, and many other options. -- Julio Nobrega. 2B||!BB - That's the question. Steve Wright

[PHP] Re: PHP in corporate settings?

2001-08-08 Thread Inércia Sensorial
I don't think the problem is the open source nature. Corporate people usually do not see flaws on it. But they do not see the advantages too because there is little advertising. -- Julio Nobrega. 2B||!BB - That's the question. Jeff Lewis [EMAIL PROTECTED] wrote in message

[PHP] Re: htaccess php

2001-08-08 Thread Inércia Sensorial
Here: http://hotwired.lycos.com/webmonkey/00/05/index2a.html?tw=programming -- Julio Nobrega. 2B||!BB - That's the question. Chris Kay [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi My question is that i am about to start a database and i have

[PHP] Re: Attitude of B van Ouwerkerk

2001-08-03 Thread Inércia Sensorial
When on mailing lists such discussion get longer and longer, like 'Attitude of B van Ouwerkerk', I always remember of this email. Could everyone give a moment of thought and get back to the purpose of this list? I know that this includes myself too, which I apologize for my behavior: Q: How

Re: [PHP] Adopt A Newbie (ME)

2001-08-02 Thread Inércia Sensorial
Kyle Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... zillion is actually a number? Yes, a number performed by some old cartoon, anime style :-) i just downloaded a program which reads out text for you cause it just gets really boring reading the text, so now its goinfg

[PHP] Re: Spot the difference?

2001-08-02 Thread Inércia Sensorial
FUD! Kyle Smith [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Whats the difference between ASP and PHP cause ASP has gotta have something good about it cause microsoft uses it! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ:

Re: [PHP] Re: How can I make a Loading... screen?

2001-08-01 Thread Inércia Sensorial
Something like: http://www.javascript-tricks.com/loading.html Found at Google, searched for 'page loading javascript'. There are more complex options, like with a bar graph. Michael Champagne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for the

[PHP] Re: Fun Question - What if...

2001-08-01 Thread Inércia Sensorial
Michael J. Seely [EMAIL PROTECTED] wrote in message news:a04320400b78e010dcf12@[208.37.135.187]... HI FOLKS, Imagine you had a PC Laptop, PHP installed, and a Ricochet/Sierra Wireless AirCard 400 - 128 kbps NIC card. What boom pow applications can you imagine setting up and running

[PHP] Re: HELP!! What wrong with this code...

2001-07-31 Thread Inércia Sensorial
Escape the double quotes inside the a href echo P align=centerYour feedback has been sent to a href=\mailto:$address\;$name/a/P; -- Julio Nobrega. 2B||!BB - That's the question. Steve Wright [EMAIL PROTECTED] wrote in message

[PHP] Re: Directories Files

2001-07-31 Thread Inércia Sensorial
There's an exemple right on the manual, function opendir();: if ($dir = @opendir(/tmp)) { while($file = readdir($dir)) { echo $file\n; } closedir($dir); } -- Julio Nobrega. 2B||!BB - That's the question. Karl J. Stubsjoen [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Revision Tracking - program concept

2001-07-30 Thread Inércia Sensorial
I guess, you could create a table with some colums like, 'last_modified', 'who_modified', 'document_path'. Then when someone makes a change, you save this changed document in a folder with the name of the document, so it is easy, folder by folder, to find all modified documents. You can even

[PHP] Re: A PHP Editor

2001-07-27 Thread Inércia Sensorial
I like to use PHPCoder, www.phpide.de -- Julio Nobrega. 2B||!BB - That's the question. Augusto Cesar Castoldi [EMAIL PROTECTED] wrote in message Pine.GSO.4.10.10107271605490.2482-10@minerva">news:Pine.GSO.4.10.10107271605490.2482-10@minerva... Hi. I'm using the PHPEd

Re: [PHP] Unlink Woes

2001-07-20 Thread Inércia Sensorial
Run the function phpinfo(); -- Julio Nobrega. This is a man's world. But it would be nothing. It would be nothing without a woman or a girl. Sheridan Saint-Michel [EMAIL PROTECTED] wrote in message 02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]">news:02d101c1113d$f7a5ccc0$[EMAIL PROTECTED]... How

[PHP] Re: PHP and XHTML

2001-07-18 Thread Inércia Sensorial
echo ''.?xml version=\1.0\ encoding=\UTF-8\?.''; Also, you may set short open tags off so php is only activated between ?php and ?. -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot Daniel Rose [EMAIL PROTECTED] wrote in message

[PHP] Re: please help.

2001-07-18 Thread Inércia Sensorial
Look at a folder named 'Benchmark' that comes with php's PEAR. It has a file named Time.php, and it has nice instructions about how to use it. -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot McShen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: Code running function

2001-07-17 Thread Inércia Sensorial
eval(); ? -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot B R [EMAIL PROTECTED] wrote in message 005501c10ee3$e82b4740$c6655ad1@Test4">news:005501c10ee3$e82b4740$c6655ad1@Test4... I know there's a function that takes a string argument and runs it as PHP code. i.e.

[PHP] Re: free email providers

2001-07-16 Thread Inércia Sensorial
Hi, I am not trying to discredit your decision to don't accept free emails, but look for example my situation. The only email accounts I have are on free email providers. I also connect to the internet using a free ISP, so there's no pratical reason to use a paid email. So it would be

[PHP] Re: Confusion abounds here

2001-07-15 Thread Inércia Sensorial
Spaces or new lines can give this problem also. For example (left numbers are lines): 1. 2.?php 3.session_start(); 4.? Might give errors because of the first line (wich is empty). Check if the file logs.php doesn't have this problem. -- Julio Nobrega. Because happiness is a warm gun

Re: [PHP] Re: Confirmation Requester

2001-07-14 Thread Inércia Sensorial
http://www.bosrup.com/web/overlib/ -- Julio Nobrega. You're asking me will my love grow, I don't know. Dave Freeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On 13 Jul 01, at 21:47, Inércia Sensorial wrote: Maybe a pop-up or a CSS/javasc

[PHP] Multiple languages

2001-07-14 Thread Inércia Sensorial
Hi All, I want to enable multiple languages on one of my scripts, so administrators or visitors can choose in what language they want to browse the site. I have seen a few ways to do it, like with switch, define or querying databases. But, considering performance, what is the best way to

[PHP] Re: Using an image as a reset button on a PHP script

2001-07-13 Thread Inércia Sensorial
From the html 4.1 manual (only saying this cause I don't know if it will work on agents that only support previous html versions)... BUTTON name=reset type=resetResetIMG src=/icons/oops.gif alt=oops/BUTTON -- Julio Nobrega. You're asking me will my love grow, I don't know. Brandon Orther

Re: [PHP] Error Message with sessoin variables.

2001-07-13 Thread Inércia Sensorial
Windows plataform? I was getting this error and solved by creating a dir named 'tmp', so create: c:\tmp That's where the session files will be stored... I think it's configurable in php.ini. -- Julio Nobrega. You're asking me will my love grow, I don't know. Johnny Nguyen [EMAIL

[PHP] Re: Confirmation Requester

2001-07-13 Thread Inércia Sensorial
Maybe a pop-up or a CSS/javascript box with a 'true delete' link (That would be elegant :-)). -- Julio Nobrega. You're asking me will my love grow, I don't know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Web application?

2001-07-13 Thread Inércia Sensorial
I am sorry, maybe going a little off-message here, but what would do you mean by eliminate 'table-scans'? -- Julio Nobrega. You're asking me will my love grow, I don't know. Christopher Ostmo [EMAIL PROTECTED] wrote in message news:3B4F343A.18504.2376C59B@localhost... As Rasmus stated

[PHP] Re: Login system

2001-07-12 Thread Inércia Sensorial
I have used this one with success, mysql and multi-level authorization support: http://www.phpsecurepages.f2s.com/ Can lock individual pages or parts of it with a little modification or well placed include();s. Also, about forms and session IDs, simple solutions would be pass the SID on

[PHP] $HTTP_REFERER 10

2001-07-12 Thread Inércia Sensorial
Is it possible? I am writing a recommend script, and I already know that the $HTTP_REFERER can come empty or even not set, tested turning off the 'Enable Referer Logging' on Opera. But, an invalid $HTTP_REFERER is also one smaller than 10 characters? I believe the smallest referer you

[PHP] Re: $HTTP_REFERER 10

2001-07-12 Thread Inércia Sensorial
That's also something worth to be done, but first I need to know some possible variations of $HTTP_REFERER... I never saw one, when coming from another domain, without the 'http://'´part, so that's a regex to check, but I may be wrong... -- Julio Nobrega. One and One and One is Three

Re: [PHP] Re: $HTTP_REFERER 10

2001-07-12 Thread Inércia Sensorial
Thank you Scott for the various ideas. I am preventing an eventual 'no referer' situation with a default url provided by who opens an account. I am getting (and trying to give :)) help on this list, so I will ask first before doing... Is it normal to announce personal projects here? This one

[PHP] Re: examples of using PHP to control .htaccess

2001-07-11 Thread Inércia Sensorial
Once I was looking for a similar solution and found none enough powerful to my needs. Anyway this was the only satisfactory that I found: http://php.vamsi.net/show_source.php?url=htpasswd_admin.php Also if you have Perl/CGI, you can use this one (much better, including admin interface,

Re: [PHP] Speed of loding PHP pages

2001-07-11 Thread Inércia Sensorial
No. It also depends on the internal engine used by the browser to 'contruct' the elements. On Windows plataforms, Netscape are slower to render cached pages. But IE has an advantage, it is built around some native windows functionalities, one of the reasons it is faster. I don't know for other

[PHP] Upgrade to Apache 1.3.20 on Win2k

2001-07-10 Thread Inércia Sensorial
Hi all, I have Windows 2000 running Apache 1.3.19. When I run the most recent 1.3.20 windows binary, it says There's already a version of Apache. Go to add/remove programs. Asking me to uninstall it. But, will I lose any mods or confs if I do this and install the new version? And have

[PHP] Re: Getting extensions to load in Win32

2001-07-09 Thread Inércia Sensorial
Sometimes you have to add the dir on the php.ini, for example: ;extension=php_df.dll Becomes: extension=extensions/php_gd.dll Can't remember if it is / or \ after 'extensions' -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look:

[PHP] Re: Code Examples for Job Interview

2001-07-09 Thread Inércia Sensorial
What's the job position? And the company style? The sample you should leave depends on the requirements and type of experience needed, and the company area of work (ie, development of e-commerce sites) For example if it is a programmer/webdesigner for a company that does a lot of community

Re: [PHP] Global Variables -- why not have them?

2001-07-08 Thread Inércia Sensorial
You must learn it's way if you want to be effective. Also take a look at design features proposed for PHP5. Looks promising and more C++ like, so better compare it with the later one. I went to php.net and searched for some kind of docs on PHP5, but found not a word. Where can I see this

[PHP] Re: case sensitive

2001-07-08 Thread Inércia Sensorial
You could convert to lower case either on the record or on the retrieve, or update the curret data with a simple loop. -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/projects/toca prosite [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: url without a query string?

2001-07-08 Thread Inércia Sensorial
I am not sure if the header(); function still maintain the referer, but if it does: You could make the first link lead to any named page, like: gate.php On gate.php you put: header(Location: index.php); On index.php you put: if ($HTTP_REFERER == 'http://www.your_domain.com/gate.php')

[PHP] require_once(); questions

2001-07-07 Thread Inércia Sensorial
Hi All, I have a function that includes files based on some SQL queries. On one of the first loaded files, I want to define a function and use it on another included file. Something like: includes file: first_file.inc.php This file has: $test = Show me!; Then include file: second_file.php

Re: [PHP] PHP map?

2001-07-07 Thread Inércia Sensorial
That´s a great idea Susan. While I can't help you, I've never seen similar application, and I like it. Hope you can make it! :-) -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: mysql_insert_id()

2001-07-07 Thread Inércia Sensorial
I used this function with a BIGINT field once, and it worked. I guess problemas appear when it goes beyond an INT filed, or, the number you are retrieving has more than 11 digits. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca John Meyer [EMAIL PROTECTED]

Re: [PHP] require_once(); questions

2001-07-07 Thread Inércia Sensorial
I guess I know what may be wrong. My function that includes the files, it is called several times, with different arguments being passed. It is something like: function LoadPositionedModules ($posv, $posh) { // $posv is vertical position, and $posh is horizontal position // Inside

[PHP] Re: Number of the line ?

2001-07-06 Thread Inércia Sensorial
Doesn't work if you put ++ after the variable? 1 ?php 2 echo i'm on line $NUMBER_LINE++\n; 3 echo i'm on line $NUMBER_LINE++\n; 4 ? Or maybe: echo i'm on line .$NUMBER_LINE++ .\n; -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca

[PHP] Re: string formatting help

2001-07-06 Thread Inércia Sensorial
Maybe: $array = explode(br, $string); foreach ($array as $key = $value) { echo $value; } Would separate the string by br's and print all in one line. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca Chad Day [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Something weird

2001-07-06 Thread Inércia Sensorial
for some bizarre reason, almost every browser i've seen has the default option set to cache everything and never look for updates Connection speed. Cached pages load faster -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca -- PHP General Mailing

Re: [PHP] Something weird

2001-07-06 Thread Inércia Sensorial
ybe it's just me, but caches drive me nuts... i know... but IMO, i'll take a slight performance hit any day to make sure i get the most recent page... -Original Message- From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Something weird for some bizarre reason

Re: [PHP] Something weird

2001-07-06 Thread Inércia Sensorial
Kevin, we were talking about cache in an user point of view... :-D -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca Kevin Pratt [EMAIL PROTECTED] wrote in message 009f01c10655$b3558e40$0300a8c0@ouelong">news:009f01c10655$b3558e40$0300a8c0@ouelong... --

Re: [PHP] Something weird

2001-07-06 Thread Inércia Sensorial
Me too. Once I changed browser and took me days to find out why some pages weren´t changing :-) Does the header(); function returns some kind of true or false? Maybe we could tell users to don´t cache to show all dynamic stuff. I heard somewhere (not sure about this) that Refresh on meta and

[PHP] Re: changing to a different file in browser

2001-07-05 Thread Inércia Sensorial
header (http://www.example.com;); // Goes to example.com. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca Brad Wright [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I know this is probably the most stupid question