if im going to be passing an array as a parameter to a function do I need to declare that in the function Assuming

Connect('mysql://f00li5h:purrpurr@localhost/f00li5h-app'); #oh, look all done

ok now i cat get my header bit to work again
cant

give code

did you place it before any echo statements?

yes
first echo is straight under it

things outside php count as being echo'ed

How can I split a string at the last comma it contains, and give the first substring into a variable?

http://pastebin.com/d7089fff0 thats what i have now

doesn't session_start() send headers?

yeah so i need that after the header or ?

it adds them, but i don't think it sends them

Hi, I need to launch a ssh connection from a php command line script. What's the best way to do this?

system
actually, it depends on what kind of information you want, proc_open will give you everything (as far as i know)

I cant figure out why it's complaining about a database not being selected.

any ideas where im going wrong Kylratix ?

it makes no sense. I have another script that works in the same way, and it works fine

thx. I'll check both at php.net

it's likely thath you didn't select a database

you could try ob_start() at the very beginning and ob_end() just –after– the header() call

that's messy
the trick is to just not send anything to the browser

how do i make sure of that ?

Ninth line of the file: mysql_select_db($db_name) or die(mysql_error()); — Seventh line of the file: $db_name = "rhs";

go through your included files

And it's not having any problems there.

and make sure they won't output errors
or anything

pastebin, kpls

f00li5h the only echo i have is the one under header can i change that ?

i don't think the ob functions are that messy
you should know where your program begins and ends

pardon?

echo htmlentities($result);
that doesnt set $result does it ?

if it's under the header call, it's not going to fuck it up

ok yeah it is
has to be session then ?

include("/var/www/data.php"); # does this send any content?
are you sure it doesn't?

try it
http://us.php.net/manual/en/function.headers-sent.php

just has two lines $uname = dfsfsf and $pass = gdgdgdfg

to debug

make sure that php is in column 0 of line 1, and remove the ?

you can find out the line number where the header was forced

ok will do cheers gimme a sec

Oh lawd
I can't believe that was the problem

being before the database stuff at the top of the file was causing the problem

So I moved it to right before the HTML
and now it works
o_o

if you didn't fix it, it isn't fixed

If I were actually so concerned about checking to see if sylid is a number, what would I do to make sure it's a number? It must come from an outside source, so I must get the number through the URL

didnt work f00li5h

is_numeric … or just cast it to an int
what didn't work?

can someone help me with the syntax error on line 15 of this? http://pastebin.ca/634222
it's a parse error, but im not sure how to fix it

if (!headers_sent()) {

how about escaping your '`s

if( headers_sent() ){ die( "headers should not be sent yet" ); }

yeah, you totally need to escape your '

$line = ''; $file = ''; if (headers_sent($file, $line)) echo 'headers_sent() at '.$file.' : '.$line.'br /';

ah, thanks

i get errors and headers should not be sent yet thats means they are sent ?

it does

so its is session start

find out where they're being sent. infact, error_reporting(E_ALL) should tell you
you should get a notice 'output started at foods.php line 11' or similar

how do i use that f00li5h ?

stick it at the top of your code,
or ideally, in your php.ini

ok

ini_set('display_errors', true); as well

/me wants pragmas

syntax error, unexpected T_STRING in /var/www/localhost/htdocs/working/scripts/validate.php on line 3 which is teh session start bit

i always stay away from pragmas

hrm?

they make kitty scared

yeah dunno

use strict; use warnings; # must have

bah, gcc -Wall =D

ok got it
session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/localhost/htdocs/working/scripts/validate.php:2) in /var/www/localhost/htdocs/working/scripts/validate.php on line 2 — thats session_start

shazaaam
when in doubt, error reporting

so now what the hell do it do put that down the page ?
yeah

uhm, yeah call session_start() after header()

ok now php
echo $_SESSION['phonenumber'] ?
woops

did they drop libapache-mod-php5 from debian unstable?!

try ##debian

nah, screw it, I'll go check p.d.o instead

on the redirect page

-_-

ugh ciaran
that fat whore
anyway, uh

riiiight..

$_SESSION['phonenumber'] = $xml-SERVICE_PHONE_NUMBER; is used to set it

was the other php file (with the redirect) the one that set it?

yes
i need session_start on all pages or just the one that sets the session vars ?

GSN - on all pages that refer to any sessions vars

ok thought so
im also gettin
session_start() [function.session-start]: Node no longer exists in /var/www/localhost/htdocs/working/result.php on line 2

xml–
any luck?

bad karma, BAD karma!

!karma xml

xml–SERVICE_PHONE_NUMBER; ?

do i need permission to karma things?
hrm? no.

they don't like xml

ahh ok

The system is working fine now. I'm making some tweaks :P

set a var before and call that ?

nope

Such as.. "Unknown column 'wedhome' in 'field list'" — lol, typo

hmm
how to work with sessions and header at the same time

then there's a trick to it?
is it, !karma up foo, or something daft then?

with header problems - it can be a simple space or newline that can cause it to complain

nothing, just confirmed your karma on xml

$ph = $xml-SERVICE_PHONE_NUMBER; then $_SESSION['phonenumber'] = $ph ?

it said that xml was karma nuteral…

yeh, but doing xml– decreases karma, so my reaction was: bad karma.. BAD! Karma!

GSN - put your session start back at the beginning of your validate.php file for starters if its not already put back.

ausome its not because of the header problem ?

why don't you comment out the redirect line
and see if you get any warnigns

so your session_start precedes your header() redirect? or have I got hold of the worng end of the stick?

hi, anyone know why I can't use the $email array in the second while()? http://gargantua.servehttp.com/sql.txt

session_start preceeds it if its at the top

GSN - yep

ausome ill pastebin the curent version

because you don't really want to global it each time through the loop

is there an overhead associated with include();

also, you're not in a function, so you don't need to global it

GSN - grand idea

no, there isn't, it's free

and you realize that your $email array will be the last row

i mean loading/size wize

of your query

ie. should i use include() sparingly & try to consolidate my code into fewer files. or should i spread it over a few files and include them into the page

f00li5h, but I just added that, someone told me it was a variable scope problem.

no, it requires no resource usage at all (and you're not allowed to disagree until you come back with statistics)

ausome http://pastebin.com/d59a8bc5d

cool im just checking

no.

f00li5h, but not having it there doesnt do any difference.

it doesn't make sense to use $email outside that loop

why not?

because you won't get it for each value, you'd just get the last value (if any)

oh right…
well there's one problem..

plus it's the same query

GSN - ok you've got your session_start after your redirect - that wont work. session_start has to be the very 1st line after your php

no it doesn't

f00li5h, the emails table doesnt have as much values as much as the `users`.

so?

ausome that doesnt work because session_start send headers ?

what are you actually trying to do?

fooli5h - it's good practice

f00li5h, if I put the first while loop inside the second one it would only show the number of rows the `emails` table has.

how do i use session_start and headers ?

where does it say that session_start sends the headers?
no, it won't

GSN - you have something "Sending" b4 the header() -

That problem wasnt directed at me.

hmm ok

what are you actually trying to do?, what do you want a list of here?

you have to associate the emails table with the users table

Call to a member function display_contents() on a non-object in

for the query that i think you want

non-object?

what? where?
you have to include classes before session_start, for one

code result. just wondering what call on non_object means

well, any classes of ojects in the session
which code?

mine!

check the same link f00li5h, It still does the same thing.

call to a member function on nonobejct is that generic

listen, you still have not told me what outcome you hope to achieve

ausome i put it at the top now the redirect doesnt work http://220.245.196.23/working/index3.html use to form down the bottom just put in a 10 digit phone number

if you don't show me code, i'm not going to he able to help, am i?
why is the $email loop empty?

interesting point.. http://phpfi.com/252329

because I just want the rows to get stored in $row.

is the error message in there too?

yeah description
top of the page

then why are you even running the other query?

GSN - where else are you sending headers?

easy, $cart is not defined anywhere

i dunno ??

GNS - it's in result.php?

ill check.
i think it may be defined in shoppingcart
oh i see

f00li5h, which query?

1 sec

GSN - whats your result.php file

ok no error now but doesnt work 100%

ill pastebin it

the $emailr one
if you're not looking at the results, why are you running the query at all
does it make sense to run a select, and then discard the results?

f00li5h, because I want the email feild from the table `emails`.

then join the table, and run it as one query

how?

select * from email, user where user.userid = email.userid, or whatever column joins them
ofcourse, users that don't have emails won't show, and emails that don't have users won't show…

ausome http://pastebin.com/d60625694

f00li5h, so there's no possiablity of doing it my way?

you'd have to do an outer join to get them. to find out more about outer joins, see #your-database
your way is just plain wrong, stop it now.

just different $variables for each.

joining of tables is something that should be done by the database, not in php

i cant see anything in result.php ausome ?

why doesn't that work?

what are the errors it reporrts?
your html-inline-with-php is making me dizzy, put the html somewhere else, and include it

ok

did you miss the part where i said "stop doing it as 2 seperate queries"?
incase you did
stop doing it as 2 seperate queries!

f00li5h, uh no errors, just all the feilds are printed in the first row.
f00li5h, but I don't wannnaaaa!

http://blog.zenspider.com/archives/2007/07/how_irc_feels_too_much_of_the_time.html

whats a good tutorial on doing that f00li5h ?

it. is. wrong.

any other ideas ausome

i really don't know… i'd suggest using templates
but that's a flamewar/troll paradice

speaking of which, good morning, my pesky subjects

aah, Mr Seth, just in time

ok

GSN - try removing the leading space b4 your session_start iin results.php as a try

stick all your session cruft into includes/common.php … and make sure that gets included at the start of all your scripts.
no more thinking about sessions, get them out of the way

ausome same error
ok f00li5h

GSN - any spaces after php - somethings sending out

error?
the spaes before php are the problem, not the ones after it

ok going over files for spaces

GSN - good to see the good ole CSS Layout

at the end ?

http://pastebin.com/d2e5f14b — the errors f00li5h

no, you don't need it, and it tends to cause 'output already sent' problems in includes

ok ill delete them all

have sessions ever worked on this webserver?

dont know

’cause that looks like a no-premission-to-write type error
coming from deep in the belly of php

hmm ok
php has session support compiled in

yeah, but it may be having trouble keeping the session store up to date

how would i check that ?
are there any use flags that need to be compiled in with session ?

no GSN

ok
it worked when the session_start was after the header

then you must have output_buffering enabled in your php.ini - if you do it's probably best to turn that off

ok will look hang on
its already off
this is doing my head in
all i wanted was a redirect with session vars enabled
ausome any more ideas ?

just do session_start() at the very top, then set the redirect header before anything is outputted

yeah we tryed that

and what happens?

http://pastebin.com/d59a8bc5d — the code
get errors and no redirect but it outputs the validate.php page

GSN - welI just ran your results.php file here and it ran - so thats ok - on my server

add at the top: error_reporting( E_ALL ); ini_set( 'display_errors', 'on' );

what about validate.php ?
ok
ill pastebin the errors
http://pastebin.com/d2e5f14b

Can I use proc_open to open a ssh and then feed the password with pipe?

mail("bah@bah.com","testing","testing","From: test@test.com\nReturn-Path: test@test.com\n");
is there a reason the return-path won't work?
it won't set it

GSN - I'm not getting your errors here - I've commented out your include and your curl statements - otherwise it redirects fine

why would you see a return path?
don't you mean reply-to ?

why wouldn't I?
no, I mean a return path

what do you expect from it

GSN - whats in data.php

so if the mail was sent, and there was a problem sending it to a certain recepient, it will send the error message to the mail in return-path

!tell Techdeck about mail()

?

ini_set("sendmail_from","$email");
I'm afk for a few mins

Dynom, let me try

there was a factoid that said "don't use mail() directly, it's painful and it's often a security hole"

GSN - I'm off to hunt and gather dinner for the mob - so I'll be gone for a wee while - Good luck

php
$uname = "xxxxxxxx";
$pass = "xxxxxx";
?
woops
thats data.php ok cheers for your help so far

still nada dynacrylic
Dynom

any more ideas AlexC_ ?

I've never seen that [function.session-start]: Node no longer exists error before, and neither has Google

o yay if google doesnt know

he said he's going away

ALexC_ http://bugs.php.net/bug.php?id=33142&edit=1

AlexC_, k

This problem occurs when simplexml_load_string is used within the
session.

$_SESSION['phonenumber'] = $ph; change to $_SESSION['phonenumber'] = (string) $ph;

ok

what sort of time does file_exists() take?

i'd expect it'd be one stat syscall

time??

no i mean
if i run file_exists() about 50 times. would it take a lot of time?

run some tests?

saaamy, it depends, is your filesystem on NFS, on a floppy disk, what speed are your disks, how big is your disk cache?

hence why i asked :p

there was a factoid, but wolfey thought its fud and killed it

i don't really see another choice, unless you're going to use glob or opendir

i'm uncertain. shared web hosting

why does my code always end up giving me mind hurt

saaamy, either way it's 1 syscall per operation (atleast)

'fud'?

$config = substr_replace($config,"\n".substr($config,$ptr,$eol-$ptr-($eol-$ptr-$len))."$val;",$ptr,$eol-$ptr);

ick

i'm just wondering in general what sort of time that takes to process
so yeah

wtf?

not long, but you may want to cache it in an array, if you can

unless you're going to be doing 50+ per page load, don't be concerned

AlexC_ didnt fix it

ah yep

just be thankful i didnt use any braces :P

as in FUD

FUD is not in my lexicon

Fear Uncertainty and Doubt

i see

AlexC_ might have something

Hi can anyone help me with a regex

what's wrong with telling someone the risks of the choice they've made?
'yes'

ALexC_ $_SESSION['phonenumber'] = (string)$ph; no space ! omg it coudlnt have been that

basically I am using the bash function find to search a folder on my server, I need to specify to search for any file containing the search term

hi

hum?

any idea how to do that? I was using *$_POST['search']*.* but it's not that effective

http://paste2.org/p/5192
how is it possible that it prints 'FUJ'?

find . -type f -exec grep 'some pattern'

AlexC_ that fixed the errors now it works but echo $_SESSION['phonenumber'] doesnt work in the redirected page

any boolean variable that is true is equal to any string?

find . -type f -exec grep 'some pattern' {} \; # rather

when you set it, do after it - var_dump( $_SESSION['phonenumber'] );

so eg find /path/to/folder -type f -exec grep 'my user submitted string' {} \;# ?

AlexC_ what do u mean ?

after $_SESSION['phonenumber'] = … do what I just said

'my heavily filtered and escaped user submitted string'

o ok didnt read it peoperly

cheers

AlexC_ you are the man
thanks to all who helped!

^^

now to incorporate if else statement into the redirect ill be back in 5 mins with more problems

php takes whatever you are comparing to a bool and converts it to a bool, then does the comparison

anyone check out rails

he quit ^^

hello, I'm looking for a good webhosting which has a good quality/price ratio

jessy - check with mediatemple.net or bluehost.com

thank you

hey php experts.. I am having issues with: http://pastebin.com/m4d0644ef
jessy_ - your welcome mediatemple.net is not cheap, but its a very good quaility host.. they are 20/mo but great, never been down

were not psychic :P what errors/issues?

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/16389/domains/addictedtokaraoke.com/html/test.php on line 6

never put raw anything data into a query!

AlexC_ — was getting there

you're putting raw $_GET data into a query

what should I do then?

Hi folks

always use mysql_real_escape_string() to clean up values
hi,

example pleaes?

php.net/mysql_real_escape_string
also, you're problem is this: mysql_fetch_array($venues) - the line above you did $venues = mysql_num_rows($venues);

sgerbitz, mhh it a little bit expensive for me, I'm looking for something with no as much space, I need about 50mo

which means it's no longer a mysql resource,
#web or Google

I'm having a headache of a problem with the browser sending data to my server in UTF-8 format via XMLHTTPRequest, when I want it in ISO-8859-1…. The problem is that the GBP £ sign won't show up… HTMLEntities() will replace the £ sign with £ but leaves a cryptic character
before the sign

The content-type and doctype in the HTML are both ISO but the silly browsers ignore that

ok

jessy_ - pm me for more help

any way to remove the matches on the end of the filename when using that function?

which function?

so eg find /path/to/folder -type f -exec grep 'my user submitted string' {} \;# ?
because grep output matches on the end of every file name

hammondr, javascript in most browsers send the encoding it likes… you'll better stick to UTF8, just sent headers and content-type in UTF8, and echo utf8_encode($yourcontent);

hey :P

How can I cut the last 8 characters of a string?

$rest = substr("123456789", -8); - returns "1"

string = substr
jesus designer

don't you need both of those parts though?
the filename so you can link to it, and the line, so you can show the match

just need the filename

just split the results on :

i'm looping the results
ok

you could so it with sed, but the quoting will make you so angry i won't bother

If I use a UTF-8 database, and use UTF-8 throughout, and I utf_encode() the content, the GBP signs now have two cryptic characters before them instead of one

hammie, I use a UTF-8 database, and use UTF-8 throughout, then my content is already UTF8… and i can't send it as ISO-8859-1
bhammie, I use a UTF-8 database, and use UTF-8 throughout, then my content is already UTF8… and i can't send it as ISO-8859-1/b
just change your headers and content and use it in UTF8, that must work

the GBP sign isn't a valid UTF8 character though

then you need to convert it at database level, if you get a extrange symbol from the mysql level, you can't convert it back to ISO, because it is already "damaged". Can't you just change database schema to latin1 ?

I have it working now (though I'm not sure how)
It's such a farce just to get a currency symbol for a major country working
Okay, it now works when I'm retrieving data from the database…. but GBP signs written by hand in the HTML files with a text editor aren't showing up…

Hello, I am working with phpunit and trying to make use of a mock object. I have pasted the code here http://pastebin.com/m6bdb3618 (in reality each class/interface in its own file) I am getting this error :Fatal error: Call to a member function
check() on a non-object in /home/howes/dev/workspace/Calculator/src/main/php/Calculator.php on line 23. I was wondering if anyone could explain to me why as in my mind the $answerVerificationService sh

hammondr, even if you think it works fine, try it in Firefox, Opera and IE, much times different browsers parses it different

Hmm.
There must be a "pure" solution

the second problem is with the html file encoding "by hand", ensure you are using UTF8 encoding when you save the file, if you set your html to utf, or ISO if you set the content-type as ISO
hammondr, there is, saving the correct chars in the database
if you save a pound sign in a database with a format that doesn't recognize pund sign, you already have lost the chance to use it
you need to save it correctly, then you can use/show7transform it

Can I save one in a latin1 database?

but all the encoding problems ends always in the database level, imho
yep, latin1 supports mosts chars, pund, dollar, euro, tildes, ñ, etc
spanish is the language that uses more extrange symbols, and i'm always ok with latin1

if it's all phpunit libraries etc then #phpunit will help more I guess

read some docs, but i'm pretty sure you can even convert the whole data in the database to latin1 in a single step

So if I set the database back to Latin1, leave my files as ANSI (not UTF8), then I just need to convert the browsers UTF8 form submissions to ISO before inserting them?

ta AlexC

yes and no, the steps are ok, but you can't convert UTF8 (lack of chars) to ISO(more chars)
you should make the forms send ISO chars
then you can save them as is
tha's how i do it at least

well, technically they're not forms, it's data I'm submitting as POST data in an XMLHTTPRequest, which I couldn't make Firefox send in ISO

internazionalitaion is always a pain in the ass

Firefox seems intent on sending UTF8 no matter what

mmmm, for js i think there is a var to set the encoding
response.setContentType("text/html;charset=ISO…") or something like that

see what I would like to avoid is having to set things in code all the time

back

find ".$_SERVER['DOCUMENT_ROOT'] ."/FreeSamples/ -type f -exec grep ". $_POST['search'] ." '{}' \; #
really aint getting alot of correct matches, for example if I search for a file I know is there like "Synth" it says no results

from my notes:

MySQL

rawurlencode()

that rly made me cry for a second

lol why?

take a look at http://www.the-art-of-web.com/javascript/escape/

well a) no escaping what so ever.. and b) I think 'grep' is more suitable

no escaping what so ever?? I thought thats what the \; did.. just use grep on its own then?

I meant the $_POST['search']

oh I addslashes b4
and trim it

I'd go with shell escape functions tbh

don't know how do to that
can you give me an example of using grep

grep -R $search $path
php.net/escapeshellarg

what's -R do?

man grep
but -R is recursive

weird grep still don't pick up these files
Im running exec("grep -R ". escapeshellarg($_POST['search']) ." ". $_SERVER['DOCUMENT_ROOT'] ."/FreeSamples/", $output);

hmm, does escaeshelarg escape spaces?

adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument. This function should be used to escape individual arguments to shell functions coming from user
input.

so I don't need to addslashes()

try it w/o escapeshellarg
what do you find then

escape sctring

hi

hi epsy
welcomte to php support channel
Gophp5
why go php 5 ¿

still dont find anything

shouldn't be long when the site will be renamed gonephp5

very strange, works fine for me

aww go php6.org is already taken
gophp6.org even

anyone awake?

Dynom, hi

just stick with your find then

no, you?

Dynom, the php_ini idea was nice, but it's not working

can I ask a stupid question about search, that is well-intentioned?

any other ideas?

don't ask to ask - just ask

hmm, I asume you reloaded your httpd

well, it just seems stupid, and I'm embarrassed

mail right? *thinks back*

how does search work on linux?
like, find.

the grep is quicker, but they both dont find these

#linux would be better really

specific files

okay
but

My wordpress installation has this require('./wp-blog-header.php') but it seems my server won't accept the "./" part. Has something changed with a new PHP version (PHP 5)?

what about doing a system-search using PHP

Dynom, yes, the return-path problem

done by caching filesystem info into MYSQL
and then using mysql's built in search features
and good indices?

that is weird, because grep just finds strings in files, and goes recursive like find can do

grep is better for looking for files

okay, why?

Dynom, any ideas?

odd isnt it, the filenames are Synth01- thru synth08
if I put in synth
no matches

..
try grep -Ri

zackattack, it would be easy enough to write a php-mysql system
keeping it up to date is the hard part

keeping it up to date is also easy if you use mysql4 or above

why's that bizzeh?

just rescan every X hours, and use insert… on duplicate key update
as long as your using sane keys

purr

what would good keys be in this case?

i would say for a start, full path and or filename
or a hash of somesort

I wrote a filesystem dupe finder does most of what you want

synching the fs into mysql may be more resourse intensive than just readin the disks (depending on how often the synch is run, and how much traffic the site has)

most sane idea would depend on what your doing exactly… if you wanna display large amounts of meta data held on a file… i recomend storing the meta, if your just doing a file download service.. just go directly from the disk

asking a stupid question but this case insentive each it looks for occurances, becasue some of the results seem to be totally random

how does one go about making a page that forwards a visitor to another page?

php.net/header

like the string doesn't even appear in it

Thanks

Yeahh Go php 7

7?

i think php should jump the boring 7 8 and 9 numbers, and jump right to 10 after 6

hahah

or even, PHP X

don't even
:P

php 42

PHP XP………..

PHP 1337

PHP Millenium Edition :'(

noooo

lol

i like the idea of wording the versions

like Ubuntu?

I found a solution Dynom
apache one

PHP Slimy Salmon

why php devolepers need to version php 6

mmmm sounds yummies
…. was that… english?

PHP Propostorous Pike

lol @ propostorous
Wet Whale?
Viscious Viper

all future php releases need to be named… after fish or reptiles

PHP Horny Hamster

:|
lol

though it's not a fish

nor is it a reptile

on a saturday it is,

I can't think of too many reptiles

PHP Cantankerous Crocodile

Cantankerous?!?!
lol

php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f admin@mail.here.com"
is there a way to do this in php rather than in apache?
ini_set doesn't seem to work with this

php amourus aligator
:/

anyone?

you running your php under safemode at all? if you are, you cant set any admin values

I'm not
but I did try to do this with php's CLI
and not through a webserver
safe_mode = Off

hmmn, doesnt stuff like that only last the length of the request? ie, once the page has finished processing, the ini reverts

any ideas why it wont work?
yeah
good enough for me
but it wont even work
ini_set("sendmail_path","/usr/sbin/sendmail -t -i -f peledn@gmail.com");mail("sdskjhklsjdksjhdkjsh@skjhdskjhdsksjhd.com","testing","testing","Envelope-From: nirp@consist.co.il\nErrors-To: nirp@consist.co.il");
thats what I have

headers to be seperated by \r\n, not just \n
*should be
and, does mail use the sendmail function? or does it just run a socket connection to the send to address?

it does
echo ini_get("sendmail_path")."\n";
after I set the ini setting
and it didn't change
any thoughts?

look at a phpinfo(); on your server, ini_set may be in blocked functions

lets see
ok
what am I looking for?

there should be, if its restricted.. a restricted functions list.. ini_set may be in it, just search the page for ini_set

nada

other than that, mail() has an aditional parameters param… so you can just stick "-t -i -f peledn@gmail.com" in that param
ie. mail($to, $subject, $message, $headers, "-t -i -f peledn@gmail.com");

oh seriously?
let me check

since 4.0.5 i think

kick ass! let me try
you own bizzeh!
thanks a lot!

weee :]

ok i'm trying to configure php with mysql support (–with-mysql) but i have to define where the header file is, which i cannot find i have looked everywhere
checking for MySQL UNIX socket location… /var/run/mysqld/mysqld.sock
error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

!+g6

Guideline #6) Don't flood/paste. = 3 lines constitutes a flood and you will be punished. This is your warning. /msg php-bot pastebin. Also /msg php-bot enter

do you have mysql running ?

yes

if ( htmlentities($result) == 'OK' ) { header("Location: ../result.php"); } — shouldnt that work ?

whats the socket localtion?

I hope not

it 's /var/run/mysqld/mysqld.sock
that it can find

lol ok what should i do ?

checking for MySQL UNIX socket location… /var/run/mysqld/mysqld.sock

and did you set the mysql path ?
–with-mysql

i tried all different locations but i don't know what to set it to

see the ./configure –help

what would work Wolfpaws ?

and you gotta know where your mysql path is.. you installed it

do you have mysql-dev package installed?
It depends on what you want

unless ofcourse your using the rpms and stuff. where your dev is seperate from the main directory

let me check

change the header statement depending on htmlentities($result) == 'OK' or htmlentities($result) == 'FAIL'
redirect to two different pages

correction… libmysqlclient-dev should be installed
What is $result?

Need to get 7363kB of archives.
After unpacking 20.3MB of additional disk space will be used.

xml output

Ok im going to install those

And where have you got the idea of using htmlentities?

i tested it with echo statements instead of the header stamement to see if it worked
yeah displays the tags etc
i needed to add that to grab the xml tags

Ummm… What?

it formats the xml doesnt it ?

thanks guys now it find's the mysql directory automaticly –with-mysql is sufficient

I hope not

hmmm mine does ?
it displays the xml with that and without it doesnt display it

That means you're doing something horribly wrong

lol woudlnt surprise me
ill pastebin the code i use it in

good idea

http://pastebin.com/m7aa637f2

"Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/index.php:7) in /var/www/login/index.php on line 11
http://pastebin.ca/633676 et http://pastebin.ca/633671

JiBeSh try putting session_start right at the top before anything
you see what im trying to do Wolfpaws ?

I can't see, why

http://pastebin.ca/634329
it doesn't work

what do you mean ?
jibesh before the require

ok

wolfpaws how should i do it ?

What do you get back?

etc or failblahjshjs/blahblah2jkdhjdhf/blah2/fail

i can pastebin an output if u want ?

so you get XML back. Pretty much o.O XML but XML nontheless… Then why don't you use a proper parser for it?

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

Comments are closed.


Blog Tags:

Similar posts: