On 10/14/05, Cima [EMAIL PROTECTED] wrote:
hi all,
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server
and database along with some other stuff i need for the user to be
authenticated to my
On 5/14/05, James Williams [EMAIL PROTECTED] wrote:
On 10/14/05, Cima [EMAIL PROTECTED] wrote:
hi all,
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server
and database along with some
Well the reason it worked on my site is because my webhost uses linux,
and my localhost is windows.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi all,
I have only recently started to look at php, I hope this list dose not
mind 'noob' questions.
no we don't mind it, we do mind poor spelling though ;) jk
I have got 'Programming PHP' by Rasmus Lerdorf, Kevin Tatroe and 'Web
On 5/12/05, Clinton, Rochelle A [EMAIL PROTECTED] wrote:
Dear Much Needed Advisor,
I am definitely a PHP novice and making some code changes to a PHP
script.
I need to change a declared output file to include the date as an
extension.
My file is declared at the beginning of the script
hmmm, well... If I could see the code I could probably fix it for you,
the problem is everything changes depending on the context it's used
and how the class is setup. For example, it's poor practice to assign
values to vars when you declare them... It is recommended you assign
them inside the
, 2005 8:27 pm, James Williams said:
On 5/11/05, Richard Lynch [EMAIL PROTECTED] wrote:
Is mysql_real_escape_string *DIFFERENT* in some incredibly huge secure
way
that I want to stop working on all my current projects to go re-write
the
10,000,000 lines of code?
2 words: Search
On 5/12/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I want to create a script that displays all names from a database once per
second.
A part of the script look like this.
for ($i=0; $i$total_names; $i++)
{
echo namebr;
sleep (1);
}
The scipt works fine
I couldn't tell you the technicals of it, but just from the php documentation:
This function must always (with few exceptions) be used to make data
safe before sending a query to MySQL.
On 5/12/05, Richard Lynch [EMAIL PROTECTED] wrote:
On Thu, May 12, 2005 12:39 pm, James Williams said:
I'm
I just tried a couple of output_buffering on a test script I made and
it won't work... It simply waits for 10 seconds then displays
everything... Kinda sucks.
On 5/12/05, Richard Lynch [EMAIL PROTECTED] wrote:
On Thu, May 12, 2005 12:39 pm, [EMAIL PROTECTED] said:
I want to create a script
Okay... the difference is between Apache + PHP for windows, and Apache
+ PHP for unix... it works on linux / unix... but not on windows...
check it out.
http://www.jamwil.com/misc/flush.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, I made it work now, and I even got a cache built in there
(kindof stupid though, I need to make it smarter.)
I figured out to use the assign function to add the curly brackets, thank-you.
I'll look into the file_*_contents() functions, thanks.
On 5/11/05, Rory Browne [EMAIL PROTECTED]
I took a look at those functions, and file_put_contents() is only
php5... this needs to work w/ php4 so that's not an option.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/11/05, Richard Lynch [EMAIL PROTECTED] wrote:
Is mysql_real_escape_string *DIFFERENT* in some incredibly huge secure way
that I want to stop working on all my current projects to go re-write the
10,000,000 lines of code?
2 words: Search Replace.
--
PHP General Mailing List
Okay well I see I have reopened the can of worms lol.
This has all been done before, and I'm assuming that the James knows,
and has seen that before, since he used the same common method names,
as is in many php templating systems. $class-assign has been used in
any templating system I've
Hey fellas, sorry to infest the list with another question about a
templating engine, but I am looking for some professional opinions
here...
I am trying to make a small, fast, and simple templating class... Now
I have mastered the art of variable replacement, and have made two
versions. The
On 5/9/05, Rory Browne [EMAIL PROTECTED] wrote:
I made a second one, which reads the file into an array,
changes the variables the same way, but instead compiles the finished
product into a compile directory and then reads the compiled file back
to the page. the benefit to this being that
Hi everyone,
Thanks for your replies. I Think I haven't been very clear about what I
really need. First of all, I don't need an existing templating system,
because I am working on my own templating system.
And regarding Satyam's post. This looks a lot like what I'm developing
right now,
No
You don't declare variables in PHP. You just start using them.
Perhaps you mean assign? Since your example of
var = variableName;
is actually an assignment in Javascript.
In PHP you simply do:
$one_var = $another_var;
-Rasmus
You are however, when dealing with OOP
Ryan A wrote:
Hi,
a client wants me to add a forum to his existing site...which is not a
problem, the problem is he wants it to work off his existing site
eg:
once someone logs in to the main site they dont have to relogin or create
new accounts in the forum section
a one login gets you total
Ryan A wrote:
Hey James,
I've actually decided to go with FudForum as it has a lot of features and
everything that this project requires...and some that it does not :-), but
since its open source and free I cant really complain, once i get paid I
plan to donate a few bucks to support the project.
Hey fellas, I'm makin a forum right now and as a sub project, I'm making
a template engine / class. Right now all it does is variable
replacement, however I am curious as to how I can implement support for
loops and if statements. I would appreciate any ideas that you may
have, thank-you!
Richard Lynch wrote:
On Wed, April 6, 2005 7:04 pm, James Williams said:
Hey fellas, I'm makin a forum right now and as a sub project, I'm making
a template engine / class. Right now all it does is variable
replacement, however I am curious as to how I can implement support for
loops
Ryan A wrote:
Hey,
I was just wondering which is the best/most efficient way of having language
files for a site?
eg:
if $lang=english then it should include lang.en.inc.php
if $lang=swedish then it should include lang.se.inc.php
etc
One way I did it before was to have an array like so:
some sort of
system of replacing that code on demand, then write that code that
implements your system. a little difficult, and out of my scope, i'm
sure. unless i spent two weeks with minimal sleep.
drew
On Apr 6, 2005 9:37 PM, James Williams [EMAIL PROTECTED] wrote:
Richard Lynch wrote:
On Wed
God damn it this is really startin to piss me off...
On 3/17/2005 8:22:17 PM, freshersworld .com ([EMAIL PROTECTED]) wrote:
Hi All,
This is a very interesting website.
Visit www.lifenit.com
Also I can refer one more sebsite for you..
www.merchantii.com
Hope these were Useful.
Rgds,
Ryan A wrote:
Hey,
I am looking for a software that just lists adverts...
eg:
Like ebay but without the bidding
Requirements are simple, so simple that i am sure something like this exists
and i dont have to write it myself:
0.They must register first then...
1.offer the person to put in his ad
I agree entirely... *down with bansalsetech.com*
Ryan A wrote:
here here - I thought It was kind of humourous, I also bare in mind
that these guys in the far east are just trying to make their way in the
world too, they are at a disadvantage with the language also. besides
which there is a quite a
What's up Ryan, I do believe that the cart software you choose should
for the most part be independent upon what exactly your selling. There
are a few big shopping cart solutions that work for selling anything and
I'm sure there are features and / or plugins that will allow you to do
Eli wrote:
On top use this:
?php
$mtime = explode( ,microtime());
$starttime = $mtime[1] + $mtime[0];
?
On the end use this:
?php
$mtime = explode( ,microtime());
$endtime = $mtime[1] + $mtime[0];
echo \n\n\nhrb.round($endtime-$starttime,3). sec/b;
?
If you want a nice object oriented solution
rory walsh wrote:
Can anyone tell me if there is a difference between double quotes and
single quotes? Cheers,
Rory.
What's up Rory... actually there *is* a difference. Double quotes are
parsed by the php engine, meaning it goes through and finds variables
and stuff which it can parse, ex.
Mark Charette wrote:
Evert - Rooftop Solutions wrote:
I heard that shared memory is actually slower than writing and reading
a file and it is not available on windows systems.
Hmmm ... that's an interesting thing you heard concerning shared memory.
Care to share _who_ told you that?
I'd like
Howdy! I've made a class which simply determines the page generation
time of a php script... After pretty much an hour of straight examining
the code and trying tons of different things, no good has come of it,
however I can't find an error... anywhere.
?php
class page_gen {
//
Hey guys, I'm coding a forum right now and I just decided that I
needed to code some variable replacement to create a simple template
system. This is the code I have but it doesn't work
|?php
$tpl = file
34 matches
Mail list logo