If I use --force it generates the configure script fine, it configures fine but errors linking when making

Pollita

I also think that DOMA is constitutionally invalid as it superceeds the full faith and credit article of the constitution. Though I grant the right of a given state to decide when and how it will grant a marriage license.

lig

(Action) goes back to findout what happened last night

bubblenut

cvs, release php_5_1_0

Pollita

Though that's a problem in itself when it comes to that state's guarantee (if it has one) of non-discrimination

redduck666

stupid question: can i use php without httpd on my local machine?

Pollita

redduck: Sure, you can use the CLI versionredduck: You got nix or doze?

redduck666

Pollita: nix

Pollita

Then (unless your distro puts it elsewhere) look for /usr/local/bin/php

close_to_debian

TML: I am confised why is it not workingTML: confused

Pollita

You can run: php -f filename.php or php -r 'somecommand();' or a few other ways

redduck666

Pollita: thanks

chasep_work

is there a way (using imap functions or something else) to use PHP to forward emails in an email inbox?

porkpie

can any one help with this please file_get_contents(): php_network_getaddresses: getaddrinfo failed

Pollita

chasep: Not sure what you're asking, but in all likelihood, yes.

porkpie

I am not sure whats missing ....

Pollita

porkpie: You're requesting a connection to a hostname that doesn't exist

chasep_work

Pollita: now that I Think about it, there HAS to be, otherwise how would squirrelmail do it?

porkpie

OK thanks

Pollita

chasep: Precisely :)

bubblenut

Just running it all again to get the exact error, another odd thing is that there seem to be far more warnings during the make process than usual

Pollita:any ideas why it would put in the extension.xml.gz ?Warning: file_get_contents(http://extensions.xml.gz): failed to open stream: Invalid argument in

bubblenut

This is the error I'm getting when making,http://pastebin.com/580971

porkpie

Pollita:Do I have a module missing ??

bubblenut

the second link is the one to look at, it steps back a bit further

zircu

bubblenut: the error means bascially that the .h files were found while compiling things but when linking the binaries their were no files that had those definitionsbubblenut: what does your configure line look like?

bubblenut

http://pastebin.com/581000I've removed the --with-pdo-mysql and am now trying it withoutIt's annoying because pdo is the only thing I'm doing this for. There's a but in pdo in 5.1 above 0 and one guy was saying that on windows copying the dll compiled for 5.1.0 over worked, I was hoping to try this with the .somakes fine without pdo-mysql:grr:

zircu

bubblenut: well, you have other optionsone thing is that you could help configure by specifiying a path a path to your mysql install --with-pdo-mysql=/path/to/mysql/bubblenut: or use the pecl option, installing it with the pear command 'pear install pdo-mysql'bubblenut: or grab the pecl.php.net/pdo_mysql code and install it as a shared extention.. of course pecl.php.net/pdo would have to be installed first

TML

bubblenut: Looks to me like something went wonky earlier, probably ./configure, that's stuffing you up by leaving out -lmysqlclient

slowroth

hello! i call mysql_connect($server,$user,$pass), but it fails and mysql.log shows that it doesn't use the password. any help is appreciated.

close_to_debian

$_POST['cieraAdmin_password']; does not worj$_SESSION['cieraAdmin_password']; workswhat might be the reason

slowroth

when i connect from the cmdline with --> $ mysql -u user -p dbaseit works ^^^

close_to_debian

?

AfroTurf

slowroth: paste code?

zircu

close_to_debian: there is a big difference between $_POST and $_SESSION

AfroTurf

zircu: HUGE^_^

close_to_debian

it works on the old serverwhat can be the reason

AfroTurf

close_to_debian: is the old server and the new server same version of php?

slowroth

AfroTurf: http://paste.uni.cc/8698

AfroTurf

slowroth: first off $dbase is what your using as your db name soo i don't know what this is then $dbslowroth: ah nvmscratch thatslowroth: try single quotes around the first 4 vars

slowroth

AfroTurf: nopeit is funny that this same thing works elsewhere (in another script)

AfroTurf

slowroth: and you don't need mysql_selct_db($dbase, $db); just mysql_select_db($dbase);

bubblenut

Cheers for your help, I haven't managed to sort things out yet but it's proving a pretty good learning experience ;)I'll keep you posted

AfroTurf

and read www.php.net/mysql_fetch_arrayso you know proper arguments for mysql_fetch_array

xored

how to write some post vars into the header which are "submited" by a normal link then

AfroTurf

slowroth: and in the future use standard names for queriesslowroth: like $sql and $resultslowroth: soo people know what that is

slowroth

AfroTurf: thanks ... however, i'd like to discover why mysql_connect() doesn't send the password to the server.

AfroTurf

are you getting requires passworderror

slowroth

AfroTurf: i see "Using Password: NO" in mysql.log

AfroTurf

slowroth: when you run your php script what do you seeslowroth: try this approach http://paste.uni.cc/8700

slowroth

AfroTurf: same thing

AfroTurf

slowroth: better thing to do would be if(!($db = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD))) { mysql_errno() ': ' mysql_error(); }slowroth: this way when you run your script it will tell you whats wrong

if ($foo) is equivalent to if ($foo == true)So to answer your question, an empty $myString would be considered false in that if statementgrrrfu*king ethanol ads

AfroTurf

what tells an $var to be ignored

Pollita

Its lack of self esteem

AfroTurf

like $var = NULL; ?

Pollita

Oh, you probably want unset($var);

AfroTurf

pollita: ah thank you

shadowarts

http://shadowarts.shadowarts.org/svn-repo/?do=browse&project=techwars&path=/ <- on this page author names are cut short (to 8 characters, svn list limitation...) anyone have a bright idea on how i could take this short name and convert it to a longer name (all the authors have unix shell accounts with the same name)

zircu

shadowarts: create a map of names?

shadowarts

how so?

zircu

array('shadowar' => 'shadowarhog');

Pollita

$accoutns = file('/etc/passwd'); $results = preg_grep("/^$partialname/", $accounts);Something like that should do

zircu

or thatof course partials could match each other.. user: foo and user: foobar, some changes to the regex could probably fix that

shadowarts

well for now that might just work

zircu

as long as you dont have shorter names that match longer names yea

Pollita

zircu: How would you fix that?The whole issue is that they ARE partialsunless you mean short (less than 8 chars) names....

Renacor

is there any way in gd to get cmyk values of an image instead of rgb values?

racoontje

heyerr

shadowarts

well if the author name is less than 8 chars it doesnt have to check

racoontje

wrong channelstill, hi everyone! :P

zircu

Pollita: it is the case when there is a shorter username trying to match a longer name

Pollita

In which case I'd only do the grep when $partialname is >= 8 characters long and just use it as-is for shorter names

AfroTurf

i have an $array of elements from a db, anyone know of a way that <input type="checkbox" /> if value from the $array matches the value of the input then have that box checked. and then continue to display the rest of the checkboxes?

Pollita

But: foobarba will match both foobarbaz and foobarbang and there really is no way to tell the difference

zircu

well if I user 'foo' posts and there is a user 'foobar' the regex would pickup both