im playing around with php to try to learn it my first little project is make my own blog with php but I dont

heya

First I want to show the form, then the user will have to confidential info. there. In this situation, do I have to show the form in SSL or not necessary.?
It is only the main question.
Because until now, from my perception of the SSL knowledge, I think we first have to initation ssl certificates handshake should be occured and then only has to show the form.
Am I right?

If it's just HTML with no sensitive information, there's no (technical) reason to send it over SSL

fine,
so for example: In test.html file I have formCredit card No: input type=text name=ccno/form, then I show this in non-SSL as there is no necessary?
Am I right?
or I have to show in SSL protocol?
pardon for my poor english.

hi
how can i get screen height?
without javascript

sakitram, few people are going to trust a non ssl site with their creditcard
while it is is not technicaly required for security that the form is sent over ssl, it is the only way to close the lock on the form page
and that is what most people use to judge if a page is secure or not

you are right.

?

but my question is Whether it is necessary to show such form page in SSL or not in functionality wise.
?
though that form will be posting to ssl certificates page as form method=post action=https://…..
I know this very silly question, but do not know the answer ever after reading several days ABOUD SSL.

Have anyone worked with a "SMS Server"? I dunno how to define it, but, that applications wich mobiles send SMS and the system reply it with another SMS…

i wish this stupid box would synch with my cell phone

[MiB]: You can't.

try the H.A.M.M.E.R. methodology :p

There's no technical reason to send it over SSL. However, sometimes, people feel better if even the form is encrypted. It's up to you.

isnt ready to work on my linux machine

But I'm not sure how many more different ways I can answer the same question

which is now my primary desktop

only with javascript?

[MiB]: Correct
[MiB]: PHP only has access to what the browser sends over HTTP…things like screen resolution are not sent.

hey TML
ltns.. hows you

thxxx dude

Anyone here already worked with a SMS project?

what does you mean?

I think he means one of those pay by sms ones

yes
in one-way and two-way services
and mms messages

Hay yha all
i am working on a php web hosting project that controls user login tracking and event tracking
and i am kinda stuck betwean a rock and a hard place

fine. thank you very much.

i was wondering if any one has any idea how i can track browser windows
so i can send the right thing when the right one asks
…..

script type="text/javascript"
document.write('php $height='+ window.screen.height +'?');
/script
whats wrong?
echo $height = + window.screen.height +?

umm alot
a string is defined as $str="string";

hi, how to declare a hole class as static (php5) ?

what is a hole class? :P
php.net/classes

Well, Im studying about a 2-way application… did you used PHP? Can you forward me some websites?

noimnot what do i have to correct?

[MiB], what are you trying to do?
it looks like you want to access a client side variable at the server side
which is JUST WRONG

eh
i wanna get height of sreen
screen

yes
you can't get that from PHP's side
only the client knows and has to tell PHP
you seem to confuse server hosting with client

so i can't use static host for the class keyword

rocketmagnet, what did php.net tell you?

only methods and variables
from http://www.google.at/search?source=ig&hl=de&q=php+php5+static+class&btnG=Google-Suche&meta=

you think i can change the PHP source so you have what you want?

oh
here http://www.google.at/search?source=ig&hl=de&q=php+php5+static+class&btnG=Google-Suche&meta=
man
sry

just stop and rtfm

noimnot

[MiB]
[MiB], you will want your javascript to refresh the page and send the screen height as a get parameter
then after the get is recevied you just don't echo the javascript host anymore

but is get result
but i get result

?
in the browser, yes..
what does that have to do with PHP?

echo($height);

uhh

= + window.screen.height +

PHP has no idea what the client's screen height is until the client tells him
what you want is fucking magic

i have already told u
i wanna get height of sreen

that you are confusing clientside with serverside yes
[MiB], http://www.phpbuddy.com/article.php?id=8
read this

yes

not that this has to refresh the site via javascript
so the browser can tell PHP what the resolution is
nothing like that in you script

i have read
but it is wrong
because

??

if i change size of resolution
and cookie is set

holy shit you are an idiot

you can make a http request with javascript, that's the only way without refreshing the page

i will stop talking to you now

there will be wrong height
HE?
why am i idiot?

do you understand a bit about how to web works ?

if(isset($HTTP_COOKIE_VARS["users_resolution"]))
$screen_res = $HTTP_COOKIE_VARS["users_resolution"];
ok try if u dont belive me

rocketmagnet, obviously not

for example

that's a cookie that must be sed by the client
set
so you need some javascript that write the resolution into the script

AHHHHHHHHHH

omfg

[MiB]: Why are you using $HTTP_COOKIE_VARS?

beside of that…

but if the cookie is set there wont change
and if i set a new resolution
the old cookie not changing
idiot!
and i am idiot?????

[MiB]: Isn't $HTTP_COOKIE_VARS no longer in use in place of $_COOKIE?

Spencer it is a example
http://www.phpbuddy.com/article.php?id=8

[MiB], imagine that: "cookies can be updated" WOOOW; YAY; \o/

yes but this example not correct

they can even be tested at the client site and adjusted with a javascript
not for the special case you invented
but wtf?

Hi. I like the way soundex works, that it gives a number that kinda describes a string. But I'd like to have a more defined, precise function that does the same thing
which means I don't really like metaphone, as that's not fixed width
any ideas about how to make it more precise?

noimnot
if i am idiot
how can this work
php
$height = "
script
document.write(screen.height);
/script";
$height = strval($height);
echo $height;
?

[MiB]: Please don't paste code in the channel.

sorry

what's boggles?

it's a verb
it indicates a sort of "confused look"

i see.
so pragma isn't familiar with those functions?

Anyone here worked with a SMS 2-way project? I would like to have some guidelines about how it works…

either that, or he's familiar with them but confused or intimated by them

There's not really a "more precise" version of Soundex, no. Soundex is intentionally IMPRECISE, as it's used to identify two strings that sound similar.

TML, yes, but the problem is that it thinks carlston and carl the twelfth of sweden sounds the same
because it has only one letter and three digits

They do

well. not really. only the four first characters sound the same

starts with carl and ends with ".n"

why are all these functions removing vowels?
I think freeze and these sounds more similar than these and those
well
bad example, but you get my point

I don't know what to tell you other than "Because it's considered the proper thing to do for what Soundex is meant for"

hello

There's actuall a set of rules for how they determine it
http://www.archives.gov/genealogy/census/soundex.html

how can i receive json data from php ??

i'll read up on that one. But I still think there should be a function (even if i have to write it) that gives more weight to cyllabels, the number of cyllabels in a sentence or word, than to certain cons.. not vowels

php.net/json

ty

Well, if you come up with a function that does what you need it to, that's excellent. Soundex, though, is a general-purpose algorithm, with a lot of research behind it.
The reason Metaphone has a variable length result is that it attempts to codify the way people speak. Is there a reason you care about whether or not it's a fixed-width response?

TML, no well, i'm planning to use it in a column in the db, to suggest stuff that sounds similar to what the user entered

So use a varchar

yeah i guess i could do that. i'm just thinking that it would be faster with numbers

sounds like a class iron triangle to me

a cit?

How do I escape the % sign properly when using printf so it does not mistake it for another argument?

%%

pragma_ ty

TML, what's that?

fast, good, cheap: pick any two

[MiB], it works..
[MiB], it doesn't do what you think it does tho
it just echoes the javascript

TML, I see

and the javascript echos it to the browser
PHP never learns what the javascript write()'s to the browser window
so yes, you're an indiot because you still …
ah fuck it

Please leave the profanity out of ##PHP

TML, yeah whatever mister pseudo

I also have the problem that it says Carolina and Karolina is different. I tried solving it by adding "a" before it, and then use only the digits

äàðîâà íåãðû

but that has as a result that it says actually == settler == still
and stupid == activity

íå ïèçäè

!paste

Yeah, you definitely don't want to start screwing with Soundex

metaphone does a better work there.
since it says they're both KRLN
oh, oops, it differs between christine and kristin
which is both correct spellings in sweden

hi all

work fine, but not see mysql info…. where can see any log any error? thanks

???
i believe you are confusing something

OS?

windows xp

I'm not sure if this will work as I don't use windows for servers. You should open php.ini (you'll see the path at that phpinfo page) and search for a commented out "LoadModule" line with the mysql hosting module.

I recomend the mysqli extension
you get to play with prepared queries and such
but only if you want to
I don't think we agreed on a seceret code for what meow means

I'm not aware of the differences so I can't comment on mysqli.

prety much all old mysql extension code will run after adding the I to the function names
but you can also use all the power it has

Any performance issues using old (mysql) code with the new mysqli functions?

want 100 % injection safe queries? easy with prepared queries!
I do not know of any such issues

hi
guys, how are (oo) class interfaces?

function less

how useful, sorry
henke37:

they can have no executable code in them
boring

what can I use them for?

and they can't even have defined member variables
they are an hack to only partly allow the cool stuff multiple inherience does

I see
so the implementation in php5 is rather incomplete
….
thanks
I'm sorry henke37
I could have got a kick for asking in the channel

henke37, have you seen any swedish soundex or metaphone functions?

foutrelis?

patir, no
but I haven't looked

i have uncomented in cphp\php.ini the line: extension=php_mysql.dll restarted the apache server, and cant connect php host + mysql, anya advice?

is mysql running

hello everybody, how to determine if an array is associative or simple please ? apart from the hacky isset($array[0]) ?
what is the error

arrays can be both so I don't think there is a function for that

is_null, $r=array_keys($array); if(is_numeric($r[0])) echo "its an array";
foreach to be sure

thanks

Why would you need to know that though?

no real reason
just some confusion i take it

Just wondered if there was some hidden reason for doing it
I guess an API could do something different depending on what sort of array it was given but even that seems pointless

hi guys

hi all, i'm trying to build a function to pull some data from an xml source. is it possible to use a variable when trying to access an object? (i.e. $this-$var-getValue() ) with $var being the "variable"? I'm trying to stay away from 30 different functions for this xml

JonathanJooped, foreach doesn't care about the key's type

is_null no error
only cant connect

pastebin:
http://php.pastebin.com/m3c741585

where can see wich is the problem?

Hey, is anyone aware of a profiler that can help in fixing scripts that have variables that depend upon register_globals?

madsara, human brain
its rarely really used tho

Yeah, I'm loooking for a shortcut.

i guys, i have a list with a couple of columns. In the name column i have two pictures representing ascending and descending. But what is the best way of creating this funciton

as i said.. it's rarely really used

Most code using register_globals should be looked in great detail anyway

anyone have an idea on how to do that?

$this-$stat doesnt make much sense
should be $this-stat

still throws a "call to a member function on a non-object" error

$this-rootEL is that a dom handler?

hi guys, i have two pictures, how can i test which one was clicked?

it's minixml's object

I'm not sure what a minixml object is

http://php.pastebin.com/d41040325 — there is the function I have, plus what i'm trying to replace it with
minxml is an XML hosting parsing library
I can't depend on php5 yet, so simplexml is out

Ok, well delete those dollars first
$this-stat
for all three lines

ok

try describing your problem better / pasting code

thanks JonathanJooped, helps if i look for the right element as well

Can I somehow strip out some characters from a string in a php file? like I just want to insert like "phpcode to strip out and "contents that gets generated by a script that i know will include " and then it leaves all but the tags. Does tht make sense?

strip_tags()

what's the recommended language/technology for building a video sharing site?

thanks

i have uncomented in cphp\php.ini the line: extension=php_mysql.dll restarted the apache server, and cant connect php + mysql, anya advice? no error only when i test php, phpinfo(); not see mysql details any advice?

jak2005, no, thats expected behaviour

jak2005, recheck paswords usernames and tables

JonathanJooped, but, php not need user/password right?
only in the programming…

K, methodology that semi-works: Dump $GLOBALS to a file (on an actively used site), filtering out things that are known to be not of interest.

The technology you use for building a site would depend largely on the skills you have available in your team
I would never recommend using soemthing that at least some of your developers weren't familiar with

For something that top end you would need to know the language inside out as when the site gets popular it will crash

well
obviously, you need to construct an FLV player
but you should work with the language your team is most familiar with, red9012

identify nintendo

HAHA

woops
oh well

you're kidding, right?

man too tired
naw

hahaha
=D

good old days
give me a break long day
well not enough sleep
bah irc isn't friendly today

Where do people learn their coding skills from mainly? books or sites or whatever

what is ascending is it 12345 or 54321

there we go
changed pw now
mainy practice
mainly* but yea online tutorials examples from other places

hi all, shouldn't an extending class inherit from it's parent properties that aren't protected please ?

eh?
well if you set it public it will inherit

If there private there not inherited

ok thank you

if there protected or public and extended class will inherit them
if they are set to final and extended class can't redefine them

an uparrow is represented by ascending or descending

thank you JonathanJooped, i got confused because of pebkac

?
what do you mean by that

pangelovs ascending numbers get bigger… descending counts down

Is there a fuction just like strstr , but that will return a string just up to a certain point of the original string and not till the end? substr doesnt really work for me because I need the delimiter to be a string not an int

use substr and strpos in a combo

thanks!

anyone want to mess with my tiny cms?
looking for people to poke holes in it, etc

were not your personal beta testers

that's why I asked instead of demanding :P

I can do it
want to show me the source code?

sure, sec
http://pastebin.ca/653611

installing dreamweaver atm
could i be any more gay?

Yeah Frontpage

haha

its not called gay, its called stupid

it seems to have the features in an IDE i'm looking for

but since gay also means happy that might be considered correct

and i heard it's not as WYSIWYG as it used to be

clients are the best beta testers

if you want to actually run it, you just need a "template" file alongside index.php and a "content" directory

the human braing is wysiwyg enough for me

I am happy reading it, thanks

Looks bloated

that's cool

i'm only going to use the preview pane to see what my site will look like before i upload it
so i don't have to constantly bring up a browser and hit F5

dreamweaver is not that bad as a code editor, except that it's closed source, doesn't support xdebug and is only for web :P

what does?

i really liked CodeWarrior when i worked with it
for C++
i wish they made CodeWarrior for PHP/JS/XHTML/CSS

three are plenty of good editors for these langages …

well, i've been trying a lot of them out
TextMate's been my favorite so far

gPHPEdit ftw

but i needed to update to Photoshop CS3/Fireworks CS3 anyway

ouch, super closed source haha

gphpedit ?

gphpedit

course not

zend studio is good

vim is better

bah.. thats not an ide

vim doesn't understand my indentation, unfortunnately

define ide? you access use svn, send sql queries, debugger? you can do the same with vim

maybe that's a sign to change style ^^

xhtml/php/asp/perl/ruby highlighting, css editor, ftp/cvs/svn syncing, project management
i haven't seen anything that can do all of that
for os x

what about windows?

haven't looked for windows IDEs

necromancer…. why rely on software so much

not sure I've seen anything that does all that for windows either
lol

If the software breaks.. bye bye work

it's not really reliance, it's more of improving the way i code
it's not like it's going to fuck with my files

IDE's make you worse from my experience

I highly doubt an IDE refusing to open means your text PHP files will not longer be accessable …

i've been coding on text editors for years now
i figure i could just go back pretty easily

Yes it wont mess with the code…. but if you rely on the IDE when its not there your coding will go down the pan

use simple but effective tools

If you code by hand with no help I find its easier to understand things in the long run

concur

I'm not saying using notepad… but when the time comes when you have to… its so much easier

couldn't agree more JonathanJooped

it's not really about the actual code

brain is a muscle
without training it grows weak and dull

it's about the extra shit

no
it's about your goddamn lazyness

the actual code can be edited anywhere

but no worries, it will only hit oyu in the head one day
not us

the extra shit, project management, svn, etc.
that will help me keep organized

AlexC_, gphpedit looks interesting

be*

language, necromancer

All those things take up processing power… when they aren't needed the program runs slow

noimnot, to be frank, you just adding more 'layer' for your work…

Like the Zend Developer IDE couldn't be any slower

sorry i offended anyone with my BATHROOM POTTY MOUTH

I don't see why you want a super program to do everything, that's like saying I want an IDE that offers syntax code view, firefox intergration, Gaim intergration, oh - xchat intergration as well - just so I can do it in the same program
use the program that is designed for the task instead of wanting one that does it all

completely useless with ion

I want an IDE to do my work and make me tea and buns…. the day it doesn't work is the day I can't do it myself

why do you care *why* i want it
all i asked is if it exists

I care because I just wanted to put in my opinion

I'm sure Google knows more IDE's than us

Hello… anyone here already worked in a 2-way SMS project?

mosaic window manager makes you do perfect moduloble IDEs for all your need with all your programs

if you want to know the reason i've been looking for an IDE
it's to speed up my development time

it's important to be confortable when you spend all your days on the fcking computer haha

the way i always worked was code file, upload file, refresh browser, repeat indefinitely until something works

Yeah but its like my mac argument… there quicker 9/10ths of the time the last 1/10th is slower when it breaks

use install Apache PHP and MySQL?
saves the uploading,

first : get a local server

i was thinking about that
i have xampp

does anyone know which version of Windows Vista works with Core 2 Duo Mobile Processor?
32- or 64-bit?

er .. this is ##php?

impossible to work without a local server

pretty sure core 2 duo is 32-bit

no, it's not - it's 64

there is no windows that works

really?

#windows

holy hell i have a 64-bit processor

ok thanks

have fun with the trolls from that channe/

join #windows

AlexC_, gphpedit is a year old. is it still up-to-date with 5.2.3 ?

ups

huh?

i've been trying out a number of things to speed that up

xampp is brilliant doing all that so no uploading

i was thinking of using subversion
yeah but xampp keeps breaking and it's annoying me
the default configs don't work the way they should for some reason

Hasn't ever broke for me

AlexC_, i mean, the function pop-up.

and I have extended it and poked with it loads

no, only all functions in php4 - but who needs it anyway :P

hmmm

AlexC_, aww… no mysqli then

how do I see if the user entered an int or not?

well i haven't been able to use it
because it throws 500 errors every fucking time

? you can still use it …
is_int() Gargantua

well, apache does

this is where komodo is awsome, it scans all your perl, php, python, ruby, custom directories and makes the updated auto-completion with tip thingy

IMO - the best way to work is with virtual desktops/workspaces, what I do is have gPHPEdit on workspace 3, Firefox on workspace 2 and gnome-terminal on workspace 1

Yeah well look into the errors and fix them

thank you AlexC_, just needed the function name

then with Compiz all I do is press ctrl+alt+left and switch to the next one

also works with methods and properties of my projects, uses the comments for doc

very very efficient and fast

i only have one desktop, like 1900*1024 or somthing, with ion heheh

ion?

a mosaic wm

ugh

ahhh

What are the errors?

http://img245.imageshack.us/my.php?image=desktopnc1.png

i don't even know now, apache won't load and neither will mysql
hold on

ahh yes, there is a plugin for Compiz/Emerald to do that

hi

$req = " SELECT profiles.*,user_extra.profilePic FROM profiles,user_extra WHERE profiles.nickname LIKE '%".$s."%' " ;

with dvorak matricial keyboard, confort

necromancer… learn xammp you can get SVN working off it as an extension
and it cuts out having to have code testing server

s/as/with/

if i search "nas" and in my profiles table i have "nas" and "nasky", the script finds both but several times

i don't have much experience with svn

Nasky Nasky Nasky…. Nas Nas Nas when i list

or cvs for that matter

svn is great

i know it's used a lot in collaborative stuff

torvalds says it sucks lol
super geek

eh ?

s/geek/troll/

yeah he says a lot sucks

Could anyone tell me where do I have MySQl syntax mistake here? $novica = "SELECT naslovnovice, uvodnovice, vsebinanovice FROM novice WHERE id =".$_GET[id];

Matic`Makovec: ! never do that

I'm not sure I see it
Oh :o

never ever put raw user data into a query

Filter the input

Matic`Makovec: php.net/mysql_real_escape_string

Matic`Makovec: id=".intval($_GET['id']);

then escape it

I know about that
Id isn't user input


is it not?

Or is it?

IT IS

foo.php?id=my_custom_value

True
Oh, thank you is_null by the way

?id='.Drop novice

That kills it I'm guessing

Matic`Makovec, and i think you have to close the request …. id=".$_GET['id']."" ;

this wouldn't work would it ?
Matic`Makovec: http://en.wikipedia.org/wiki/SQL_injection

wasnt far off

that's the idea indeed

yeah

$req = " SELECT profiles.*,user_extra.profilePic FROM profiles,user_extra WHERE profiles.nickname LIKE '%".$s."%' " ;

anyway…. life calls cya all

what's wrong with my request ?

hi, If I have an url say http://www.foo.com/index.php?p=bar

#MYSQL

how do I access p from php?

$_GET['p'];

sweet thanks

thx

ok!
i am back!
whee!

http://fr.php.net/manual/en/language.variables.external.php

thanks

you are welcome

so when I get "Table 'developer.developer_user' doesn't exist", should I create a new table called 'developer_user'?

that question seems backwards
you should create the table based on wehter you need the table or not

. \u developer then SHOW TABLES;
case sensitibe

well…I am using someoe else's code

*sensitive
that's in mysql btw

it was supposed to create the tables for me

well, they should have provided a database schema

hmm

did you do what the INSTALLING file told you to do?

I sure did

all of it?

yes
have you seen the 'Simple PHP Forum' Install instructions?

is it possible to overlay one image over another with php and some lib?
aka join two images and make one gif out of that
or png

uhm… gd ?

hm was wondering about that as well
just wish to know if that's possible at all first

hey, what's the difference with using "private function func_name ()" rather than just "function func_name ()" inside a class?

hey crackheads

private means only the class member can access it

I have a question about the SPL

means, you can't access it anyhow

I figured that since it provides Iterator, I might as well use it
I have a tree of objects, by any chance, someone knows how I could traverse it with one of the iterators without too much hassle ?

what is the server varbile if i have a script at http://www.domain.tdl/index.php and i want to retreive the "index.php" only

anyone know of a good cheet sheet for mysql query quoting rules

anavel, thanks

tachu, np

why these line not work: if (stristr($_SERVER[PHP_SELF],'logout') or stristr($_SERVER[PHP_SELF],"supporter") say me these error: Notice: Use of undefined constant PHP_SELF - assumed 'PHP_SELF' in EArchivos de programa\Apache Software Foundation\Apache2.2\htdocs\hd\common\init_server_settings.php
on line 46

you forgot one )
err….
nevermind
(stristr($_SERVER[PHP_SELF],'logout') or stristr($_SERVER[PHP_SELF],"supporter") )
II
||
(stristr($_SERVER[PHP_SELF],'logout') || stristr($_SERVER[PHP_SELF],"supporter"))

it is as it says
those are undefined constants
make them strings

hi, what's the fastest method to test if all characters in a string contain only characters from another string ?

regex

OMG

what is the server varbile if i have a script at http://www.domain.tdl/index.php and i want to retreive the "index.php" only

i cant believe it
I can actually understand this PHP code

shure ?

lol
but I still cant figure out whats broken

Drstroker, try filename and __FILE__

how am i kinky?

i have a string with all the characters that are allowed in the string

Drstroker, but it might be another varible you are thinking of

oh, my nickname?
pshhh, ive been DARKGirl for about 8 years

like $whitelist = "ABCDEFGHIJKLMNO…"; and the string $testme = "nook!";

www.thegamecreators.com
thats where I initially got it from

well let me clarify i guess lol … if i had .tdl/index.php?foo=1 i still only want index.php

used to be a hardcore DBP coder
not much these days though

oh poor show lol

my team and I are working on an MMO

what's DBP
?

we code in C++ using Ogre
lol, i cant say much more…this is a php channel
ive said too much already

what command is used for simple regular expression testing ?

but

lol

how can I find out what format this table uses?
i cant see it anywhere in this code

is there a php-dev channel

is the general format text?

i can't find filename …

try going from the function dirname
it should be at the see also section

one of my users is trying to create a file upload facility into his space. How should the php temp dir be set up to handle this?

http://www.phpfreaks.com/forums/index.php/topic,154336.0.html

hello im playing around with php to try to learn it, my first little project is make my own blog with php, but I dont understand how I make form where i can put in some text and make it appear on the website as text, anyone who can help me getting started?

could anybody help me with that?

what does $_SESSION = array(); mean?

it unsets everything in the session

I need a function to make relative URL's absolute, where $page is the html source and $url is the url of the source. Anybody?

ah

how do you make a simple redirector?

i'm looking at this, http://us3.php.net/manual/en/function.pathinfo.php but they are using a static varbile .. i need to pull thats my problem i don't know how to pull the script name dynamically

"$url/$page"
header('location: http://example.com/…');

and $ss-Destroy(); $ss-Create();?

i need to redirect people who reach http://foo.bar.com to http://foo.bar.com/here

f00li5h, it needs to go through ALL the source convert every href & src to relative, and find the base url from $url to do so

__FILE__ has the full path to the script that's running, does that help?

I mean $ss-Open(); not create

hello f00li5h

meow
just make all your urls relative to the root of your site, that should be easily doable

f00li5h, its for a 'cacher'
its caches pages, but not images

what is that then?

f00li5h, http://icache.ihack.co.uk/
(buggy, very buggy still)

why not just use a real caching proxy?
just configure it to not cache images

because I don't want to

there can't ever be a function like that

f00li5h, there is
f00li5h, i've got one already, it just sucks

yeah? do tell

lemme find the link
f00li5h, there - http://www.howtoforge.com/forums/archive/index.php/t-4.html
second post down

there is a lot of path carryon to figure out which point in the filesystem coresponds to which part of the url

ohh k?

are md5 passwords stored as binary or text?

horrible

f00li5h, how so?

ihack, it is basically impossible
ihack, think about virtual hosts

i'm sorry i'm still not tracking the function to get the path of a script within the script …

well, you mean besides the half-an-html-parser?

all these examples have the paths static coded

directive for apache; then think about aliases

oh i was asking in wrong channel
silly me

noimnot, it could half work

ihack, bah

infact, I have got it working, sorta

also, it could be done with one regex replace

it works with everything with a / at the end
f00li5h, hit me
:P

well, the pattern is quoth http://search.cpan.org/~gaas/URI-1.35/URI.pm, |(?[^:/?#]+)?(?://([^/?#]*))?([^?#]*)(?:?([^#]*))?(?:#(.*))?| captures $scheme, $authority, $path, $query, $fragment
and the replacement just comes from the captures in that

what input types are avaible for the _$POST variable?

Roberth, me?

Roberth, php.net/variables-predefined

any form elements that are POST'ed to your script

Roberth, php.net/variables.predefined actually

I do think that doing the replacement on html you generated is a bad idea (becasue you shoudl be able to change the generation of the html, rather than having to re-parse it)

hi, I need to remove all numbers from a string

f00li5h if i put an index.php at http://foo.bar.com with just 1 line like header('location: http://foo.bar.com/here'); –will it make all the visitors to get redirected to foo.bar.com/here automatically?

any suggestions
I'm looking at preg_replace

all users that request index.php, yeah

okay sorry if im a little bit newbie here but… im trying to make a form where i fill in some text submits, and it appears in the html doc, how can I do that? I think i was think in a wrong direction when i pulled that question

the thing is…I don't know exactly how to specify the numbers?

or /, depending on server setup

f00li5h, hmm it only parse's it once

yeah, that's tough

f00li5h hm and what if there is no index.php in the url? just pure /

what?

f00li5h, it just prints the absoluterized source

it can't be hard

well, if / is mapped to index.php, then it will be as if they reqeusted index.php

but I don't know the regular expression to do it

what does?

To do that
google forms html

f00li5h, nevermind

ok

you'll see stuff on creating forms in html
you can specify types in those forms
and one of those types can be the textinput item you need
when they hit submit, it'll send the data,info from the textinput to the file you specify

once you're done learning how the form components work, look up pear.php.net/html_quickform it'll do all the messy form validation and html rendering for you

I think I got it….
"/[0-9]/"

it also does 'stickyness' and input filtering

so i dont need php to do that?

that'll match any string containing a number, is that what you want?

hello i got a question, how can i make a comparision between an array which is the result of an explode()'d line and a normal string??

join it, and use ===?

if (implode('',$array) === $string) { }

or you can compare the items in the arrray, one at a time

You'll need PHP in the file that the data gets posted to

yea i just want like arr[0] to compare with a string

but to set up the form itself, you don't need PHP

nice! this code works!
whee!

hmm okay

then use $arr[0] == $something_else

in the form, you have to specify a file
that the browser will call when the user hits submt

upload a file?

that may have PHP

so im heading in the right direction by using _$POST variable?

yeah

i can't use a direct string?

well, that is in the file that will be called when the user hits submit

$_POST

you have your initial form

how?

like $arr[0] == 'g'

Upload a file?

i need a litle help please

never mind

do a simple experiment first

oh, that's a shame

setup a very simple file
a simple html file

Failed loading /usr/local/Zend/lib/Optimizer-3.3.0/php-5.1.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.0/php-5.1.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied

with one text input

i think you want 'script' instead of 'file' there

and then create the .php file that the data will be "POST" ed to…

refering to me?

and display the stuff in the input box

you generally want to post to the same page that generates the form

Yes, I'm referring to you
Sometimes
not always

so that you can do the validation there and then, and decide if you need to show the form again

Oh yeah, good point

how would I $_GET any url like ?http://www.google.com instead of ?url=http://www.google.com ?

but he needs to get started

always.

for a text input, I need a form?

if ($arr[0] == 'g') - shouldn't that work?

Nah, you can use javascript or something clientside to validate

$_SERVER['QUERY_STRING']

$_SERVER[PATH_INFO] but it may be disabled

anyone ?

oh, yes, query_string for ?, path_info for /

if $arr[0] = 'google' then it won't work.

??

if ($arr[0] == 'g') — there is nothing wrong with this.

like this: http://rafb.net/p/h57eon52.txt http://rafb.net/p/sJVU2E45.txt

what was that word that started with de and described register globals?

f00li5h, fyrestrtr thanks a lot

== is the kinda-equals, perhaps you want === to be sure it's a string

anyone can help pls ?

p what is your question?

yea, but it doesn't work, if $arr is a result of an explode()'d line
uyea, but it doesn't work, if $arr is a result of an explode()'d line/u

Failed loading /usr/local/Zend/lib/Optimizer-3.3.0/php-5.1.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.0/php-5.1.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied

ugly )

perhaps you should point that out to the person that has the question.

it sounds like your permissions are wrong

for ZendOptimizer.so ?

you were the one who said ==…. unless you were quoting his code

Yeah, that should work

$bits = explode(' ', $_POST['phrase'])
read the log.

although, I would assign the post thing to a variable first
like…

tell me what to set pls

$data = $_POST["post"];

i'm going to go to sleep instead

echo "$data";

even better.

fyrestrtr, yeah but i want it to remove commas, question marks, !-signs and all that

indeed

You got the hang of it

i only want to allow hyphens and '

9 EST

and $data = $_POST["post"]; ill put where?

how to escape a \ inside a preg_match_all("[A-Za-z.,\\]"); does not work
i want / and \ be valid characters

\ is not a special character.

so normal \ ?

it is also not a range, so I suggest you put it outside the [ ]

/[A-Za-z].,\// ?

|[Aa-zZ]\.,\\|

ah ok

. means something in regex.

fyrestrtr, do i need to run preg_replace first, and then explode it?

if you want to match the literal '.' you need to escape it.

Hey, how do I has session ids in header("Locations:")?

try exploding then preg_replace

f00li5h can you helpo ?

normal get params ?

Alex_Gaynor, what?

php (NEW LINE) $data = $_POST["post"]; (NEW LINE) echo "$data";

q ) but the if statement $arr[0] == 'q', keeps getting passed and it goes to the else

fyrestrtr, does the order of it make a difference?

I thought that doing header("Locations: file.php) destroyed sessions?

if you explode first, then you are running the replace on each word, instead of the entire stirng.

fyrestrtr, yeah… i thought that was a bad thing, is it a good thing?

it shouldn't do Alex_Gaynor

well it seems for some reason W things ' is a word boundary.

unless you send the user to an entirely different url

s/things/thinks/

fyrestrtr, if i somehow was using \W i could just add ' to it
and -

which is why (I think) you are getting you and re as separate matches.

no
i mean \w

Ok, also, do I need to do exit; to prevent the rest of a file from executing afeter a redirect?

correct Alex_Gaynor
or put it inside an if

or just like this http://rafb.net/p/SMbsTW91.txt ? or will that be to simple?

fyrestrtr, oh, no, that's not right… I match for the opposite, anything that is NOT a word, and split on it
\W is anything except a-z, i think

then ' is not a word, so its working as expected.

yes exactly
it does

maybe you just need a str_replace

but i'd like it to ignore '
split by anything except ' and -

it can't, since it is not a word :P

so i can't make exceptions from an expression?

Last questions: for my logon script, should I have it fail if the number of rows returned is 0, or if it isn't equal to 1?

anyone else who can help ?

you would need to write a separate expression that matches your requirements.

if what isn't = to 1, Alex_Gaynor?
I normally do a SELECT COUNT query for the username and password in the database and check the result

if I had ?url=http://www.google.com/page.php how would I pull the host (www.google.com) into a var?

As in, I query "SELECT id, email, password FROM users WHERE email='$email' AND password='$password'" if there is 1 result, that user is logged in, I'm trying to figure out under what circumstances it should fail, which is why I think it should be not equal to 1

I wrote a function for that yesterday, if you want it ihack

Phil4, yes please

oki, say I allow users to register, but I require the account to be validated by the admin before they can login. And then the user logs in before its validated. How do I cause PHP to load the page that tells them their account has not yet been activated?

ihack, one mo

??/

ihack, http://paste.pchowtos.co.uk/?id=639
actually parses it into an array

anyone?

where do I define the ?url= bit Phil4 ?

eh
$arrHost = arrParseURL($_GET['url']);
echo $arrHost;

ah sweet

eh, sorry
echo $arrHost['domain'];

Phil4, so after the function i've got arrParseURL($_GET['url'];
echo $arrHost['domain'];
correct?

pls

what is the advantage to $_GET over $_REQUEST

arrParseURL($_GET['url']); even

anyone ?

that's fine

Phil4, http://icache.ihack.co.uk/test.php?url=http://www.google.com

jameswf-home, neither one has an advantage over each other
they are just used for different things
one has all indata
one only the GET indata

ihack, you need $arrHost = arrParseURL($_GET['url']);

w00t it works!

bru get request are posted as url arguments wich can be pulled via request
*but

(sigh)
thx for the help :-S

so can anyobne help me or not ?

Phil4, I need a function to make all links from $page (html source, so src= and href absolute, possible? If so do you have one?

Hello… anyone here already worked in a 2-way SMS project?

what module gives you this function? imagecreatefromjpeg()

ok so read… if i post formdata as $_POST['q'] to a form form.php?q=foo what wins

Does this look right? /[^a-zA-Z??????\'-]/

*I rtfm

?????????????????????????????????????????????
hellllllo

anyone?

Techdeck, php.net/imagecreatefromjpeg

yeah I see it, but I don't see which module it comes from

bah

any ideas?

Thanks for the help, my login script is now complete

yes, open your eyes
read again

ANYONE WHO CAN HELP ME PLS ???

Phillis, with what?

I still don't see it..

Failed loading /usr/local/Zend/lib/Optimizer-3.3.0/php-5.1.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.0/php-5.1.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied

Techdeck, too bad

Phil4, I need a function to make all links from $page (html source, so src= and href absolute, possible? If so do you have one?

sec ihack

noimnot, it's not in there..

on the phone

Phil4, oh ok

Techdeck, too bad
Phillis, permission denied normally means you have permission problems

ok
i thought that

make sure apache has access to all the required files

noimnot ..

can you tell me what permisions to set ?

Techdeck ..

i don`t know what to set

noimnot, where do you see it?

Phillis, no
Phillis, neither do i

(

it seems noimnot is best at pointing the obvious

Techdeck, reac again
read*
yes

Sessions or cookies

i make people think
jameswf-home, sessions

Phillis, permission denied normally means you have permission problems

how does that make anyone think?
making me read something I already read 3 times, how does that make me think?

Techdeck, go read again

it's not in there

yes it is
i even looked

tell me what permisions to set if you know

I see 'Image Functions' on the left

anyone willing to help with zend?

you are just to lazy to really read

and it gives a list of functions

zend framework?

ahh

in the main table, it just says what this function does
not the module it comes from

zend optimizer

so did you go and look what's behind that "Image functions" link?
or do you expect the solution to pop up out of nothing?

ok, so you could redirect me there
thanks

anyone know of demo applications for zend framework? the bundled ones aren't good, i need a demo web application (crud demo if poss)

because i am not going to think for you
no
i mean yes i could but i will not
next time you will have it easier
and no need to thank me

great, silly debian won't let me install gd

just learn; will be enough if you don't come asking for obvious things again
what?
what tells you that?

aptitude install php-gd?

i got gd installed on debian

-.-
php5-gd

I use unstable..
can't blame it :p

For a server? :P

nope

"silly debian"
you did tho

I use stable for the production servers
this server is just for tests

Phil4, gimmi a buz when your done

and I use php4 :p

will do

could anyone help me with this warning?
Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

php 4? kinky

It required me to install PHP/5.2.5RC1-dev because a bugfix in 5.2.3 stable kills GD support on Mac OS X.

yeah I'd use 5, but the developers are too scared of it

Notice: Undefined index: a big deal?

anyone knows of some nice color algorythms please ? to use on pictures scanning and store in db, then one to generate some matches from some custom inputed color
i am really unsure how to do this

is_null, good thing there are people that are willing to think for you
too bad im not one of them, good luck tho

lol

If magic_quotes_gpc is on, is there ever a time when I will still need to addslashes() and removeslashes()?

Digtitalsabre magic quotes is an ugly, ugly thing.

So I should turn it off and make sure I always add/removeslashes()?

Digtitalsabre, so, does it make you sad that you need to think?

noimnot stop being an asshole

Does it make you die inside when you need ot be nice?

thats like asking a dog to stop beeing a dog
it's what i do

what is the problem http://pastebin.com/m7e7bb846 ?

annoying people to make them use their untrained muscle

Pissing people off is /not/ the best way to get them to use their brain.
Idiot.

Digtitalsabre there's a separate command for that which is supposed to be future-safe, if there ever comes a time when there's another way to make attacks. Let me find what it is, I can't remember.

command not found

Just ignore him, Digtitalsabre, he can look like an asshole without response.

that's the problem

noimnot and how to fix that ?

MalMen, install phpize
some people need a pink wrapper around the real world i know

with pelc ?

MalMen, …

tuuurrrttlleeee

Digtitalsabre mysql_real_escape_string()

noimnot how to install that ?

MalMen, read the manual

i found to install php-devel, but not found that on my apt.get

fyrestrtr, did this look proper? /[^a-zA-Z??????\'-]/
it works as wanted
but i want it to be correct too

Get php5-dev

"some people when faced with a problem think: 'i could do this with regex'; from this time on they have 2 problems"

http://pastebin.com/m43ea8c64

noimnot, for sure

MalMen, apt-cache search somepackagename

noimnot http://pastebin.com/m43ea8c64

MalMen, i don't speak this odd language

Hello, I am trying to execute a php script via CLI… however, it says some the functions of some modules I have installed are undefined… any ideas?
whereas they work via HTTP

I think php-cli uses a different php.ini. Maybe the required modules are not enabled in there. I may be wrong though.

thanks

FYI, foutrelis is right.. look at /etc/php

is there a way to set memory limit dynamically in one of my functions?
i don't want to increase it for my whole site

amonroy, php.net/ini_set

Hey again. So…I'm doing something very wrong I guess because I don't get anythinkg printed out here http://phpfi.com/255736 . Can anyone point me to what my mistake is? (the commented things are other stuff I tried and also didn't work)

thanks, so would this be valid: ini_set('memory_limit','400M'); ?

amonroy, …

yes amonroy

amonroy, human brains work

I got sessions functioning properly yesterday after your tips. It was a simple attempt, but it went off without much of a hitch.

they do, it's quite impressive

Digtitalsabre glad to hear. by default, sessions are simple.

amonroy, then use your own :=}

unfortunately how i'm using them is a bit more complicated

Anybody, I need a function to make all links from $page (html source, so src= and href absolute, possible? If so do you have one?

foutrelis, get a new one^^

noimnot, hearts work too

godsellsbrains.com
KairuMaiku, shut up; you ignored me

prime example of someone whos heart has shrivelled up and died

I mightl get yours, if I find my tools that is.

KairuMaiku, if you cannot understand why i am not wrapping my words in a pink piece of paper it is not my problem.

you were once a n00b, you should have some compassion for them.

foutrelis, don't u dare!
KairuMaiku, i do!

RTFM is not compassion

KairuMaiku, why else would i tell them to think for themselfs instead of breastfeeding them every single byte?

RTFM is what you tell someone who's been a jackass

KairuMaiku, YES IT IS you tit

people.. calm down

you think a user which you tell every single thing they need to know will stop to come back and start learning for themselfs?
KairuMaiku, imagine; if it is a pain to ask stupid questions, will you keep doing it (as an intelligent beeing at least)

noimnot i'm well able to code php. i come in here sometimes when i forget a function and need an answer quick :P

foutrelis, i am very calm
KairuMaiku, that's what google and php.net are for

hi, I'm trying to modify a smarty template, how can I call a function and use its return value as a parameter for another function? such as f1(f2(x))

KairuMaiku, and if you read the buffer you will see i am telling people about functions
i'm just not breastfeeding them.

google isn't very good for reliable answers. php.net isn't any good if you don't remember what it is in the first place unless you feel like clicking through trees. i said quick. :P

aditsu, you do something like f1(f2(x))
KairuMaiku, if you learn to use it it is
KairuMaiku, but if oyu rely on others to google for you all the time you won't

aditsu don't say the s word in here. s m a r t y is somewhat of a taboo.

ok, but what's the syntax? {f1 param=…..? }

f1(f2($x))

maybe in php

aditsu, look at the channel's name

look at my question

aditsu, look at the channel's name
does it say smarty there?

smarty is smarty.php.net

if you do anything with linux you should get a blackberry….

just an fyi. my official job title is tech support. in addition, i do systems design and systems administration. i do enough research as it is. a majority of the time i do google it or look it up at php.net, but sometimes when i'm just looking for the name of the function, it's much easier and
quicker to ask for it in here from people who know it off the top of their head.

aditsu, look at the channel's name

I am having some problems with my php application…. Parse error: parse error, unexpected $ in /mnt/w0103/d44/s48/b02a489e/www/rancidnebula.com/ushipit/admin_login.php on line 40

aditsu, repetition teaches the donkey

jameswf why do you say that?

oh, you want me to repeat?

Sugi, paste code; this error means you have a syntax error

Let me get a paste bin

aditsu, no i want you to stfu about smarty

; on 39

jameswf-home, assumption, but good guess i take it :P

mobile ssh is the coolest thing since sliced bread

http://pastebin.com/mcbd9a1c
a href="http://pastebin.com/mcbd9a1c"http://pastebin.com/mcbd9a1c/a

and I want you to stfu (period)

jameswf ahh ok. the palms have mobile ssh too. it's really quite useful.

KairuMaiku, again, i am not withholding information about function names

Should i have line 39 be };

please take a look here
http://pastebin.com/m5b21e5c

KairuMaiku, look at buffer when i say things like php.net/*

hmmm

MalMen, #
MalMen, Possible reasons:
#
1. Perl is not installed;
#
2. Apache was not compiled with DSO support (–enable-module=so);

!+enter

#

perl is installed

3. 'apxs' is not in your path. Try to use –with-apxs=/path/to/apxs
whoopa
damn pastebin

Just do "ln -s /usr/bin/apxs2 /usr/bin/apxs"

MalMen, #
MalMen, ahr
apxs: command not found
ninstall apxs
i hate pastebin.com now

sorry not ; you need one more }

Oh ok

its always a ; or }

foutrelis /usr/bin/apxs2 not exist too
i install apache and php via apt-get on debian

aptitude install apache2-dev

Are you sure? I use Notepad2 and when I add a }, it doesnt show me a corrisponding {

MalMen, install apxs

Then that symlink and after that pecl

you never closed the else on your opening if

Sugi, maybe you should think for yourself and not let notepad2 think for you?

add a } to the bottom you should be good

Sugi, i heard human brains are more powerfull than notepad2

noimnot, yeah i guess so lol

for some humans, yes.

How does one know when a string is properly slashed for a purpose? Such as for echoing to a page or being used in a MySQL query?

Sugi, good thing we agree

anyone know a good link for readin about the main overal changes/evolution from php1, php2, php3, php4 and php5?

i use kate and the bracket matching only looks for an even number and makes assumptions

parse error, unexpected $ in /mnt/w0103/d44/s48/b02a489e/www/rancidnebula.com/ushipit/admin_login.php on line 41

graywhite, www.google.com

But I dont have any $ on line 40 or 41

Digtitalsabre good programming. Just turn magic_quotes_gpc off and then use the function i gave you earlier.

noimnot im hnaving a hard time finding it on google

go to php.net and go through the archives

changelog

at least a good summary, i'm mo0stly having to go through change logs which takes a while

graywhite look at the changelog

the news archives - read the changelogs

lol

what tha hell kind of mount points do you have?

surely someone has already compiled a list of major changes in a summary
usurely someone has already compiled a list of major changes in a summary/u

yes, they are called the change logs

that is the changelog, available at php.net

heh

KairuMaiku,

alright alright

looks like a virtual root

KairuMaiku, understand the redundancy of pink wrapping paper now?

fyrestrtr, what?

nothing, ignore me.

noimnot nope. i'm just a seasoned *nix/bsd user that abuses changelogs every day. they're more informative than any summary anyone could compile

is guessing (sugi != admin);

:/ you will eventually

Right, but what should they look like? I prefer to know how something works, rather than just knowing that it works.

lol… no i dont have this on my server

Digtitalsabre it should put a \ before any special characters

i.e. after you have seen enough ppl ask idiotic questions over and over again without learning a thing from the answers they get, coming back the next day

its on netfirms.com….. shitty server/bandwidth/service, but 10/yr so ill take it

Digtitalsabre http://www.php.net/mysql_real_escape_string scroll down to the line that says mysql_real_escape_string() in bold and it tells you which chars it escapes
noimnot i have to use the pink wrapper. my official job title is tech support.

KairuMaiku, nice breastfeeding you got there
KairuMaiku, can i suck on your nipple too?

I worked with a company who signed up for netfirms… When i finished with them the company had its own LAMP box and dropped netfirms

noimnot i assure you that my boss would find it hilarious if i went "rtfm" to all of our customers, but i don't think the customers would

cut with the trolling, or leave.

AlexC_, what trolling?

I rtfm and well what idiot wrote tfm bleh

jameswf i work with companies who were on midway. or netfirms. or dreamhost. or hostgator. when i'm done with them, they end up with boxes under a reverse proxy and a mysql cluster with 3 or 4 machines?

http://pastebin.com/m11f3538e Parse error… anyone have an idea? the error is at the bottom of the pastebin

i read alot of "thanks noimnot" today, do people say thanks for trolling these days?

your attitude towards others when they ask a question is not the best and just tell them that "the human brain is the best, go use it" - that is not helpful

Sugi, where is line 41?

there is no line 41
erm yes tehre is..

AlexC_, for you it might now; maybe you should use your brain :P

its ?

funny.

Sugi, try indentation
well help you see where one block starts and the next one ends

alright

Sugi, also there is a thing in your head that helps with such problems

get a decent editor that can do block collapses.

no need for an irc channel

last i checked, tfm isn't in your head, and neither is google

your problem is incorrect }

is it?

noimnot take your chat to #phpc

KairuMaiku, i think i said rtfm 1 time today what is your point?

fyrestrtr i'm done.

fyrestrtr, might be a missing " too
fyrestrtr, also, mind your own business

what's the best way to get the timestamp for the first and last days of a month?

grigora, php.net/date

quick advise // when using pastebin remove passwords from your code//now change your passwords

that wont help, noimnot

AlexC_, why not?

ROFL yeah that is a good idea huh

he wants the timestamp

lol jamwswf

bla bla bla

AlexC_, so? date has no way to create the timestamp?

this is why i use a connection.inc.php file

go read php.net/date and figure out why

anyone can speak in bhow bhow?

bit of advice. always include passwordy type things in one file somewhere off where you don't need to pastebin it. ever

thanks

grigora, most welcome

KairuMaiku, thats a good idea! thanks ill do that

explain how he will get the timestamp for the first and last day in a given month with date()

AlexC_, U
fyrestrtr, U

so did u guys get to seeing what the problem is?

AleC I am guessing math

that will not work,

guys, does safe_mode works on windows platforms? anyone running php on windows ?

AlexC_, like hell it won't

no, it wont.

AlexC_, he will also realize that he doesn't even need date!

strtotime() is what i was thinking.

it works.

ok - you have 100% no idea what you are going on about,

are you running php+IIS ?

AlexC_, aaand realize it is just the amount of seconds since 1970..
AlexC_, an intelligent beeing will then conclude it can be done by simple math

no, I like my servers to have some decent uptime.

fyrestrtr:

someone with more of a brain would realize the correct function is mktime()

so you, being an intelligent being (which I beg to differ) - should have realised he does not need date() and not have linked him the to date() manual page,

if month has 31 days eom = 31 beginning of month normally 1

but you go on — you are doing a great job so far.

so why tell me? tell him!
i would just use time() tho

just wonder which IUD or GID will safe_mode allow in IIS. Don't understand exactly how it works

which is what it says right there at date's man

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

Comments are closed.


Blog Tags:

Similar posts: