getAvailableDrivers() lists only sqlite2, but the mysql driver is in there, I’m sure about it”

anyone can tell me how to set that file_exists will check by default in specific dir ??

why don’t just just suply the path.. ?

w0jtas`: make your own fileexists() function that will set the path?

it will use the current working directory, but you can do file_exists( ‘../file’ ) or anything you fancy; Remember file_exists returns true on file or directory existing, you might want is_file

heheha :P

$dir = dirname( __FILE__ ); if (file_exists( $dir . $fname )) { .. }

function fileexists( $file ) { return file_exists( ‘/my_default/path/’.$file ); }

if you specifically want to know it’s a file.. you’d want to use is_file, though

that is exactly the same as not using $dir = dirname ….. since that will return the directory of the current file, and that is where file_exists() will look for if you just do file_exists( ‘foo.php’ );

ye I know, but I was talking about using the $dir in general

what type should a column be in mysql if i want to store a hashed password varchar(255)?

why do you ask that in __PHP__

it’s just a string

why not in __MYSQL__

so type string would be ok?

it’s the wonders of this channel - everyone just comes in asking MySQL questions - it drives me mad to

char(35) or so Depending on the hash and salt

ok cheers yeah thanks

some peoples logic scares me

the other option is just make everything varchar(255) no matter what That seems to be popular

hehe yeah i have done it that way in the past

well it’s not that bad if you use MyISQM MyISAM even

Why?

because in the table itself only a ‘pointer’ is made

hmm… so, where should i go to get help regarding my problem? i mean it just isn’t normal for phpMyAdmin to be causing an infinite loop like that :-/

to the actual content, in InnoDB the actual size is used and put in that row doen’t mean you should use varchar(255) for values that only have a max of 5 characters ofcourse

how do I get the html document’s character encoding?

it’s defined

Doesn’t matter. dynamic row sizes mean bigger tables on disk == more seeking

dynamic is relative, since it’s still fixed to it’s max length

what do you mean its defined? sorry I ment from a remote (desired) url

http://www.w3.org/TR/html4/types.html how do you read the page

check for a content-type header with a charset, if it’s not there, you can’t tell

I was able to retrieve title, and metatags, now I need to convert the metatags to UTF8, so I need to first get the original encoding

there is a difference in converting something and intepret something different my that’s a tongue breaker kinda has a catchy tune to it though but as TehSausage said

“Hello” is probably valid in almost every character set, but theres no way to tell which one i used

test

fails I’m out, bb people, cya monday

bye

testtest

ok, stop with the tests

o.i test if i can post my message

It doesn’t seem to be working by the looks

ÓÐÖ9úÈËô

stop that you want to “test” things, go to another channel or join #this_channel_does_not_exist and test

, and I have my server installed at c: But I can’t open file:/// -links. What to do?

hey guys, I need to parse an XML file, I have to use one “branch” and it has 3 levels of includeed tags … what function should I use?

XML DOM, SimpleXML?

thx i’m going to check

google “php5 XML” there is a good article on a Zend page or something like that

thanks

Can no-one help me? = =*(

no, you’re doomed

Is it impossible to open files from file\\ ? (With Firefox)

PHP supports stuff like fopen(”c\data\\info.txt”

Djerkaf, how is this related to PHP? eithe way, I’m off, adios

I have written a php page so that I can browse my f:

is it possible to get the DPI of an uploaded image using GD? I can’t seem to find an answer on the intarwebs

But I can’t open the files; just open the folders.

poor Windows users, you have to keep doing \\ to get anywhere? madness

So I thought there might be a good php solution. ^^ \ or / doesn’t seem to make any difference.

AlexC_, no forward slash works fine too

oh so there is some normality in that OS somewhere ^^

No, not really… However.. Any tips?

hi, what does this mean Call-time pass-by-reference has been deprecated - argument passed by value? or why has it been changed

i’m trying to use ldap account manager, it require php with gettext. what is the way to get it ?? do i have to recompile php with gettext ?

[my test], [my test2], [test test].

all the string?

yes

could you explain more please

I have a text inside my db that is [home]this is the home [who are us] this page talk to us. Now I would like to grab the […] and create an automatic menu and with the followed text I would like to build the page.

I’ve got a fun one for anyone listening. Is there any way to get php to establish an http session to another website for the purposes of automating some web-based tasks?

curl

anybody for my problem with gettext ?

are sessions kept as cookies inside a browser?

preg_match_all( ‘/\[(.*?)\]/’, $str, $matche s); a cookie is set with the session ID, all session data is kept on the server what question?

i’m trying to use ldap account manager, it require php with gettext. what is the way to get it ?? do i have to recompile php with gettext ?

install the php-gettext package

thanks! I’m reading the manual page on it now

check out one of the recent php|architect issues - using curl in that scenario was covered thoroughly in an article in one of them second last issue I think

wonderful; any tips on things I might stumble on?

I’m trying to find the link for you

Somebody already had problems with PDO + Stored Procedure + MySQL, using command PREPARE inside of the Stored Procedure?

https://www.phparch.com//issue.php?mid=110

I’m sure many have had problems with it, why not ask a question instead

that for yourself Yoshi325

Does someone here know a good tutorial on shopping carts etc.?

kenguest; is php architect worth getting a yearly subscription to?

anyone familiar with the GD functions in PHP?

just ask the question

AlexC_, good idea, i writing in my blog

I did already…but here it is again is it possible to get the DPI of an uploaded image using GD? I can’t seem to find an answer on the intarwebs

yes - I’m busily buying back copies every so often

no, I don’t think it is

Quick question about the date( “F” ) function…

all I wanted to know, thanks

Is *this* http://pastebin.com/m2a1f836e really the expected behavior?

weird,

anyone uses dpt? or pdt php development tools for eclipse

Ajaxamander, anyway, months will probably never change so … you can use an array

Hahhahaaha, you know what the problem is? mktime is defaulting that next parameter to “today”s date (31) so it’s only screwballing the 30 day months silly silly silly I blame myself 40% and mktime 60% no, myself 30%, mktime 60% and the docs 10%

doh of course,

and no one has complained yet because it only happens every… heck

you should post that in the comments,

1 out of 60 days on average good pt.

someone program could get buggy because of that ^^ works for 28 days then brakes

what do you guys use to benchmark old code vs new code? i am trying to use ab and its kind of hit and miss it appears on full pages

anyone uses php development tools for eclipse?

hey all, I’v got an array and I’m trying to find the key corresponding to the greatest of the 3 values in the array can I a sort it and get the first value somewhow? whats the best way to get the first key of the first entry in an array?

thanks

someone knows a good msn messenger lib for php? i tried msnp and mzk, both have problems

^robertj: you could use something like php.net/current function, after calling reset.. or you could use array_keys($arr) and the first from the return would be 0.. but both sorta untidy ways

 

Cheapest web hosting services

 

ok whee

thanks, that lead me to the best solution…

this is dav7, under a different nick as dav7 was banned for join/part flooding (client bugs) weeks ago.

the best way to find the first key of an array is … $x = key($array); //end drum roll

[xyz]: if you were banned I wouldn’t go around going “hey, I was banned, but now I’m using a new nick!”

no, I just want people to know, because I’d like said other nick unbanned

hey, I was banned, but now I’m using a new nick!

~_~

uou too h4×0r!! bah ;p

haha

you change your nick, very smart

lol

Now how can I get the text between the elements?

that reg-ex does, var_dump( $matches );

anyways, to the point of my problem. for the past 2 hours my head has been doing a blank on me and I simply cannot for the life of me think of what to call a particular function. *continues typing*

AlexC_ I get all the maches correctly AlexC_ now I would like to get the text

someone knows a good msn messenger lib for php?

‘\](.*?)\[/’ woops ‘/\](.*?)\[/’

and the last text?

not sure, I can’t think how

I’m currently writing a backend and said function figures out if the URL contains any .css files and then sends them off to somewhere else to get parsed. I simply can’t think of a name for said function, and also think the style of coding I’m using isn’t smart either. Basically I want a basic framework that takes the URL, figures out its type (URL, extension, etc) and then runs it off to different parsers. Any ideas? Thanks. oops anyways

[menu 1] bla bla bla [menu 2] blo blo blo [menu 3] test test test doesn’t works well it get only the first two item …. ]bla bla bla [ ….

‘/\[(.*?)\](.*?)/’ maybe no, hum. .. I’m not sure

AlexC_ get the [menu …] items

… that’s what the original reg-ex I gave you would do

exact

?

hey when i submit a form.. usin the post method… some of my variable names get changed… ie space gets cahnged to underscore and dots get removed… what i want to know is… what else gets modified when you submit forms… (modified in the var name) ? i want to know so i can use str_replace to replace all the characters accordingly.

AlexC_ the regex grab only the menu items

which is just what you said you wanted

\](.*?)\[

nothing should get modified how are you seeing they are changed? pastebin the code please

I would like to grab the text after the brakelet

I’m not sure how to do that,

when i submit a form.. and say my checkbox has a name like “this is a test” … on my reciving php… te variable name changes to “this_is_a_test”

no variable’s are set when you submit a form

Is there a way to return the parent of an object? Something like return parent?

get_parent_class() ‘/\](.*?)\[?/’ maybe

ok.. well i was wondering what gets changed in the name… so i dont have problems handling my form

im trying to use the Pear Blowfish class to encrypt a string but im supposed to get back a 64 bit hex string representing the password, and instead im getting a 16 bit string what am i doing wrong

Was that at me? I don’t want the class, I want the object.

you will see $_POST[’foo bar’] .. I think ^^ will go and check now

woops sorry yes

AlexC_ nada AlexC_ nothing to do :

AlexC_ thats what i thought but its not the case… so a foreach on $_POSt and then echo the keys

Time for weekend people! Beer, here I come!

er do* lucky sob.. my weekend doesnt start from another 5 hours :p

well, mine probably started five hours earlier

6 for me

What I’m looking to do is take a object that is an instance of class B that inherits from class A and get an object that is of class A from the aforementioned object.

s/mine/my day

ah yes, it gets converted

what timezone berry__?

the best way to do it is, don’t have name=”foo.V£$456t” or other random charas, s/charas/chars

or spaces heheh

i found a way actually… just remove all special characters and only keep chars

Dynom, the mem stay uder 250K (I had alloc 4.8 Mega) I start to suppose that the problem is a wrong use of semafores

thanks

that seems very pointless just correct it in the HTML, will mean less confusion as well

my forms are dynamic… i cant control what the input names are gonna be…

I see,

[menu 1] bla bla bla [menu 2] blo blo blo [menu 3] test test test

is phpnuke still widely viewed as being woefully insecure?

Anyone know if, say DOMNodeList