It will fail if the first line is a blank line. For example (numbers are
line numbers):
1.
2.
While:
1.
It should work...
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"Ha Minh Nguyen" <[EMAIL PROTECTED]> wrote in message
006701c12bbd$49a2bda0$[EMAIL PROTECTED]">n
uot;O usuário $login_usuario não foi encontrado.\n");
}
?>
--
Julio Nobrega
A hora está chegando:
http://toca.sourceforge.net
"John Meyer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
At 05:14 PM 8/17/01 -0300, Inércia Sensorial Trabal
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
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["si
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 PR
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 type
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 m
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
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:
http://www.go
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
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
00dd01c1203b
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" <[E
Hi All,
I used to run a customized version of Php-Nuke (www.phpnuke.org) on a
server that had PHP 4.05, Linux and Apache. Used to run fine.
Now I am trying to run the same, just downloaded and uploaded to the new
server, but it is a Windows, IIS, with PHP 4.0.3pl1. The phpinfo(); of the
ne
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 man
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: 1
"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
>
Use the source, Luke!
Okay, not quite easy. You have this option to accomplish multi-uploads.
But, as an user, I think it is better to have only one Upload Field, and one
browse/submit button.
When I choose a file, the page is reloaded, with information about the
file I just uploaded, and
"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
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
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 PROTE
Escape the double quotes inside the
echo "Your feedback has been sent to mailto:$address\";>$name";
--
Julio Nobrega.
2B||!BB - That's the question.
"Steve Wright" <[EMAIL PROTECTED]> wrote in message
02c401c119db$b76a1700$0615fea9@COM">news:02c401c119db$b76a1700$0615fea9@COM...
Hey, i
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
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 (htt
Search Engines, usually, do not see individual frames. Not even Google,
the (IMHO) best and largest one, do not.
For example, if one page link to page.php and this page uses frames, and
the search engine robot crawls to page.php, it will not index the individual
frames.
You can, however, e
It is a great strategy if you have such client.
I know of Amazon.com is using in some parts, processes on the background,
and also Epinions.com. I believe their (epinions) template system is based
on php.
If you wish, the 3rd largest brazilian 'portal', www.ig.com.br, also uses
it. It gets
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]...
>
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:[EMAI
echo '<'."?xml version=\"1.0\" encoding=\"UTF-8\"?".'>';
Also, you may set short open tags off so php is only activated between
.
--
Julio Nobrega.
Because happiness is a warm gun
Bang-bang shoot-shoot
"Daniel Rose" <[EMAIL PROTECTED]> wrote in message
004301c10f49$a9b18fe0$0a01a8c0@w98"
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.
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 impossi
Spaces or new lines can give this problem also. For example (left numbers
are lines):
1.
2.
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
Bang-bang shoot-shoot
"Tom Ma
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 m
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:
> M
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
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:
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 PRO
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)...
Reset
--
Julio Nobrega.
You're asking me will my love grow, I don't know.
"Brandon Orther" <[EMAIL PROTECTED]> wrote in message
01aa01c10be5$5d32ef40$5a52a04
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
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
"El
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 c
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 t
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
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,
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
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 we
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:
http://sourceforge.net/pr
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')
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 PRO
> 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
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 it
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]>
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]...
>
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
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
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...
te in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> maybe 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-
> &g
> 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
Maybe:
$array = explode("", $string);
foreach ($array as $key => $value) {
echo "$value";
}
Would separate the string by '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
[EM
Doesn't work if you put ++ after the variable?
> 1 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
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 questi
60 matches
Mail list logo