logs archiveIRC Archive / Freenode / #php / 2006 / March / 3 / 1
zircu
bubblenut: where did you get the code you are trying to build with?
bubblenut
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 version
redduck: 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 working
TML: 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
zircu
bubblenut: pastebin the errors you are getting
bubblenut
http://pastebin.com/580969
radone
Exists in Smarty templates something like in_array($i, $arr) ?
I need to render checkbox (un)checked according to db
porkpie
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 definitions
bubblenut: what does your configure line look like?
bubblenut
http://pastebin.com/581000
I've removed the --with-pdo-mysql and am now trying it without
It'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 .so
makes fine without pdo-mysql
:grr:
zircu
bubblenut: well, you have other options
one 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']; works
what might be the reason
slowroth
when i connect from the cmdline with --> $ mysql -u user -p dbase
it 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 server
what 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 $db
slowroth: ah nvm
scratch that
slowroth: try single quotes around the first 4 vars
slowroth
AfroTurf: nope
it 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_array
so 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 queries
slowroth: like $sql and $result
slowroth: 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 password
error
slowroth
AfroTurf: i see "Using Password: NO" in mysql.log
AfroTurf
slowroth: when you run your php script what do you see
slowroth: 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
zircu
also, ensure that ini_set('error_reporting', E_ALL);
AfroTurf
yes thank you zircu
slowroth
AfroTurf: mysql_connect(): Access denied for user: 'user@localhost' (Using password: NO) in ... on line ...
AfroTurf
slowroth: there ya go
slowroth: permissions problem
slowroth
why doesn't mysql_connect send the password i supplied
:D
AfroTurf
slowroth: try no password
slowroth
AfroTurf: i can't try it without password -- the password for that user is not blank
AfroTurf
slowroth: you sure
regress
what would make a file not writeable even though it's chmod is 777
?
slowroth
AfroTurf: yes, i connect with that password from the command line
AfroTurf
slowroth: with the same user?
slowroth
AfroTurf, yes
regress
jesus christ....ipowerweb's setup is frustrating
AfroTurf
slowroth: the only other thing that comes to mind is permissions problem
regress
I'm uploading files, then chmodding them to O777, but php refuses to see it as writeable
AfroTurf
regress: you mean you can't upload them?
regress: using php?
regress
no, they upload perfectly...and then I copy() them, works fine, then I chmod them to O777.....then I want to open one of them to write to, php says it's not writable
stelt
what editor has good color coding, PHP parsing and can work over FTP ? Somehow my Jedit doesn't want to do FTP anymore :-( , it times out while Filezilla works ?!
slowroth
but as far as i can see from some web posts, this could also be a bug in mysql itself .... hmmm... no idea :-(
AfroTurf
regress: sorry mate can't help with that one
regress
man, drivin' me nuts
stelt editplus
free trial
never expies, heh....awesome piece of soft
racoontje
php considers an empty string to be False right?
insin
if you use ==, yes
if you use ===, no
Eleaf
meow
racoontje
insin: er?
insin: just the string
insin: if ($myString){echo("Yay!";)}
Pollita
if ($foo) is equivalent to if ($foo == true)
So to answer your question, an empty $myString would be considered false in that if statement
grrr
fu*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 that
of 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 partials
unless 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
hey
err
shadowarts
well if the author name is less than 8 chars it doesnt have to check
racoontje
wrong channel
still, 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
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 next »