hi ive installed a server apache on my linux distro added php but i have some problem It seems in my php page

okay thanks [fields] and kthulho

md5 is a 128 bit hex number

/msg php-bot tor

afaik
BlankDenim:

hm, anyone want to help me build a game?

game of life?

I've already got most of it done, I just need some help on a part.

=D

I guess I could get input from all of you

What kind of?

A kind of dueling game
yuo challenge other people
then you start fighting with them, in real time

Web based online rpg, or something like that?

yep
ajax, with a php backend

E 83@ AB0@0 :0:

I'll explain what I'm having problems with
yes, I dont speak russian

Oh, sry

sorr
sorry*

lol

hello

Hi
but anyways
What you do, is there is a list of other users that are on

Can you do a file upload with ajax without using an iframe?

I don't believe so, no

then next to each user is a button, that you can click to challenge them to a duel

need a suggestion… I need to send a remote php script a command from another php webhosting script. While it isn't essential that nobody is able to execute that command, I would like to know what would be the best option for me to send that command encrypted,
without using SSL

there is another list, where it shows all incoming challenges
now, next to the names in the challenge list, there is an accept button
I was wondering what to do after this
when you accept, how should the fight be initiated?

I was thinking of doing something like md5ing the command on both sides with a string set in the requesting app and in the receiving app

md5() is one way
Maybe use mcrypt() ?

is there a toupper function in php

anyone have any thoughts for me?

$output = toupper($input); ?

how can i change "$1,000.00" to "100" ?

strtoupper()

how can i change "$1,000.00" to "1000"

thanks man

kthulho, want to help me?

Mark, I would like to, but then I have two issues 1) some servers do not support it 2) I have some problem encoding the character for making the request via curl

You can change current player state to "fight"

yes, but I dont know how to get the other user to start the fight

hi

I already have something like that

Change his status to fight
reportingsjr:

but then what?

can i anyone help me on this

I already did that =\

how can i change "$1,000.00" to "1000"

I mean, I dont want to send an extra query every x seconds..
that just wastes bandwidth, which is rather precious in my case

Hmmm

see what I mean?

It's http, i can't see another ways to do that

how can i change "$1,000.00" to "1000"

so, I should just query it occasionally?
alex, why?

The user comments at php.net/mcrypt have a number of alternative solutions, might be worth scanning them

because i need to do an validation on 1000 = 1000 then do something

ok
that should still be an int
just use the int thingy before it

hmm

alex^_^: $out = (int) str_replace (array(',','$'), '', $input );

like if(int"$1,000.00" = 1000..

that would give it a worth of 0

hmm
let me try

echo "this is my $var"; works right? it'll print var's contents?

You must send query every x seconds. You may make this process smart, but its only way. Server cant just send you a query. Sorry for my english

echo "this is my ".$var;
but yeah, that'll work.

Your english is fine
and ok, I still need some help though

thanks

that wasnt the whole problem

but when i want to insert it to database i only want it to "1000" not "$1,000.00" though

and use 's instead of "'s so the parser doesn't try to interpolate the string needlessly

alex, try the number_format function?

one benefit of the way I suggested… if your editor highlights php syntax, the $var will stand out.

sweet, thanks!

You can read only state from db, for examle. That willn't make traffic

yeah

*won't

that would reduce it
but, how would it know it isnt already in a fight?
like, once its accepted

number_format() on "$1,000.00" ?

how would it know that its not already in that fight
yes alex

Hmmm

most of the games in browser arent this complex
lol
but this just makes it more fun!

See, one player(1) accept fight. Both of players has changeState to 'fight', (1) and (2) read their statuses and if there not in a battle(or not dead, etc) there 'relocate' to fight. In fact battle starts when (1) accept it.

yes, but i need to know when the fight starts
so I can set the timesouts and such

8 o'clock
Battle starts when (1) accept it

wait

Nevermind, when both of players will see battle html

maye instead of the fight status
have like
fight_started
then each user updates it to fighting, once they have all the loaded js
but actually fighting is another story

Ah, you mean that you need to wait when both players load their js?

well
what makes them actually fight, is the ajax callign a fight
calling a move thing
so you like, stab them one round
and its hitpoints based
so you can hit like 0-X number
and it will subtract it from each users hitpoints
then when one user gets down to 0, it ends

and?

and what?

why when I try to send a url with a query string with curl, some of the fields become things like feedcommand_enc=\xba\xee\x94\xba\x10\xa6\xc6\x96W?

I think that battle must be like that:

here, you should check it out so far
http://play.rsbattlehelp.com/

Wait a min, what means "what makes them actually fight, is the ajax callign a fight"

well
accessing a page that generates a move
you see?
and, depending on what the person is wearing
they attack slower, but get hit less

Ah, if only not that stupid language barrier…
Well i think that browser must check current state and do some animations/load-reload pix
information about player move or hit) or "trade state" etc
All other is server-side

hm
I need to make a function for each fight
and they cant move
this is all text based for now
although, I was trying to do 2d
but it was all messed up
couldnt figure out what was wrong with it

I had a project to do a web-based rpg like "final fantasy advance"
long time ago

well, 2d with javascript is really slow
I mean, computers are getting faster
but they still have some improvements before 2d js
although I hope to be one of the first to make a 2d game with all js and html
morpg*
I'm gonna make this an open source game
minus backend…
let the community build on it

community build?

let the community add to it..

Aa, understood

help code it
ok
sound like a good idea?
I think I can get a decently sized community around this

there is no good opensource engines for web-based rpg with ajax

are there any at all?

You can make one

I dont plan on other people using this..
hmm

-
I mean hmm

ah, I think I have to make a new equest for this

"I'm gonna make this an open source game"

its open source
just, you cant take it

javascript source?

open source in that, other people can add on to it for me
but I will put it under a license
and shut down any site that tries to steal the script

You want to make isometric-style battlefield?

no
text-based
as stated before
I would like to eventually make it 2d top view though
I know how one major game let people walk around though
its ingenious

?

well, it was going to be click and move style
and what you do
is when the user clicks, the click on a grid
and each square in the grid is like 100×100
then what you do is find the square that they clicked on, then they move to the center of that square
but, you can find a number for it by dividing the x and y its at by 100

Are there web based archives of this channel?

so like, 100×100 would be square 1,1
and you can check for collisions then
do you see?

yeah

its smart isnt it
way less load you need
hmm, said that wrong
way less load on the game

can php evaluate a function in double negatives, if a function either returns false or a variable, would if(funct($arg)) { //true } evaluate as true
rather than checking for return true could it assume true if it hasn't returned false

can someone suggest a good php mysql book? im at borders right now.

If "false or variables" then nope.

there is true (= for numbers and strings and a strict true (== for boolean variables in your case - i don't like that

kthulho, then could i do $result = funct(arg); if ($result != false) { //its true}
$arg*

Oh, i misunderstood. True and variables you need as true? (sry for my english)

mbrady check amazon?

kthulho, well i can only use return for one thing, the function can either return an array or false, the part of the script that uses the function needs to make sure that the function worked

hi

hey guys

sup

then $result = funct(arg); if ($result != false) { //its true}

cool

blah what a day

Well, a going to sleep, bb

hey is there anyone in here that knows the php web hosting date function well?

*i
Well, i'm going to sleep

or someone that could help me with an if statement
its really small, like 3 lines

dont't use (2) == use (3) ===

Hello all, I am using require() to include some headers, one header has regular expressions I commonly use but when I try call them from another page eregi says the regex string is empty, anyone know why?

ive got a series of if statements to change the output of a date
to like, this afternoon, this evening, yesterday etc.
im just trying to add one, so that any date before yesterday gets outputted as "$n days ago"
so if it was the day before yesterday it would read "2 days ago", the day before that "3 days ago"
if anyone can help that would be great, im really stuck on it and need to get it done asap

what specifically are you stuck with?

hire a programmer

a programmer?
for 3 lines?
lol
just the syntax really

and what kind of date format do you have it in? a unix timestamp?

no i think its yyyy/mm/dd

Is there any function like days_since($somedate) ?

ill show you what i have so far

o joy

www.devit.com.au/date.txt

yes it's called strtotime(), time() and math

cool
reading the link absolutelyloki posted

is there any other config option other than error_reporting level that will stop errors from displaying?

its really simple

i have error reporting set to E_ALL and errors are still not displaying

yea, display_errors setting in php.ini which you can get around with…

yes thanks ,just found it

you can enable it in one script only using ini_set

oops there was a variable in there at the top that shouldnt have been there hehe
im just not sure what argument to put in the if statement for it
and somehow ive got to get the current date aswell to see how many days prior it is

That'd be something like floor ( ( time()-strtotime($date) ) / 86400 )

Oh my

the result will be 0 for less than a day, 1, 2, 3, and so on

kthulho, would you like to be a parent with me on my game?
oops
partner*

I've checked the link you posted. If there is a date 06-23-2007 and we compare it with 05-27-2007 using that function in the date.txt file, we get a 4 days difference but not the *real* difference

can i unhash a has if i use hmac?

hmm

how do i check if a str is a interger

is_int

th

is_int()

and it returns as a?

Bool

returns true/false

ok thanks

is it possible to unhash a hash? i thought thats how google checkout communicated securely

You can't unhash a hash, it's one way. (sans brute force rainbow tables etc..etc)

hi anyone has used pgestraier
or hyperestraier
i am able to run pgestraier using perl pgestraier.pl urldb –create n_pattern
however the index crashes at 1.5 million records
i have 5 million recs in posgtresql

MarkL, thanks

devinderbhullar, if I'm not mistaken, you're in the wrong place. This isn't a channel for perl scripts or postgresql support

Tried #perl or #postgresql ?

thanks

blah
still cant figure out the easiest way to do this
would i do a $today = getdate();

Does this help at all? http://pastebin.ca/667558

greetings
to load sqlite2 pdo support, is it pdo.so, pdo_sqlite.so, or sqlite.so?

what's the best way to do that?

hmm that kinda look right

what do you mean

*looks

i need to get $num and use that as the digits for the counter using digit images, but if its not the full length of strlen($count) then it needs to add 0s in front

I would loop from $num to $count, and echo the code while replacing the #.jpg with the current index?
so is your issue on how to loop or how to add zeros?

huh?
can u give a code example?

how to add the zeros to the begining

i was think str_pad

yeah
that should be it

then do $img = img src="img$num[0].jpg"

I'm still trying to figure out an elegant way to do it but I think I will have to do all the dirty work after all. I mean making an array with number of days per month and all that

and thats your solution

kinda long solution

hmm
anything wrong with this, it isnt working, i think bc its a number its taking the 0's off…
$fullnum = str_pad($total,$numdigits,"0",STR_PAD_LEFT);

total noob here, was wondering if someone would be willing to help me with a simple mailing list subscribe/unsubscribe script and forum

use phpbb for a forum :P

Anyone want to be a partner with me making my game?

sorry wrong word, its a form

thanks mate!

if that is your issue, then try typecasting $numdigits to a string, like so: (string)$numdigits

nm

would it be any different for secure unix web hosting timestamp?

got it
sweet
thx

uh?

to load sqlite2 pdo support, is it pdo.so, pdo_sqlite.so, or sqlite.so?

say*

lol you said you were figuring it out or something, just being polite

is there a function that turns KB into MB or would i just have to use *1024 and sprintf to make it to 2 decimal places ?

www.devit.com.au - thats what ive got now, and it works
but what would i have to change to use a unix timestamp?

yeah, I'm trying some ways to make that function since I don't know how's the built in function's name for that (if there's any)

ok cool

can somebody help me loading an extension? 'ive moved the .so file to the correct path, inserted that path as extension_dir and appended extension=blah.so in php.ini but even then it's not working…

ah yeah it does use a unix timestamp
1187839528
5 or

file and make sure you're editing the php.ini file that's mentioned at the top and using the extension_dir that's also mentioned

how come a command like "sox file1.wav file2.wav output.wav" works fine in ssh but doesn't produce my file when using shell_exec() ?

MarkL, i've checked that and it's all right

endr[a]: pdo, then pdo_sqlite, then sqlite
What extension is it out of interest?

MagickWand

[fields]: Use full paths to everything as they might not be in the web server users path, /path/to/sox etc..
Anything in apache's error log?

would i just have to run a command to turn the unix timestamp into a normal one

Turn it into a date? date() does that :o

best thing to do. Use time() instead of date. Get seconds, with seconds get days, then weeks and stop there to keep it acurate

Markl, bingo! it says that's a compilation problem! i'm gonna try to fix it

np

i've already looked at the error log but i didnt saw a thing
lol

http://php.net/manual/en/function.time.php#70637 might help too, does what Lisper suggested

thank you
but, I get this: Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/php/pdo_sqlite.so' - libsqlite3.so.0: cannot open shared object file: No such file or directory in Unknown on line 0

[postgres@arch bin]$ ./postgres –version \n postgres (PostgreSQL) 8.3devel
time to play
8.3 has some nice features versus 8.2.4
endr[a]: uncomment extension=pdo_sqlite.so
er
comment

MarkL said I needed that for sqlite2

endr[a]: then install sqlite2
:P

I have sqlite2 installed
The issue is it tries to load sqlite3 as well
But I only want sqlite2

endr[a]: then specify the location od pdo_sqlite.so
of*

.. it can find pdo_sqlite, it can't lo.. never mind, I'll just install sqlite3

extension=/path/to/my/pd_sqlite.so
updatedb && locate pdo_sqlite.so

it can find pdo_sqlite.so, it can't load it because it tries to open libsqlite3.so
Problem solved, using sqlite3. Thanks.

hmmm
why would this not work - www.devit.com.au/date.txt

You have an error
Use if ($diff = round((time() - strtotime($the_date)) / 86400))
{
You currently have if ($diff = round((time() - strtotime($the_date)) / 86400)

still not working (

hi

You can't compare a formatted date like that, if ($the_date 12) …

Is it possible to rewrite the url without changing a page? I use ajax on my website
so when you click on a link
only the main content changes
and i'd like to change the url (without reloading)

it says this morning

to be able to refresh
and not returning to the index

it should be like 1300 days ago

can't help with that atm. sorry :/

for maintaining history in the browser?

I'd like to show you but my stupid router won't forward port 80..
in fact
my links look like this
go('content','div');

Did you look at http://php.net/manual/en/function.time.php#70637 ?

are you using a JS framework, like prototype or jquery?

prototyejs
but it is not needed
in my ajax script

you should be able to find a history tracking plugin for prototype

looking at it now, so should i start over again from scratch?

the headers are never modified, only my main content div is
is history still saved
if i change content via ajax ?

you would use soemthing like http://localhost/mypage.php#page1

Might as well

No i don't use frames

they don't necessarily have to refer to frames — they can be interpreted by JS and load content dynamically

hi all!

darn i'd like to show you so you could see

but how would i do the morning, afternoon and evening bits?

what I mean _

how do i get my current local ip address in php?

i thought of making an extension to my JS script that would record each last view
but i'd be a pain
i'll look into that history tracking in protojs
thx

yep

That function above will return x hours ago for example if it's less than a day ago, so just tweak it to say morning/afternoon etc

anybody know any decent text captchas?
that doesn't use image processing?
but more ascii imaging

$timestamp = strftime("%y/%m/%d %H:%M:%S",$date);
is that the right way of converting?

can someone check the form / php script here and tell me if there are any obvious mistakes: http://rafb.net/p/fwG7Nk84.html

yea give me a sec

No
Use strtotime() to get the timestamp for a properly formatted date string

This CMS ticketing system(which at it's core is just e-mail communication) doesn't support POP3, only IMAP4. and all my company uses gmail. How hard is it to whip up POP3 integration for a CMS like vtiger(fork of SugarCRM)

wow you have alot of errors let me fix it up for you

ok thanks

How man lines of code about, for POP3 support.

I'm a a noob

so $timestamp = strtotime();
?

See http://pastebin.ca/667558 for an example

yeah but will it work if the date is a unix host timestamp?

http://phpfi.com/258041

If the date is already a unix timestamp then don't bother using strtotime()

you didn't insert the values correctly for the first query
so you had problems with quotes

yeah its already a unix timestamp

ah ok

Then you can do $diff = round((time() - $date) / 86400);

i'm having hard time to solve this compilation problem.. apache error log tells "PHP Warning: PHP Startup: U\x89\xe5VS\x83\xec@\xe8\xb3e\x03: Unable to initialize module\nModule compiled with module API=20020429, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0,
thread-safety=0\nThese options need to match\n in Unknown on line 0

"
i know the module is the module that i'm trying to install

Check your cli version of PHP matches the apache module version, 'php -v'

MarkL
http://pastebin.ca/667590

If $date is already a timestamp then you don't need $timestamp = strftime("%y/%m/%d %H:%M:%S",$date); .. that doesn't do what you think it does anyway
Hold on, let me knock an example up for you

ok thanks! im getting a bit confused now lol

so nobody got any good text captcha?

my cli version is 5.2.3, how may i see the apache module version?

phpinfo()

thanks for the help Sno

guess I'll make my own…

60 or whatever argument it had to be converted from unix?

no problem

60 is comparing minutes etc, a timestamp is the number of seconds since 1970, so it's bound to be over 60

checked google? http://www.google.com/search?q=php+ascii+art+generator

this one? "Apache API Version"

http://www.figlet.org/ — written in C, just make a system call

so where does that leave me? lol

Nope, at the top, PHP version

yea I saw figlet yesterday

PHP API

somebody already made a phpfiglet driver
so I figured I'll just make a captcha with that
3 phpclasses

20041225

+1 sno

thx

ah, cool

+1 for what?

That's older than the cli version. You need them to be the same api host version for the module to load

reckon you could point out in the paste what you meant? im a bit confuzzled

sno, for php host classes

ah yes. I love that site so much

Run http://pastebin.ca/667594 and see what you get
The timestamp you are using, 1187079740, is about 1 week ago

You about?

MarkL, now i'm stuck… how may i fix that? i can't even saw why 20041225 5.2.3 :P

How was PHP installed? Source or package?

source
i'm on osX btw

1964 weeks ago

Sounds like you need to recompile the apache module then.
As it was compiled using an older version

humm okay i'll try! thkx

What does echo $date; output? Sure it's a valid timestamp?

ok ive got it outputting 1 week

man now I have to code my own custom session handler… damn…

if i dont want to start putting it into weeks, can i just take out the end week argument part?
and have it output like 143 days or something

Yeah
http://pastebin.ca/667597 is without the weeks

hmmm
dosnt work

!+doesn't work

Look buddy, doesn't work is a strong statement. Does it sit on the couch all day? Does it want more money? Is it on IRC all the time? Please be specific! Examples of what doesn't work tend to help too. Finally, showing us the code is helpful (after you've explained your problem). /msg php-bot
pastebin for more information

Works for me, outputs '7 days ago'

20041225 == 5.2.0
Just to answer the question

ah i get 9 days ago

Sounds right to me

To get the "YYYYMMDD" version of the PHP API, "phpize -v"

hey guys how can I easily generate a random number between 1 and 100 (including 1 and 100)

I made a small download counter, and after my mysql stuff, I need to start the actual download. I wa told to use the "header" function, but I keep geting an error that i cannot modify the header informatio, headers are already sent

so how should i put the morning afternoon and evening functions in?

rand(1,100)

Use mt_rand

12 or something?

okay thanks
not what InuZule|afk said?

mt_rant(1,100) is better. more random.

You mean 'this morning', 'this afternoon' etc?

mt_rand is a better version of rand

okay thanks
thanks TML

Yep

!+headers

Cannot modify header information - headers already sent by (output started at /path/file.php:1)" it means you've got some output before your header() call or starting a session. *No* output can be sent. that includes whitespace (outside of php and ?) and any (X)HTML. You can also use output
buffering

You'll need to put it in the if($difference 24) bit as that means it's less than 24 hours ago, then in there work out if it was the morining and afternoon

and so one day prior would be yesterday, not 1 day

That was for you

hmm

thanks, I know it was for me

would i have to get the current date from somewhere?

http://pastebin.ca/667600 is an example that will do 'yesterday'

its strange tho, cuz line is just my php line
maybe i need to check out output buffering

what does 2 do?

if($difference 2) .. says if the number of days difference is less than 2 then it must have been yesterday

ah i see!

It can't be 'today' as it doesn't get that far if it's less than 1 day difference, it outputs hours in that case

if we are working by hours now, how do i get it to recognise the time for morning etc.

You probably have something before the 'php'

TML, its very strange, because if I put my php at the beginning of the file, outside all of my html tags, it wants to download the file, in the browser

Call to undefined function mt_rant(), did I spell it wrong or what?
I did mt_rand(1, 100);

coz if its looking for an amount of hours prior to the timestamp, it will be costantly changing as the day goes on

That's more tricky as if it's now 2am in the morning, then 4 hours ago would output 'this evening' .. which isn't correct, you need to decide the rules for yourself.

The header() call has to comebefore any HTML

function mt_rant() - that's rant, t at the end

s/comebefore/come before/

can it be a set time?

Is there a way to get around captcha ?

TML, if I take out all my html tags, the browser wants to download the file.. not run it

ohh…wait, it's mt_rant??

Of course.

Using fancy image recognition, sure, but that defeats the purpose of them

isn't it http://us.php.net/mt_rand

TML, What ?

OCR
What makes you think downloading it isn't running it?

Call to undefined function mt_rant(), did I spell it wrong or what? - that's how you spelled it, maybe it was a typo

ohhh I spelled it wrong haha
thanks!

TML, Any PHP Scripts.. or link you can kindly let me know../

No

TML.. a download prompt comes, wanting to download the file

You could use date('a') and see if it's am or pm .. but that won't always work

That would run contrary to the purpose of this channel.

TML, Okay!

That doesn't mean it didn't "run the file"

so then im pretty much stuffed lol

Maybe you'd better start over by explaining what you're trying to do

TML.. hmm.. so it maybe that my header() call is wrong, and causing the download?

Not really, it's just more code .. you need to compare against the current time() and do some calculations
See if the difference in hours takes it past midnight etc..

yikes, ive only just understood what you were doing before - this should be interesting lol

TML.. making a download counter

Do you mean making the PHP script generate a dynamic image?

is it a gettimeofday thing

TML.. no.. the php script counts, but then I need to actually start the file download

Nope, just time(), date() and strtotime() should be al you need

hmm - gateway script… think it is called that

Isn't that exactly what it IS doing?

I want it to download a certain file tho.. not the php file itself

What's the equivalent of sprintf(perl) in php?

sprintf

hehe

lol
k
thanks :-p

it's a little easier to concatenate strings in PHP if that's all you're trying to do

anyone here use eclipse?

me

you know how to get the alerts and notices to show up in the editor

TML.. it prompts to download the php file, not the $file itself, that I pass to the script, and it does reveive it properly, because the table in the DB shows it

am i going to need to count down how many seconds before midnight it is or something?

smokestack asking you…

you mean warnings and notices?

ue
yes

Well, if it's 2am now and the difference in hours is greater than 2 then you know it was before midnight, i.e 'last night'

there's a debugger for PDT, but I don't have it set up
it should all be documented

7 then you know it was 'this morning' etc etc

smokestack nee.. im talking about something else… not running the code

pastebin your code

butlike if you have an undefined variable you using in the code

TML.. sure.. at least I got rid of the header error now.. just not downloading the file

it will underline it in yellow

do you think by any chance you could show me how id go about doing one of them? - if you have the time, from there on im sure i could manage
this is the first time for me using the date function, and ive gotta have this done by the end of the day

if you mean syntax highlighting/checking, install pdt: http://www.eclipse.org/pdt/

Ah, I would do normally but I'm in the middle of my own maths stuff right now.If you're still stuck later I'll type something up though

that would be great, im not normally made to do these things - im in the middle of redesigning the brisbane council corporate website, but they have noone else here and theres a deadline to meet

TML http://pastebin.com/m57d53e84

if(preg_match('/tmp(.+?)\/tmp/',$page, $1)) { — That line gives me a parse error for some reason.

what's the error say
just a generic parse error?

parse error, expecting `T_VARIABLE' or `'$''

the error may be above that line

That's the line.
preg_match('/lsup.+? (.+?)\\/lsup/',$page, $lastup);
That's above it.

$1 isn't a valid variable name.

Ok.

The first character of the variable name has to be a letter or _.

That worked. Thanks.

smokestack i have pdt installed

ok

i get like errors highlighted

the most universal unicode setting in MySQL is… utf8_unicode_ci ??

like if i dont have the ;

Don't pass the full path of the file as Content-Disposition's filename
It should just be a filename

right

at the end or something like that…. but not warnings
and notices

ok.. let me try that

filename=foo.exe

the parser generates warnings/notices — you would have to use the debugger if you wanted that

mmhm.. I understand.. trying

how many includes do you guys generally use for large scale applications?
rougly speaking

And to the browser, it will look like the PHP file itself is being downloaded, but if you look at the file, it should be the thing you wanted downloaded

would you do it if i payed you? lol

Nope

maybe anywhere from three to five for me

TML.. then why is it naming it the name of the php file? it should be shown as the actual filename, should it not? Or is that another header() call?

what about class files?

awww lol

assuming you have 20 or so class files

TML.. you are correct tho.. it is the actual file, just the wrong filename

Depends on the type of application you're going for I guess, I've never had 20 different classes but maybe I've never coded anything /that/ huge

since that fix

at least, not 20 I needed at once - more specifically

Some browsers will try to name the file based on what's in the URL

TML.. is there a way to fix that?
cuz obviously, people will see that file, and go.. "huh"

ok. i have - base, session, module, database, dataobject, user, ajax, errorhandler — granted that's only 9 but i use various other ones throughout the app
then i have a fairly large functions file (which is actually compiled when in production mode out of 30 different function files that extend PHP's functionality) - so basically 1 big function file out of a ton of others
but these includes are killing me

Content Disposition in your code, it should be hyphen'd, not a space.

i have 19 includes in my main file - i could drop that number but then i won't have an easy to understand dir structure

Good catch.

oops.. I missed that.. thanks InuZule|afk.. checking again

My eyes are too tired for stuff like that

that's not including the 1 module include to load the module and maybe 1-2 includes inside of the module itself

http://pastebin.ca/667614 is along the lines of what you want, but I'm tired so it might not work out of the box :o

perfect..!

I've seen browsers sometimes just do the wrong thing for reasons I never managed to figure out

not sure what I'd advice, I'm not the wold's best coder :P

thanks so much InuZule|afk and TML
typo's always sting ya

or typer, it seems. *world's best

hehe.. thanks so much tho

heh, so many times.. I usually kick myself for hours over a typoed variable more than anything

well, a silly hyphen tho.. soo soo easy to overlook

at least on the one hand it's well structured, I'm not sure how much include / require impacts on a script vs having it all just one big script

thanks ill give it a shot!
will it still work without
$difference = round($difference / 60);
if($difference 60)
return $difference." minutes ago";
else{

remember to use pastebin for more than a line of code

No, it needs to go seconds-minutes-hours etc ..

ah ok

The 60 only comes into play if it was less than 1 hour ago

ok thanks alot for your help!
0 this afternoon and it returned last

And what time is it where you are now?

3:03pm

I am reading a chapter of practical php programming on running php scripts. http://hudzilla.org/phpwiki/index.php?title=Running_PHP_scripts The book says you have to convert to /n when moving scripts between the CLI
and browser. Shouldnt this be handled automatically?

Hmm, that would be a difference of 2 hours and it should do 15 - 2 .. which isn't less than 0 ..

would it be using the time from my web server?

Of course

lol
im a dick

:o

wouldn't say so. PHP just outputs what you tell it to

lol @ crackintosh

morning :P

noo, it can't be that time of day already

It's 8 am in greece :P

6am in the UK, just noticed :

oh yeah, didn't notice the time either, it's 1187845939 here
er .. 6am

lol

That was nerdy :P

echo 'I know';

Nothing better than a good laugn after you wake up.
*laughner
*laughter

Where in the UK are you?

Scotland, highlands

Ah, I'm in Manchester, but born in Clydebank

woohoo, a fellow Scot here

aye

can someone suggest why this code isnt rendering in my browser properly? I am very new to php and have never been able to see the output of PHP code in a browser. What am I missing? http://php.pastebin.com/m40d4a630

Does a simple test file like this work ok? php phpinfo() ?

hello my niggers

if you want line breaks, you need to use rather than \n (or \n, whatever you prefer).

turbolover-: As digger say, welcome to my ignore list (if opera had one.. anyway)
*diggers

you're ircing with opera? hahahahaha

im developing on a mac so i'd assume it would have php installed. is that a correct assumption?

turbolover-: irc is not a verb

When you say " rendering in my browser properly" what do you mean. It dispays but incorrectly or just a blank page?

foutrelis no it isn't, ircing is

i.e have you had any PHP files working yet? Or is it just this one that's broke?

it displays the code exactly as I have written it.
it displays exactly as pasted in my pastebin

How are you accessing it? via http://localhost for example ? Not just using file:// are you ?

I have tried viewing in safari and firefox
I was using file

Ah, try going to http://localhost see what outputs, if anything

foutrelis are you a pitch black nigger, or does your skin tone resemble shit more

Displays the same

is your nose gorilla like, or is it more chimp like

turbolover-: I won't continue arguing with you.

Sounds like you don't have Apache and PHP installed, check that first

sorry to bother you, its still saying this evening running locally :P

hey from irssi

I know that I have apache installed
and php :-)

woot, irssi! (I've never actually used it :o shockingly enough)

And apache is started ok?

I needed an ignore feature that Opera didn't have :P

I like opera being the swiss army knife of browsers, but it's IRC features could use a little extra

yes i can get a directory listing on localhost
and if i goto http://localhost it says apache
is anyone else running on a mac

And your file is at http://localhost/test.php or similar?

http://localhost/~crackintosh/phpinfo.php

can you think of anything that could be stopping it from woring?

And what does that show? Just the raw PHP code?

Night all

Yes.
as depicted in my pastebin http://php.pastebin.com/m40d4a630
word for word
it is strange.

You'll need to debug it by echo'ing out $diff, $difference and $hoursnow and see what they are set to
Sounds like a configuration problem, sounds like the PHP module isn't loaded to me. Check httpd.conf if you can find it
In there it should mention LoadModule php5_module or similar

This is weird, it says I am on php4 for mac apache
and on top of that, its commented out!~

Where does it say that?

i dont think diff is getting anything saved into it

Paste your current code with the debugging in it

hmm id better make sure im putting the echo's in the right place first
where abouts should they be?

httpd.conf
#LoadModule php4_module libexec/httpd/libphp4.so

After this line: $diff = $hoursnow - $difference;
Remove the # and restart apache

its just printing out the timestamp

ok, paste it

:P

is there some way to interrupt a sleep call from an external event?

Nope

http://pastebin.ca/667632

or any way to simulate such a thing? to idle in some way, until some event happens?

What version of PHP ?

whats the line to run to find that out again

would function cs($command,$message,$aonly=true){ make $aonly=true; unless otherwise specified?

php phpinfo() ?

Apparently mac os x runs php4 and apache 1

Not sure if ticks will do what you want. http://php.net/manual/en/control-structures.declare.php#control-structures.declare.ticks

PHP Version 5.2.3

Yes

ok, thanks

You have echo $date; .. that should be echo $difference;

13215this evening

Works ok for me, says 'this morning' which is right for me

Hi.

it output 13215this evening - is that right?

3 in the afternoon where you are?

1
0am -
0pm -

is it possible to remove all ' out of a variable?
Single Quotes
This is an emergency, lol.

'this evening' is correct for that code, I just never bothered with 'afternoon'
am is 'this morning' and pm is 'this evening'

str_replace ( "'", ''. $string )

oooh

$string = str_replace('find', 'replace', $string);

You'll have to code the finer settings like afternoon

Oooooh, sorry, I knew how to do that.

another function like - if(date('a', strtotime("-$difference hours")) == 'am') return 'this morning';
?

nope

if you're dealing with mysql, use mysql_real_escape_string. if you're dealing with html html_enttities($string,ENT_QUOTES) is a better way.

Well, I got my problem resolved.

also don't forget about urlencode.

You'll have to use date('a', strtotime("-$difference hours")) the output from that will be the hour 0-23 .. use that for your morning, afternoon, evening thing
date'G' I mean, not date('a'

user A sends a request to the server for page X. The server sends back a line of results, but keeps the connection open. Every time any other user requests page Y, a line is added to the output of page X

Personally I would use javascript to write "good morning/evening/afternoon" because it gets the time from the user's browser.
But to each his own.

does that make sense?

12) { echo "good morning";}?

has anyone installed php5 on their mac? I am about to do the install at http://www.entropy.ch/software/macosx/php/ but I am afraid it will break system updates

you want to use ajax. xajax is the best library I've found for php.

Try http://pastebin.ca/667638

the-erm, this is a server side issue. i don't want to poll the server, I want the server to continually update the results of one request, only one connection.
i am familiar with ajax, but in this case it is not what I need

so you want your php script to sleep() then update the page accordingly ok.

you're aware that HTTP is stateless

smokestack, so?

Sounds like you want an AJAX 'spy' script to me

I don't think it's possible, but if it is I wouldn't recommend it.

works like a charm!
thanks for your help

np

http://www.obviously.com/tech_tips/slow_load_technique

you can't keep a connection "open" — you could give the appearance of keeping an open connection by making successive AJAX calls to the server

smokestack, why don't you think sleeping would keep the connection open?

Somethig like http://leftlogic.com/jquery_spy/spy.html ?

peepsalot, you could, but you could use javascript to do the same thing without tying up the server

i don't want to poll. I want to minimize the latency and bandwidth.
if the server sends data when it knows there is data to send, then I save myself from polling, and it gets send as soon as the data is there

you'd be committing a lot of resources to minimize the latency/bandwidth very little

The way I understand it if you use session_start() you can't load another page if the session is open on another connection, basically it "locks" until the person would press stop.

you'd actually be reducing the bandwidth by the size of the HTTP request headers from the ajax calls
i.e., not much

so only one request can be processed at a time?

if you are using $_SESSION.

not necessarily, but you'll use a lot more server resources trying to hack http by keeping the separate connection open to each of your clients

I guess I should play with it some time … just to see if it's possible.
Any time I've done anything similar the update for the page was a lot slower than an ajax call.

smokestack, what specifically do you mean by "server resources"

ram, cpu time, open connections

is there a limited number of open connections?

yes, all HTTP daemons limit the number of open connections as far as I know
if you don't, you run out of ram eventually anyway which heads to system crash city, woot.

using sleep() to do the same thing that ajax accomplishes is something you'd only do if ajax didn't exist
using sleep() to do the same thing that ajax accomplishes is something you'd only do if ajax didn't exist

And sleep() can't even do it :o
sleep() just does 'nothing' for a period of time

but you don't see that what I want is different from ajax?

Yes, but you're using HTTP to do it

you're reducing the number of request at the expense of keeping a connection open and all of the resources tied up on the server
ajax is transparent to the client if that's what you're concerned about

i know perfectly well what ajax is. i have used it extensively

{4}\/wind/',$page, $windd)) {, it

sIt
It
It's not getting anything*

??

they don't need to be escaped unless they're being used as the deliminator (think that's the word)

you've peeked my interest, I'll play around with using passthru('tail -f /var/log/http/access.log');
See if it even works …

If the match is over newlines you might need to use the DOTALL, /s

the-erm It's suppose to get the weather for a user. then display but's not getting the wind. This is where I'm trying to get. wind
s3/s
gustN/A/gust
d70/d
tENE/t
/wind

say for example I write a web based chat in ajax. there are 3 people in the room, pretend that they are not very talkative, and throughout the day they only say 10 lines of text. but they stay in the room all day long. each of these people polls the server once a second to check for new
messages

that's 259200 requests in one day
for 10 lines of text to be sent to 3 people

yea, HTTP just doesn't work out great for chatrooms

I see what you're saying peepsalot.

part.

Sorry for caps.

Maybe famd could help too? *shrug* http://wiki.linuxquestions.org/wiki/Famd

try this: if(preg_match('/\/d\s*t(.+)\/t\s*\/wind/s',$page, $windd))

O_O
That's pretty confusing.

wait, does \s match new lines with the /s switch? I forget

Anywho.

have you tried using preg_match_all('/regexp/',$page,PREG_SET_ORDER); ? // Perhaps it's not getting it all.
Just to be safe I would echo preg_qoute('t/t','/'); to see how it escapes the string.
Easy cheat

how do I check if $_GET['something'] exists

isset() ?

Ok.

I think it's possible, but will require calling flush(); a lot.

It's getting the wind speed, but not getting the direction.

I'll write a simple mockup of a "chat room" and see if I can get it to work with that.

Mariko that's it thanks. if ($_GET['foo']) worked too

Don't use that
Use isset()

MarkL why

Because your way is wrong

http://rafb.net/p/ngMBDb87.html is giving me this error: http://rafb.net/p/9r7zjW56.html

lol, why is it wrong

if you're checking for a non-empty value, isset won't work — you'd have to check !empty()

It will produce a Notice/Warning

the-erm, cool, thanks. I am reading up on some of these things. I'm pretty new to php.

http://pastebin.ca/667656 — It gets the wind speed, but doesn't return the direction.

if you had error reporting turned on, and $_GET['foo'] wasn't defined, it'd warn you.

ok

I type tooo slow

?

Yes.

Nevermind

I may be wrong, but as you only have one set of parenthesis to be matching, wouldn't the reseult you want be in $windd[1]? is it not getting to print_r at all? I guess?

http://the-erm.com/tailf.php // seems to work in firefox. Not sure what would happen if you added some js in there.

I changed it to [2] because [1] shows array.
Mostly Cloudy, Temperature: 77F (25C), Feels like: 77F (25C), Wind: Array at 2 MPH, Barometer: 30.07 and steady, Humidity: 90%
That's what it returns.

the-erm wow that was quick. so passthru did not work as needed?

Hm…

how can I include a php source and pass $_GET variables to it?
or $_POST

You don't. The included file will inherit the GET vars automaticaly

nope you need to call flush() every time data is received from the pipe. To send the data.

which is why I want to pass them

You don't have to pass them

it's in $windd[0][0]

i want to

The included file will have access to $_GET and $_POST just fine

I want to pass different variables

and print_r needs to be used on a variable, ie: print_r($windd); rather than print_r ( "$windd\n" );

You don't have to pass them. $foo = 'bar'; require_once 'cheese.php'; cheese.php has access to $foo

oh

Ok.

well yeah but I want to use $_GET instead of making up variables. so that the file I'm including can be used on it's own too

Again .. the included file has access to $_GET and $_POST etc

I have "ob_implicit_flush(1);" at the top of my script so data gets flushed to the user's browser as soon as they are echo'ed. But with Apache's deflate module enabled the script must first finish before anything is outputed to the user. How do we overcome this?

I don't think you'd need to use preg_match_all by the way, I assume you're just wanting one result. that means your $windd matches array will probably change a little

I don't have $_GET and $_POST in the file that includes. I want to have them only in file that's included

change if you preg_match rather than preg_match_all, I mean.

ok
Thanks.

They are superglobals and available everywhere whever you want them to be or not

lastly I suck the result you'd want is in $windd[1][0]; mistake on my part thar.

It shows as array still.

eer, pastebin it again?

oo yea
wait

firefox will not execute the javascript http://the-erm.com/tailf.php
Just sorta hangs when I try to execute js to update a div.

InuZ|afkhttp://pastebin.ca/667667
that shows 0
0 at 2MPH
2 MPH*

before /script

gday all

the-erm, I think that the ultimate solution would involve using ajax in conjunction with this method.
the-erm, I think that the ultimate solution would involve using ajax in conjunction with this method.

$winddir[1][0] can't be right as you use it as a string above switch($winddir)

I'm not sure what it is you changed but I meant you needed to update the $windd line like this: http://pastebin.ca/667669 note from $windd[1] to $windd[1][0]

any wya i can decode a ioncube file ?

I think I'll make a chat using ajax now … I wonder if it's possible.

Ah, I see what MarkL is saying as well. Just a little confusion going on, heh.

HI GUYS
..

the-erm: You can't move for AJAX chat applications, 100's of them

the-erm, hehe, it's fun isn't it. my actual plans are even more devious than chat though, that was just my example ;-)

what are your plans peepsalot?

so that'd leave the final thing more like: http://pastebin.ca/667673

anyone knwo anything about decoding a ioncube file ?

I doubt anyone would be allowed to say, that defeats the purpose of encoded files anyway

the-erm, a sort web-based online multiplayer realtime action game…
sort of

cool.

http://rafb.net/p/x4axnQ80.html is giving me this: ArrayError: Unknown column 'TEST POST TITLE' in 'field list'

Sounds like a lot of fun.

well its makimng me nervous as hell using these ioncube files and not knwoing what this callback this is sending hmmmm

Probably something around line 36

in SQL, backticks are used for column names, 's to quote values

the-erm, that's why i wanted low latency, not polling. i'm wondering how small the sleep (or usleep) can be before CPU usage gets really bad

Okay then.
One more thing.

InuZ|afk It gets my weather because the wind is calm, but not anyone whos wind isn't calm.

I think that's cause of the return's in the switch case, but I could be wrong

Maybe I should break; ?

yes.
or you could just assign them all to an array.. one moment..

I got it working thanks
lolol

well I gotta go to bed, thanks much for the help the-erm and others. I'll be back

How do i redirect to another page?

foo.php"); exit;

urlhere);
oo

hallo, vielleich kann mir hier jemnd helfen, auch wenn es kein php problem ist

Thanks.

Sorry, English only here

part

Can I ask a js problem in here?

just a guess but I assume you were after something kinda like this - http://pastebin.ca/667679 I assign it to an array just as it's easier and reusable
just a guess but I assume you were after something kinda like this - a href="http://pastebin.ca/667679"http://pastebin.ca/667679/a I assign it to an array just as it's easier and reusable

omfg
It worked!!! Thanks InuZ|afk

#javascript

no worries

smokestack.. I asked a guy why he needed clarification on my problem and he kbed me..

lol

lmao

yeah
and its ##javascript btw

oh, that's right

can I just ask it?

i'm not a mod

http://pastebin.ca/667683

well, I might as well
how would I redirect someone through ajax?

search for location.href (it's not ajax, though)

yes, but someone has opened a page that has ajax on it
thats in an infinite loop
and I tried to put that on the page that the ajax fetches
didnt work..

Ok, still works. Thanks again InuZ|afk

heh, good

you might try putting a conditional in the onResponse function, and redirecting from there

they arent refreshing the page
they are using up bandwidth through the ajax

i'm not saying they are
the onResponse callback is being called for every request

yes
but how am I supposed to incorporate that to refresh it?

say, if the response variable equals "REDIRECT", the location.href('…')

They arent refreshing the pager
page*
at all..

listen, when ajax refreshes, javascript code is being called

yes

when I echo float I'm getting this 1.99165701866 - how can I echo only 2 digits after the decimal point?

but the code is static
since he ISN'T refreshing
=\

round($val,2)

round ( 1.99165701866, 2);

can you find your onResponse callback in the javascript?

Okay then, what would you recommend for the primary key on a single comment table?

like, the onreadystatechange?

right exactly

yes

(sorry, it may not be onresponse)
in that code, you would write a condition that checks the response for an indication that the PHP script wants you to redirect

yes, but that doesnt do anything
since the person isnt refreshign the page
not once

but i think you're sending the code directly from the php script

Oops, wrong window

i'm saying, embed the conditional in the onResponse function

refreshing*

or onreadystatechange

?
like
echo it inside the script ajax fetches?

printf worked too . seems cleaner than echo

if(response == "REDIRECT THAT PAGE") { location.href = 'asdf'; }

yes, but the code is static!
I've said that like 5 times nwo!
now*

but it's being executed every time a reponse is received..

no
it wont
since they havent refreshed the page!
they wont have that code

yes, it will, if it's in the onResponse function
or whatever it's called

IT WONT BE IN THAT FUNCTION

i'm telling you to put it in that function

*aigh*
*sigh*

ditto

what dont you understand about it?

i've already explained what you need to do

the person wont get the code since he wont refresh

you need to do some reading on what ajax is
and how it works

no
you explained to me what to do for people refreshing it

when you make an ajax request, it is making an ajax request just like if the person were to refresh the page
but the client isn't refreshing.. javascript is doing it behind the scenes

yes
the javascript is getting the new page
not the page its being executed from

the php script (i assume) is returning a page to the javascript call
right?

correct

if you decide in the php script that you want to redirect the user, you would simply return a string like "REDIRECT THAT USER NOW"
are we still on the same page?

yes

in the onResponse function

no
stop

whatever is called every time a response is received….
okay

it doesnt matter if I change it on the server

but aren't you sending javascript code from the server?

the user isnt fetching the file with the onreadystate function
no
thats all in the file!

This is why we have g8 :p

i thoughts that's what you had already tried

!+g8

#sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.

pm me
sorry mark

No problem

do yuo see?

pm me

sorry
thats right
I cant pm
I forgot my password for here, since I changed it a few days ago

join #awesomejavascriptchat

lol
ok

hello how can you instanciate a class existing in an other php file? thanks

Can you help me with PDO?

can I read remote html partially? I'm using file_get_contents and it reads entire file right away so I have to wait a couple of seconds before the entire file is printed, instead of printing the content as I'm getting it

include the file and instanciate the class

fread in 512 bytes at a time maybe.

rza i should include with include_once ?

If commit() fails in PDO, will the script stop? (error mode = exception)

no
you can use include

the example is on this page, http://uk2.php.net/fread a little down the page

an unhandled exception will stop the script

rza include ("my file"); ?

include 'the_file.php';

and if I handle Commit(), it won't stop?

or use __autoload
what do you mean by handle commit?
does commit throw an exception?

require will stop the script if file doesn't exist, unilke include

hi, i've installed a server apache on my linux distro, added php, but i have some problem. It seems in my php page, the function require("file.php") doesn't work, neither include. i checked the file php.ini, and the option allow_url_include is On … how can i make require and include work
?

rza ok thanks , and to instanciate a class ??plz

try{} catch{}; PDO is set to exceptions


i asked does it throw an exception?
php.net/oop5
knock yourself out

rza ok thanks

I don't know, but i would like to do something if transaction won't be committed

try { $dbh-beginTransaction(); /* Do stuff */ $dbh-commit(); } catch ( PDOException $e ) { $dbh-rollBack(); }
maybe begin the transaction outside the try block

I do a lot of things between begin… and commit (not only queries)

so that failing to beging transaction doesnt lead to rollback
but you have an open transaction?

yes, transaction is opened and commit() finish the transaction
so covering commit() with try{}catch{} is enough?

try catch only the commit then

rza do you know about egroupware?

yes, i know the software but this is hardly the place to ask questions about third party software

rza it's built from phpgroupware

so ? anybody to help me?

why am I getting this error even though it iterates fine through arrays' elements? matches is array of array of strings. Warning: Invalid argument supplied for foreach() in index.php on line 58
foreach ($matches as $m)

What does echo gettype($matches); output?

rza i looked into php.net/oop5 but couldn't find how to instanciate a class

youre lying

Celos`: Make sure you have error_reporting set to E_ALL and display_errors On in your php.ini, restart apache and see if you get any errors. Probably your include_Path at fault

MarkL uhm, NULL

php.net/manual/en/language.oop5.basic.php Example 19.4. Creating an instance

Not an array then :p

MarkL how can I use $matches[0]['foo'] then?

does anyone knwo why im getting this
yntax error on line 53 of /www/conf/httpd.conf: Cannot load /www/modules/libphp5.so into server: /www/modules/libphp5.so: undefined symbol: sqlite3ExprDelete

?

rza ok

You can't

PREG_SET_ORDER?

did you compile php5 yourself?

yes
did i leave something out of ./configure?

Got sqlite2 installed ?
er .. sqlite3

probably not

looks like you have sqlite3 library headers but not the actual libraries

Have a good day everybody

it should not pass ./configure if headers werent there

would it be cl-sql-sqlite3?
it does
and makes and makes installs

libsqlite3-0
is the package name in my distro

Ah, run make clean, then reconfigure/install

ok
and it wastn installed
i just installed it

i dont see how that helps if libs arent there

i wonder if this will help php5-sqlite3

try ldd /www/modules/libphp5.so

the only errors i get it's because the file in the require function is not "imported"

are all the dynamic libs there?

MarkL you were right. that was part of an outer loop and I was getting warnings when array didn't exist. it printed elements when it did

seems liek it
there a bunch

when it did exist

do you see sqlite3 there?

no

and my include path is: ".:/usr/share/pear"

is sqlite bundled with php?

it shows it installed

Celos`: And file.php is in the same directory as the including script?

yes

Celos`: Permissions ok on it? Though require should die if it fails ..

seems like at least ext/sqlite ships sqlite libraries

yes permissions are ok

Celos`: What's the exact error you're getting? And maybe use require_once just to make sure it's not being required elsewhere too

using require_once, and it's the same, and the error it's because i use a var which is declared on the file that is require

Celos`: Put an echo in file.php, if you see the echo ok then it's being required ok and the problem is elsewhere

ah it seems the file.php is being required, i see the echo
i don't understand why it can't use my var

Celos`: The require comes before you try to use the var right?

of course

Celos`: have you "global"'ed the var?

i do the require, then i use the var, works fine, then i close ?, i open again php php use the var, and now it doesn't work, so i add require_once in the second php, still don't work

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: