i want create a variable name with the same value of another variable Does it possible example module = _GET[module]

of course,
replace $foo[ $key ] with $_POST[ $key ] - though it's best normally not to touch that array

Thanks for your help I'll try it for now until i come up with a better longterm solution

really you should be doing for example: $title = mysql_real_escape_string( $_POST['title'] ); or what ever
anyway, food o'clock - cya

Yeah, that was a stupidity on my part with some code i wrote a long time ago, it's just it'd be a massive hassle to change everything
Works perfectly, thanks! Enjoy your food

Why can't I write a file after I downloaded it via ftp_get()? I can open it but not edit and safe it

check owner permissions

anyone know the difference between sybase and sybase-ct ?

yes. it is nobody but I can't change chmod with php..

down the owner have write permission

I neither can change the owner

hi all. Can I ask: I want to request a web page from another server. Is there a preferred way to do this? I found something called an extension who, an I understands it, provides this (PECL pecl_http:0.1.0-1.5.4). But it seems not the most portable way to do thing on, and also I don't quite
know what extensions are…

?! sorry i dont understand what you mean with down the owner..

sorry, does the owner (nobody) have write permission?
you should be able to add write permission only for the owner with chmod()

Can View & Modify Content - User: nobody - Group: nogroup

if php is running as user nobody, then you should be able to save mods to the file with php.

j0k3er . Ok. I've tested to change chmod. php hosting does not send an error.. this seems pretty good. but It seems that the permissions have not been changed anyway
I'm even not able to change the owner or the group

What is the best way to make an modular php app? To enable disable modules..

what's the best way to draw a picture?

I cant draw a picture with db or files based, with includes or classes

right, but you've seen a lot of hand drawn pictures i'm sure
and you have some idea of how many different ways there are to do it.

yep
i'm here asking for an opinion
for anybody more experienced with it

ok. well, i would include a registry service for modules. this can be done via configuration file, or by scanning a directory. how the modules are enabled/used in your project depends on the project though

is safe to work with directory scanning?

why wouldn't it be? if you have a predefined directory that is outside of the docroot for such things, then it shouldn't matter.

ok
tahanks for help me

dyscalcolon, is safe mode on?

How can I prove that? is it a parameter?

look at phpinfo()

off - but safe_mode_gid On On
safe_mode_exec_dir no value //// safe_mode_include_dir no value

anyone know why the sybase support changed build flags between 4.4.0 and 4.4.7
?
and why it doesnt work anymore in 4.4.7 ?

Hi,
How do I make PHP read php.ini from the directory the executable is in rather than the Windows directory?

Hey good afternoon everybody!

Holy hell, you're a little too happy for a Monday

ahahaha i'm on vacations that must be the reason

That'll happen.

First, you make absolutely sure you really want to do that. When you're sure, you recompile PHP.

oi
anyone ever used the paypal api ?

Darn, you mean it doesn't do it by default? How do i compile PHP on Windows, is it using MS Visual C?

if you're using php host as CGI, it's possible to add the -c flag which will let you choose the target ini file

I have been trying to do something without any success so I thought that maybe someone here could give me some guidelines or help me with it…

if you're using it as a module, you're stuck.

what i'm doing is a multi template web page, and I remplace tags like {TITLE} for the value of the title

I am not sure, I am currently making a self contained web server so that it can be deployed simply by synchronizing a few files. PHP as module is prefered.
For my server hosting farm of two computers.

hi

but the problem is that now O'm trying to replace a tag that it is inside of a content that is also tagged, I think I explained myself really bad ahahaha

Minute, i just read that php search it ini first in it's SAPI directory first.

SAPI?

for example, so I'm tryng to replace that SONG_TITLE

but I cant do it

Aquaman, what is the prob

It may be easier to understand If I paste the code
give me a sex

str_replace("{SONG_TITLE}", "Foobar")

sec*

Minute, you may also set apache on it's PHPIniDir entry

you might have a look at http://php.net/configuration - there are some notes there

thanks

i'd like to know if 2 arrays have exactly the same values, how can i do that ? for now i have to check if (array_diff($tab1, $tab2) == array() && array_diff($tab2, $tab1) == array()), no simplier method ?

class init function? how do you name it?

Minute, take a look at apache's httpd.conf

enzo, might not be the best way, but not bad either

http://rafb.net/p/EKAd0888.html

you have a better way MeKiwi ?

is there a default init class or do you make a private and call it in the start of the class

not really

ok
Ahh yes, I am using php-cgi.exe

http://rafb.net/p/Yr0udb81.html

is there a default init *function* or do you make a private hosting and call it in the start of the class

Oh, I see PHPIniDir
Cool.

exit

Aquaman, if you want to things like that… take a deeper look into regular expressions

and the thing is that i dont really know how to replace the data that I get from the database for the tags in the http://rafb.net/p/Yr0udb81.html taking into account that {INSERT: SONG_ODD} hasnt been replaced yet
[MeKiwi] I know using regular expresions and Im replacing tags correctly

so…

I'm only having problems with this thing

I never use php-cgi, but I read this from installation manual: "-c command line option in CGI and CLI", maybe this could help.

then im affraid im to stupid to understand your question

yeah

You just want to see if the values are the same?

value?

enzo*

I have a variable that should be 0… or empty
but it wont tell me what type it is
or wtf is going on

[MeKiwi] I'm sure that the reason is not that you are too stupid to understand my question but that my english is pretty bad and I dont really know how to explain myself ahaha

sry Entvex

no porblem

I tried type() on it.. but then I echo $type = type($myVar); and nothing happens :o

problem*

Aquaman
it think I do understand

Just comparing the arrays like you would anything else should work just fine for key/value. But if you just want to compare the values not sure.

i only want to compare values

$array1 = array("a", "b"); $array2 = array("a", "b"); echo $array1 == $array2 ? "true" : "false"; prints true

yes my method work, for sure, but i was looking for a better way, if exists

alright then nvm

[MeKiwi] let's see, {INSERT: SONG_ODD} should be replaced by this html http://rafb.net/p/Yr0udb81.html but before it is replaced I get the data from the database to replace the tags inside of that HTML but as the {INSERT: SONG_ODD} hasnt been
replaced yet I cant actually replace the tags withing the html, now did you understand it?

the values may not been in the same order in the 2 arrays

Aquaman and if your want to get helped, please paste this code somewhere i can make replys
not on this rafb thing
*replies

Hi, I set PHPIniDir in httpd.conf - but PHP ignores it.
What have I done wrong.

enzo, just write your own function to clean the source up a little and make more since of it

[MeKiwi] do you recommend me any paste-code page?

Hey guys… So if i do $_SESSION['username'] = $username; and follow that with header("location:$from");… will the $_SESSION var not pass? Because I cant seem to get it to show any data

hi

Jaywalker, did you do session_start?

Is there a way to detect whether JS is enabled using PHP?

Loserbait, no

Haha… wow I'm stupid

Rats. Thanks

Thansk MeKiwi

yw
Loserbait, php happens on serverside, js on clientside

It is possible using a complex set of redirections.

true

I can tell you how if you like.

are you sure you're typing correct path to it? (always use slash in httpd.conf, even in Windows environment)

Hmm… I was looking for a slightly more immediate method… I've seen a few of those redirect page styles… Didn't like them…

I will try again.

although MinuteElectron, im also interested to know how to check for js in php

User hits index.php; detects JS on/off; if on, display MenuA; if off, display MenuB

You could make JavaScript set a cookie - so if javascript is enabled and cookies are enabled you would see a javascript cookie which could be acted on next time a page on the site.

in HTML

\HTML
*X

cookie, or ajax call

i found a cool way of detecting if someone refreshed the page they visited or not via PHP, forget what i did though
detect if they refreshed or requested the page all over

in this div id="navigation"

hello ppl. what mean this: Top Process %CPU 98.7 /usr/bin/php -C -q -d include_path /usr/lib/php -d output_buffering 1 -d open_basedir -d safe_mode 0 -d register_argc_argv On -d auto_prepend_file -d auto_append_file /usr/lib/php/pearcmd.php upgrade PEAR

Hello chaps.

how's that detection actually… i'ld like to know, since I'm annoyed by visitors refreshed a php page contain INSERT query.. (double insertion)

well it wasnt really ment to do what i found it to do and i dont know how reliable it will be
give me a second
$_SERVER['HTTP_CACHE_CONTROL'] is set if the user refreshes the page

Can anyone think of a clean way to keep track of how many instances of a script are currently running? I can easily keep track of home many scripts are open, but I can't keep track of when they close.

atleast for firefox it is, i dont belive it works in IE

ic.., I've read about disabling "refresh" by doing something like Cache Control… but never expect this $_SERVER['HTTP_CACHE_CONTROL'] may works, thanks anyway, I'll experiment on it later.

i just confirmed that IE doesnt do it

anyone know a couple of likely critical php job interview questions off the top of their head

atleast by default
How old are you? Have you been convicted of a crime in the past 7 years?

heh

make sure you memorize them ones

i meant specific to php, questions that almost every interviewer would ask and if you got wrong wouldnt have a chance

when should you send headers?

well if you were going to get the job you would think you could answer any question about PHP they might throw out
Why not google?

a db session handler with a count on open sessions — maybe.

what do you mean by 'when'? like how you're supposed to send them before any actual output is sent?

http://www.google.com/search?hl=en&client=firefox-a&channel=s&rls=org.mozilla%3Aen-US%3Aofficial&hs=5ly&q=PHP+developer+interview+questions&btnG=Search
graywhite that link is for you

thanks didnt think of that

lol _

i know the first 20 questions off the top of my head by the looks of it, so that's good

somebody uses php+libssh2?

the rest i'd probably have to look up

"Thank for you for time. We will be getting back to you."

ouch
fyrestrtr well what did you mean by when then

ok i have to go
ttyal
bye

it is a very straightforward question.

whenever i want the browser to communicate with the server?

That sounds like a decent answer…. And the judges say?

"Thakn you for your time. We will be getting back to you."
How can you say "when I want the browser to communicate with the server" — and you are trying to apply for a php developer position?
The right answer would be "When I want to send custom headers as part of my response to the user-agent; for example, if I was writing a script that serves files that are no in the document root."
as I said, "We'll get back to you. Thank for you for your time. Make sure you take a mint from the receptionist on your way out." BUZZ "Jeane? Send the next one in!"

hi - can abstract classes have properties?

they most certainly can.

excellent! thanks

fyrestrtr but that's not the only user of headers, or are you saying that i should just give a specific example regardless of the example?

your first answer was a complete, "Eh, I have no clue, but I will try and see if your bullshit radar is working or not"

yes, headers are used both ways. The user agent sends a header to the server (which is how you answered it). And the server sends a header back to the user.

although you are technically correct, that is a wrong answer to the question when it comes specifically to php and its use of headers

fair enough.

you have to answer the question in the context it was asked. When I ask you "when should you *send* headers" — your answer should not be in the form of a question; but a direct answer. If you don't know, say you don't know and not try to bs your way through it. Depending on when you catch
the interviewer, that can turn out to be very bad for your chances.

hi
anyone here ever use mambo?

$str1_a = substr("10290", 2, 5); — I am doing this but str1_a is blank..!

I tried to dance it once.

damn

I prefer meebo.
the third argument is the LENGTH you want the resulting stirng to be, not the index of the last character you want.

Oh!

http://www.php.net/substr

alright thanks fyrestrtr

is there a way in php to use alternate enclosure characters for echo like in perl i can do `print qq[]`

eyeRmonkey, Even $str1_a = substr("10290",2,3); doesn't works!

no, because this is php - not perl

=(

you need to escape characters, or use heredoc

so if i need to echo lots of text with both " and ' i need to escape them all

eyeRmonkey, Any idea?

print substr("10290",2,3);
or use heredoc

it works fine on my computer.

you only escape the one that is not encapsulating the string.

yes, but theres lots of both kinds

then you either want to escape out of PHP mode (if applicable) or use heredoc

echo EOF

!+heredoc

[HEREDOC] http://www.php.net/language.types.string#language.types.string.syntax.heredoc

I would hazard a guess that you aren't debugging it properly. Or you're simplifying the example for us too much, and your problem is really somewhere else. echo substr("10290",2,3); works fine

eyeRmonkey,$str1_a = substr("10290",2,3); echo $strl_a."";

I'm coming from a Java background and I wanted to know if there exists a way/program/something which will allow me to check out the efficiency of my code, much like the javap -c command?

Check this eyeRmonkey

Indeed. Simple typo
YOu have $strl_a.""…. that is an L not a 1

$strl_a is not the same as $str1_a

Mishu, str1 vs strl

hehe

you can profile the code to see what parts take the most time.

if i have a protected property, why would $this-propName in the same class tell me i cant access it?

I told str1_a as variable name… Is that some problem….!
Sorry got it!
lol!

fyrestrtr, could you shed some light on how or what I would need to do said profiling?

There ya go.

xdebug.org

How do I get the value of string $needle from string $haystack if I know that before it is '/' and after is it '_'?

cheers

Like, would I use a regexp?

KomodoKoffee, yes

strpos() and substr() and friends might be preferable

I know that it's gonna be one of two values.
I mean, I could even use ereg and an if statement…

Don't use ereg
!+ereg

Ereg should be avoided in favour of Perl-compatible regex. PCRE functions support non-greedy matching, assertions, conditional subpatterns, and a number of other features not supported by POSIX-extended regex. Also, the PCRE functions are binary safe and are often a faster
alternative.

Okay. The pcre function would be "preg()" ?

php.net/pcre

Okay. I'm actually searching for it at this moment.
preg_match()
Right?

KomodoKoffee, preg_match("#\/(*.?)_#", $matches);
something like that
not 100% sure syntax is correct
but its close

I can figure it out. Thanks much./

how i redirect to another page with result="whateveriwant"

ZogG, eh?

how much data can be saved in a cookie? is it possible to let the user (per javascript) edit a cookie?

MeKiwi i have page with coments and when i submit it sends to other page where it's chack and if everything is ok it post comments if not it return error=1

location("http://www.google.com");

MeKiwi but it will not return eroor=1

location("http://www.google.com/index.php?error=1");

MeKiwi another way?

why?
whats wrong with this one?
and yes, another one is javascript, but then you are in the wrong channel

=(

i dont really see what the problem with location() is

location("http://www.google.com/index.php?news_id=$news_id&error=1")
if it correct?

yeah

it doesn't work =(

why not?

No

TML ?

sorry

There's no such function as "location()"
php.net/header

header?

my bad
www.lol.com");
sorry
wrong advice
* i always make a function location

Why?

header("http://www.google.com/index.php?news_id=$news_id&error=1"); - ?

because i make it more intelligent
no
http://www.google.com/index.php?news_id=$news_id&error=1");
TML, not just to do header() no

not working

How much more "intelligent" do you need header() to be?

comments.php?news_id=$news_id"); works
this - location: not
comments.php?news_id=$news_id&error=1");

there is no function called 'location()' in php
whoops.

Make sure you have display_errors on and error_reporting at E_ALL

well, location *should* have a fdn anyway

stupid buffer.

Is it possible in PHP to remote a defined function from memory?

comments.php?news_id={$news_id}&error=1");

Blame it on the buffer… (That's what I do )

7

array_search

php.net/array-search

Seriously?

Qube, TML, thanks

phoenixz, I don't even understand that question

*remove
I'm pretty sure

I was gonna say, use foreach and preg_match, and then output $array[$i]

phoenixz, oh. No then - not without RunKit

function a(){echo 'hello world';} unset_function('a'); function a(){echo 'Hello everybody';}
Qube, runkit?

phoenixz, PECL/runkit

Qube, TML i think in_array() is better?

oDesk, if you want to know if it exists sure

yes that's it.. thank you

but your question suggested "find it" rather than "is it in there"

oDesk, that one return true or false
but if you really want to search for it

hey friends

cool, I have friends now

yes i wanted to return true/false

the internet rocks

superb

would this call the year on it's own? date('Y')

ues
yes

ok thanks

lol
that was the easiest one today

lol

what function should I research to help me strip chars that are not xhtml 1.1 compliant? IE the '&' sign?

could have tested that quicker than asking here

Qube, The question was more something alike "What is runkit".. I am already looking for the package so..

actually asking here was quicker hehe

phoenixz, it is part of PECL

rick111, ob_start, preg_match…

spank you
very hard

Why exactly are you using XHTML 1.1?

www.php.net/runkit

Qube, And its a library that lets you do lots of PHP lowlevel stuff like changing functions, constants and objects.. thats what I meant
Qube, but thanks anyway

yes

That's a good question
!google webdevout beware of xhtml

mattmcc i don't know, looks good on CV

Eh. So leave it on your CV, and use HTML 4.01 instead.

Here. http://www.webdevout.net/articles/beware-of-xhtml
beat you to it.

thanks

What server $_SERVER variable causes sessions to time out in x sec after inactivity

CV.txt anagrams.txt;

I am using it correctly though www.gravitymagazine.co.uk

sdfds, none of them
php.ini session.* settings

Thanks

If IE can view it, no you're not.

someone put an "&" in thier comment and broked the site :/

so you want to convert it to & ?

mattmc, if IE requests, it sends it as text/html - firefox as XHTML 1.1

htmlspecialchars()

yes, thanks

HAHAHA…Nice, mattmcc

That begs the question, then, why use it at all? If you can only send XHTML to certain UAs, where are the advantages?

I have found that few browsers don't like/interpert xhtml correctly?

because it's the latest hottest thing

Heh.
Well, if that's a good reason for you, by all means, continue.

htmlspecialchars() looks like it will do the trick, thanks

Qube, if i set session.gc_maxlifetime to 0 i will have sesions for ever?

No, no browser interprets XHTML properly.
No current browser

firefox does.

Yes they do.

Like which?

They may not render them immediately, but they do interpret just fine

Firefox?

yes

Sorry, meant render

http://www.spottedhere.com/ is XHTML that I am working on, i gnore the photos on the bttm right; but all browsers render just fine
"after some interpertation"

firefox is close… but i agree with KomodoKoffee, if you want to be correct, the answer is none

See, though, they just interpret them as html

www.gravitymagazine.co.uk is interpreted as xhtml 1.1 in the FOX

I don't see the problem though. :]
Your browsers interpert everything. CSS, Javascript, even html host :-p

No, you're missing the point. Firefox knows it's XHTML. Firefox parses it as pure HTML

heavy

What's the problem with that though?

It means you lose all of the actual benefit of using XML. So, you might as well use HTML4.01

Now, when the browsers do render direct w/ xhtml parsers. You don't have to rewrite shit

i don't know about that, because when the '&' was in it broke the site in firefox only, so it cant be parsing it as html?
i've got proof!

an '&' wont break anything really,

want a bet, 1 sec

What do you -gain- by using HTML 4.01 over XHTML? :-p

The unescaped amp breaks validation with ANY doctype…

yes it will break validation, but it wont 'break' how the page is rendered,

firefox this baby http://www.gravitymagazine.co.uk/news.php?id=17

Opera is way faster with javascript hosting than that little fox :P

not well-formed
do we have a winner?

What do you lose? You gain forward compatibility… (X1.1 won't be compatible with X2)
uWhat do you lose? You gain forward compatibility… (X1.1 won't be compatible with X2)/u

im changing it back…

You are telling me browsers wont be able compatible with xhtml 1+ ? :-p

This isn't the #my_browser_is_better_than_your_browser channel

fixed

If a browser will render html 4+ it will render xhtml 1+

No, I'm telling you the X1.1 specification isn't compatible with X2

that's a mute point. What does 4.0 give you that xhtml 1+ doesn't?

maybe take this to #web ?

You'll have to recode to match the specification…

I use firefox. I just said that. Chill.

AlexC_ did we have a winner?

I will have to recode my xhtml1+ site when the specs for x2 come out? that's the argument?

I have (accidently) used & before in an XHTML page and that has never, ever happened

Good idea, AlexC_, but I'm too lazy, so I'm just gonna stop arguing.

but did you view my page when I put the & sing in?
sign*

Yeah, I did, rick111
That's really weird.

yes I saw it - that didn't even look like a Firefox error page

hello. exists in php something like: with something do {}. It's in Delphi or JS, i think.

are you using something else? how are the pages generated?

cause it's being sent as real xhtml, no fakes aloud

I don't think it is…

joshteamgo into #web and ask them what they think about you using xhtml
ujoshteamgo into #web and ask them what they think about you using xhtml/u

I've heard this debate a million times, and it always comes down to this. XHTML is the future, no doubt. XHTML is also able to be stored as xml feeds, which helps with languages like php, c#, etc. You lose NOTHING by using xhtml over html.

Hello folks

hi

I'll ask them to tell me what I lose by using it

Do zend optimized php web hosting files show text in shape of symbols?

you guys get me so excited

joshteam go ahead.

hey all, anyone know if mysql "replace" is slow?

I sure do hope not in a sexual way

been there done that. You don't lose anything.

hello

#mysql

be prepared to show them what you are replacing

why do people come in to ##php which is for .. well, dur PHP and ask a #mysql question

joshteam if you're up for an argument, go ahead and join the channel and ask what they think. hell, even their topic includes a link about why not to use xhtml. http://www.webdevout.net/articles/beware-of-xhtml

hello. exists in php something like: with something do {}. It's in Delphi or JS, i think.

does system() wait until command ex system("ls") to be completed to continue script or it justs continue script ?

php.net/while ?

like I said, I've been there.. I've done that. I've heard the arguments, read the articles. They all say, "It's inconvient. Un-needed"

I gave him the link already…

working on php/mysql websites, our minds get intertwined in php/mysql somewhere
Do zend optimized php files show text in shape of symbols?

The same arguments that were against CSS in the beggining too :-p

when opened in vi

or they have crap logic

Is there a #php-social or something?

joshteamright. when someone wants to open your site in internet explorer and they're greeted with a download dialog, go ahead.

does system() wait until command ex system("ls") to be completed to continue script or it justs continue script ? ?????????

#phpc

#phpc foutrelis

some one ?

thanks

Owned, AlexC_

owned?
we heard you the first time

No one can tell me what functionality I lose by using XHTML, but I can tell you what you gain

@haris: yup. i agree

DO zend optimized php files show text in shape of symbols when opened in vi?

an anwser would be good

Pardon?

I think it runs command by command.

oh sorry, let me stop what I am doing and bow down, worship you and then code your project

NOBODY IS ASKING U FOR CODE STUPID
shit channel

bless him

.

He left…

dq cs3 is so buggy!
dw*

A little. I never notice it…

guys!

and gals

Then again, I use eclipse and phpeclipse…

is it good?

DO .. zend optimized php files show text in shape of symbols when opened in vi?

Lovely.

does it do everything for you?

Haris, ask zend support

Does anything?

why not try it and see?

@haris: i was just agreeing with your statement that people get php/mysql intertwined. In my instance, I thought maybe someone here had experience using it and might abel able to give soem advice

dw nearly does :/

I thought something like…i had not to write every time, for example, $this-…; $this…; . I could only write: with $this do {$var = 'hello';} and it was parsed like $this-$var = 'hello';

err
damn wireless

why would you rather do "with $this do {$var = 'hello';}" rather than "$this-var = 'hello';"

php comes with zend
so someone here knows what it can do

just open it in Vi

I have
its obfuscated

then you answer your question

only shows symbols

then why do we need to confirm that :P

I dunno. But, in phpeclipse, if you're using a framework (even if you're not), it does autocomplete for all of your code, and if you add folders for all of your libs and stuff, it does code completion on those too.

Re-throw the answer at me

Haris, "php comes with zend" uh ?

thanks KomodoKoffee, i'll keep that program in mind

Plus that eclipse has like 1000000000000000000 plugins, so you can reuse eclipse for RoR (with Aptana RadRails), and JS, and perl, and lots of other stuff.

is it free? (this i could google, but I just love talking to you)

zend is a third party organization, zend products are not supported here, like any other third party products

Is it possible to reverse engineer a zend optimized php file to get the text?

because, if i have to write 20 times $this, line after line, it could be easier (it was only example, my code is not such junk)

http://www.eclipse.org/

ah, no you can't

Free.

Haris, it is possible, but the point of obfucating code is to make that difficult

wowser, it sounds cool

the point of obfuscating code is to be an asshole

Zend's IDE is OK too, but it is not free

I can't troubleshoot problems in code that is obfuscated :|

exactly!
that is why all these things are _crap_
not needed, worthless, crap projects that do _nothing_ but restrict the user

im getting eclipse as we type words in this chat room
they're good if you don't know how to code…

who ever coded the Zend one and that other Ion crap needs to bugger off

internet is amazing eh

and what do you do, if u have to write something like this ? you only write it again and again ?

depends on the situation

However, beware of installing plugins. I couldn't figure it out at first, so it was a little weird. Basically, you just drop the features and plugins dirs that come with the plugin zip into the main eclipse dir

If only laymen would see and know what it is doing to them

AlexC_ you're obsolete, the future has arrived.
thanks

ha, you think the future is having code like that?
good luck,

there are a few people that have bundled eclipse and the php plugins already

thanks guys

Hello… in dont know if its a problem of apache or php .. but if an error in a php-script occurs… the webserver waits up to 4 minutes to send the content to the browser… does someone know why?

http://www.phpeclipse.net
a href="http://www.phpeclipse.net"http://www.phpeclipse.net/a

dang503 that's just for the plugin that site innit, not the bundle?

no, it includes eclipse too

ahhh nice, ta

yup. also, Zend's next IDE will be based off Eclipse

Is eclipse the java editor?

it's written in Java
so it's cross platform

We have people working in eclipse building a java based project
Seems a slow IDE

I've always hated Java apps, but Zend Studio runs fine for me on current comps, like intel duo core machines
geditphp looks nice. however only l*nix installs it looks like
anyways, i'm off. have a good one

!+editors

I am very new to php and I was hoping someone could take a look at my script and tell me why it only displays info from the last row
http://pastebin.ca/655960

how do I know if the GD library is enabled in php ?

!+editors

Editor discussion usually degrades rapidly due to personal preference. It is not a valid topic for ##php. Please try http://freshmeat.net/browse/63/ , http://www.php-editors.com/ or http://en.wikipedia.org/wiki/List_of_text_editors and find your own preference

here we go

instead of putting all the code inside the html file?

i just figured that would be cleaner but i'm not sure if theres any drawbacks to that

you may as well put the php code into the html file
just remember to rename it to .php
that way you have more control over the page..

could someone please take a look at my script and tell me why it only displays info from the last row
http://pastebin.ca/655960

ok, more control how?
like query strings

yeah, that and putting elements back onto the page

Hello everybody!

Hey all.

hey SettlerX
hey eyeRmonkey

i see. figured theres a reason i never see any code doing that

any idea's why this doesn't work?
http://pastebin.com/d221df497

Do I need to explain more before anyone looks at the script? it's self explainatory if you look.

that code shouldn't even do anything

how do I know if the GD library is enabled in php ?

Is file_exists() function I/O so expensive? Or is it rather fast and won't overload weaker servers?

please help ?/

Next time, don't use pastebin.com

you are using functions that don't even exist,

does phpinfo() show if the GD library is enabled in php ?

function_exists() ??

echo $_SESION['UserID']; is not the same as echo $_SESION['userid'];

Use phpinfo()

$num=mysql_numrows($result); wtf is that?

Then go Ctrl-F, "gd"

php.net/mysql_num_rows

heya

Hey.

How can I load a header('Content-type: image/jpeg') and pass a $_GET to it?

It is the non-object oriented way to do mysql stuff.

$result=mysql_query($query);

Do you know answer on my question?

I need to call it from within a page, incase a thumbnail hasn't been created

no, mysql_numrows() does not exist

(it checks if the file exists, if not, tries to make one)

ll ah ok

file_exists() will work fine

thnx

I tried to use img src="myscripttomakethumbnails.php?var=myvar", but.. umm bno, didn't work
I can't use include, cuz it sends headers twice, and img src= doesn't seem to pass _get variables along

Kcaj, it sure does

still doesn't work eyeRmonkey..
it just comes up blank..

Hmm :o

he elft

hah

s/elft/left

missed tha t

also use php not and add at the top of your script error_reporting( E_ALL ); ini_set( 'display_errors', 'on' );

thank you — it seems all my variables are undefined — This is taking longer to learn than I thought it would

is using heredocs (echo_HTML_) the best way to embed multiple html tags in php?

If I have an abstract base class with a public static variable in it, how do i access it from an entirely seprate class that has a reference to the concrete superclass that extends the base class?

wait only i is undefined

graywhite, heredocs are currently quite "expensive"

section… then type more HTML

do you mean for all of those to be in the while loop?
hold on, you're going about this wrongly - let me get a link

eyeRmonkey hrm, i dont like the idea of breakin up my php code but if that's the best way i will

I didn't say it's the best way. I just said I wouldn't. Maybe someone else has a better suggestion.

actually, right - you do something like this $result = mysql_query( … query here …. ); then once that is done do while( $row = mysql_fetch_array( $result ) ) { echo $row['my_column_name']; }

http://pastebin.ca/655987 the updated script

where are the dynamic extensions on debian ?
where are the php dynamic extensions like extension=gd.so files on debian ?

I found one more thing - $username and $password are not defined so it can't connect to the DB

http://eyermonkey.pastebin.com/m5921253c

I took those out before I posted it in the chat

oh right ok
__js how is the join/part training going?

Why is this erroring? http://pastebin.ca/655994

line 43 KomodoKoffee

What error? Which line?

hey how can you tell what the gzip compressed size of a website is?
webpage*

Alex — Don't I need to define $row ?? I have only been trying to learn this for 3 days now, thats prob why it looks like im just dumb

the syntax highlighting even shows it

error is in description
Oh, hehe.

don't think you're dumb we all have to start somewhere,

My editor didn't show it.

for while( $row = mysql_fetch_array( $result ) ) { you don't need to define $row before hand

NVM, it did show it. I just couldn't see it…

^^

ahh okay

if i put a whole website into one php file will that slow performance or does it not make a difference?

you can overload objects in php now, right?

sry for the join/parts, trying to find a decent irc client for os x

i think i'll split it though as it's annoying having to nagivate a very big file

^^, could take off autojoin while you try them out but np

In my earlier paste, you see the preg_match()? Is there anything wrong with the syntax?

why not use strstr() KomodoKoffee?

What does strstr() return?

php.net/strstr

what do I need to enable GD library in php ?

Already there, I'm just lazy…
Thanks, I think, though, that I'm gonna use strpos instead…

hey
is there a guide to setup php with apache on php.net?

Alex - should I take out the $i ??

agohoth, there doesn't really need to be. it's super simple

re-pastebin the code

k

how to add an object to an array ?

hello

$foo['bar'] = $my_object;
or $foo['bar'] = new CheeseCake();

http://pastebin.ca/656011

When I use imagegif($image,$file) I get an empty file, when I leave ommit $file it shows an image. What could cause this?

ok thanx AlexC_

I used $row['my_column_name'] as an example
hold on,

I have no idea what my column name is

ok I already solved it

$artist, etc….

I found out that I overwrite the file everytime

is there a method/function in php to get the type of a given object or variable ?

Use XAMPP

like java's .egtClass
..getClass

that htmlreplace worked a charm

I actaully do use xampp

Okay… Then what's the problem
?

but wanted to set it up the custoemr way in case I need to roll out a large rpoduction system

is xampp that LAMP thing, were you get php, mysql etc?

hi, has anyone come across the `zend_mm_heap corrupted' msg when running a php script from console?

my consulting practice would do well to add php

Oh, I see what you're saying

oh so its a snap?
also what do you guys reccomend? fastcgi? mod_php?
lighttpd?
apache?

apacje
s/apacje/apache

now, for apache I noticed 2.2.4 has an event worked
worker

Yeah, basically.

is event, "worker"(threaded), or prefork best for php?

Except, it's apache, mysql, php, perl

mysql yuk
postgresql or firebird for me

I want to print lines of a text file into the browser. How do I do that?

I intend to use teransaction
transactions

http://paste2.org/p/5892 - how nice am I

Oh. Well, I won't deny postgre has more features, but mysql

found it
gettype
gettype()

Is easier to set up (didn't mean to hit enter), using xampp, wamp, etc…

xampp does rule

err, I did it wrong but hey! lol ewok_poacher echo "b$row['artist'] $row['price']/b"; needs to be $row[artist] instead of $row['artist'] sorry

I was debugging sugarCRM for a year, helping the sugarCRM people, as I did and install, and I showed them xampp
which rocks

k

just got consulting gig offer for sugarCRM
which I wouldnt wish onto my worst enemy
sugarCRM is a hunk of shit and thier sales guys play the blame game
lol
that compan is making $$ offa php thought
though
www.sugarcrm.com

I want to print lines of a text file into the browser. How do I do that?

!tell agohoth about enter
echo "foo bar \r\n oh look a new line";

so I noticed there are some php frameworks starting
I saw a ranking

The text file already has data and I want to print each line to the browser

sorry, read it wrong - you need nl2br() ugarit php.net/nl2br

phpcafe rosomething won

hi, i have a strange problem, instead of an php error i get a Server misconfiguration, maybe because no cgi access for this directory, but a few commands before it worked

#apache maybe?

thanks AlexC_ that works

you're welcome

is there a fast way of ingesting a CSV file and converting the content to HTML tables?

Hi when I sedn trought html form the word "o'neil" then when requesting I get "o\'neil" what is the problem? How can I get the literal var?

hi all, for an uploading system (pictures) I need to create a uniform filename. how do I do this in php?

ugarit, php.net/fgetcsv

it's php related, the normal directory can be looked and everything is working, just a few php commands made this happen

that's evil magic_quotes_gpc in act, turn it off in php.ini

thanks ekneuss

$rand_name = md5(uniqid(time()));
but i would like to know if there is any beter way

sorry, but I wonder where I put that ranking of php frameworks, and I am running an xampp setup in production for a blog site here at my curretn gig at blockbuster….web2.0 babby, but for hardcore people,
isn't it the case that they dont use something liek xampp?
no one reccomends something liek xampp for production?
eh?

use other user information like user-agen, accept-language, …

AlexC_ i have an array of objects can i do $array[1]-someMethod(); ?

phpcake seems to win on the amazon ranking

afaik yes

or just timestamp?

*

i use a combination of a few request headers + ip + timestamp + someunique id

AlexC_ i have a method which returns an array. but if i do $u = theMethod(); then $u is not the array that the method should return, why?

" sphpinfo() ?" takes up to 4 minutes to get a "undefined function"-error from the server… is this a php or apache-problem? it took only a long time if an error occurs.. otherwise the response is sent immediately

is it best to choose to use only one type of quoting style throughout your entire code like just single quotes or just double quotes. i usually see code that uses both interchangeably as if to say 'it doesnt matter' like foo['bar']; echo "hello";

then it's not returning an array

http://pastebin.ca/656042 I am pretty sure I have screwed it up beyond fixing now — maybe I should start fresh?

what happened to the code I gave you … ?

AlexC_ is it correct to do $blah = getSomeArray(); ?

it was an example that you could just use and adapt,
yes

or you gotta specify that $blah is an array
?

no,

on the method i used a echo $this… and it returned array
but then echo $blah wont work

huh? pastebin the method

http://pastebin.ca/656047 like this??

no, I gave you a perfect example

ok AlexC_

one thing I learned making drugs is you dont throw anything away
i mean uhhh

http://paste2.org/p/5892 - there, use that
or at least read it as an example and how things are working etc etc then make your own

echo "Answer: $_GET['answer']";
i thought it was legal to interpolate variables inside of double quoted strings

how do i send the html page before the php script finishes?

we need more code,

AlexC_ http://pastebin.ca/656052

and still allow the php script to run afterwards
so the page then refreshes again

" . $GET['answer']; it works

you guys use // to comment?

use: " something ${GET['answer']} else "

# for single line, /** for multiline

${var} or {$var} depending upon preferance

# eh

they're not the same

AlexC_ did you take a look at what i pasted?

give me chance lol

and you can also use " foo $array[index] bar "

ok

using # instead of // would make your file sizes that much smaller right

most CS are against # style comments

hi

much smaller? for every line of comment 2 bytes less

i could see how that might be an issue in C, but in PHP it's irrelevant.

*every single line

echo "b$row['artist'] $row['price']/b"; syntax error ?

caffinated, it isn't, but it's still avoided by most coding standards

yes, I told you this as well before
please read what I says

enclose your variables in {}

ekneuss what is wrong with the # ( i use //, but im curious )

Elagic, nothing wrong by definition, but avoiding them will help you stick to most coding standards

how i print this value(hello) ? i tried echo "$_POST['module'['field']]" but doesnt work.

most standards I've seen use /** for multi and # for single

in C things like 'define' are preceeded by '#'. in actuallity there is no reason to use one over the other in PHP. You should attempt to remain consistant though.

name='module[field]' ….. echo $_POST['module']['field']

AlexC_, name them, then

Doesnt work too.

sorry I often forget to ask people the name of the standard they use …….
yes it does

AlexC_, guevolt $_POST['module']['field']

that's what I said,

AlexC_, by the way, both Zend and PEAR coding standards encourage // as single lines comment, only to cite two important

look this: http://pastebin.com/m31f7aa53

because you did not read what I said
name='module[field]' not name='module["field"]'

AlexC_ could you look at that already?

err, name="module[field]" even,

I sedn trought html form the word "o'neil" when requesting it I get "o\'neil" what is the problem? How can I get the literal var?

hello all

oh my god, why do people not read what I say

surfero, php.net/security.magicquotes

I told you why it was doing that before!!

thanks

next time read what people say

AlexC_ http://pastebin.ca/656052 , sorry for repeating myself, but i read it 10 times and cant find what is worng

you are right. worked. thanks

Sorry my Xserver broke down

add in function getGrupos var_dump( $this-grupos );
to check the value of it

ok
works
that is correct the info it shows

urgh, I see the error
at top of script add error_reporting( E_ALL ); ini_set( 'display_errors', 'on' );
then look at like 7

how do i echo something which has single and double quotes in?

echo 'this string has a \" wow quote in it';

mmm

ok thanks

undefined offset 0

quick q - i am serving images out of an mysql database.. it works fine in firefox but the images wong show up in IE.. (i use img src="script.php?id=(image_id)")

AlexC_ that is the error i get

you should be getting a syntax error

wonder what does it means
oooooooooh

Balloc() allocation exceeds list boundary - what does that mean? its happening when im running json_encode on something

you mean because of the extra ) ?

yes,

i already removed that

night all,

ouch
i wonder what now…
lol

is anybody in the mood to test a simple portable server/php distro for win? (would be cool to kill some php modules that are not that usefull also)

Damn who is going to help me now ?? Good job Elagic

hehe
how do you add an object to an array, but to the end of it, i mean i dont want to put a name on it like $blah['foo'] = ..

$blah[] = 'whatever';

ok
thankx

#
echo "b$row['artist'] $row['price']/b";
#
$row['company']";

ewok_poacher, use a pastebin, don't paste here.

php.net/array-push also

my bad only meant to paste one line

ewok, you need {} around your $row['company']

and the other $row['xxxx'] 's

php.net/string especially the part about double quotes

yeah
anytime you double quote an arrays value they need to be in braces

DanMan010, that's not true

elaborate..

"foo $array[index] bar" is perfectly fine, you should read php.net/string aswell

It throws notices doesnt it?

not inside double quotes, no

hrm

Thank you - it works now …

ekneuss, You are saying unless the key is unquoted?
In that case thats all you needed to say

DanMan010, I'm saying that inside double quotes, you don't have to quote array indices, you can however use a more complete syntax using braces where you've to quote them

so echo "{$row['moo']}"; or echo "$row[moo]"; right?

yep

I guess I should've went into detail

you won't be able to do "$row[$foo+2]" though
but again, this is explained in the manual over php.net/string

Hey folks
If I'm executing a PHP script via CLI, is it possible to manually set something via a command line argument in $_SERVER ?

like $_SERVER['argv'] = 'moo'; ?
or w/e?

correct, but before script execution

I dont know if that would make sense..
You might as well use a standard variable
Could you elaborate on an example?

i want to use a path in my script that is variable, but appears as hardcoded to the script
essentially passing a variable to the script via php rather than on the command line

Why wouldnt you pass it as a argument in the command line?
an*

JSeligstein, you want to get the variable from like a file or a database

No worries, I'll figure it out

echo "Answer: {$_GET['answer']}"; or echo "Answer: " . $_GET['answer'];

I would think the {'s
But for readibility, perhaps the 2nd option.

graywhite, mostly tatse, but concatenation is "faster"

' , $_GET['answer'];

graywhite, the second one is better for reading

class names goes with capital letters right?
the first word

Elagic, not required

Yeah you should double quote unless you want php to parse the contents

i mean, the first letter

shouldnt*

i've always found that . concatenation looks less readable since i'm not usd to seeing it in other programming languages (except perl which isnt known for readablilty)
well the . one looks easier to read untii it becomes a buncha dots anyway
or maybe i should just use fprintf(), arg so many choices
*printf()

Anyone know a good host that can handle a digg/slashdot effect?

MediaTemple.

how do i echo this statement? onClick="document.getElementById(\"menu\").value = "Searching..";"
in single quotes
i mean
onClick="document.getElementById('menu').value = 'Searching..';"
should be that sorry

I love you, that's the host I wanted to find but couldn't remember!

I love you too hun.

a guy told me to add \" instead of a single quote
but that didn't work

Saberu what error are you getting?

'\"menu\"'

$something = 'onClick="document.getElementById('\"menu\"').value = '\"Searching..'\";"'
doesn't look right :/

oh okay
yeah that won't work

echo "bla", $one, $two, $three; or echo "bla" . $one . $two . $three;

what do i need to do then?

do…
do \'menu\'

ok

the first one

graywhite, it will be faster with the commas

im reading a script that says Function blah instead of function blah, will this work anyway?

yes

wow

works
thanks

wonder why he would use Function instead of function?

No problem.

Elagic, it's case insiesitive

sux
lol
ok

Elagic - It's dependant upon how badly you wish to declare the function. FUNCTION always declares it, Function often declares it while function (all lowercase) often will but might not depending upon how the computer's feeling that day.

Is there a way to prevent part of my page from cacheing?

wtf
the correct way is all lowercase
for sure
FUNCTION sux

Yes. Use the header() function to set cache control vars

I have a switch to check for a user level. When the user level changes the switch doesnt something else, but it doesnt change until I refresh it…

oh wait, PART of your page?

Well Im changing the navigation depending on the user level
but it doesnt change until its refreshed even after loggin in ..

if i want to have 2 contructors, one with 5 parameters, and one with 3 how do i it? because it says cannot redeclare the function

Elagic, use optional parameters

what are functions that secure your server against malicious user submitted content called
like
add_slashes
the quotes
whatever

!+enter

Don't use the enter key as punctuation. Think in complete thoughts, then type.

not addslashes

technical term, please
well, add slashes can protect against SQL injections

ekneuss how do you do that?

shit like that

that's true

Elagic, php.net/functions

mysql_real_escape_string() is still more appropriate though since you wont inssert corrupt stuff i think

well, you should use the escaping function provided by your database libraries

graywhite, well what are functions like that called

i dunno xxx_real_escape_string()
like pg_real_escape_string() for postgres

does anybody know the function stripslashes_deep() ??

well whatever
like

there is no such a function

what are functions that secure stuff called

they are escaping the data

oh i thoguht there was, never used anything but the mysql_real_escape_string though

ekneuss it doesnt talk about optional parameters
it talks about default params

i dont know if they have a common name

yes, I know… but is there no technical term for functions like that
a general term describing those functions

"escapees" ?

ah
:p

'prepared statements' i guess is the alternative

ekneuss you are there?

Elagic, php.net/functions.arguments

you are talking about default args?

yes, as in optionnal

to make them optional i do $arg = NULL ?

talking about escapees I'd like to "unescapees" an array, is it posible? I cannot find the function. I mean I want to use stripslashes() to convert an array

for example. read the manual page

funny, i did
and it doesnt mention "optional" params
maybe cause im in spanish

yo tambien

:P

actually, how much do you guys cost per hour for freelance? i am going to do one. so I want to take it as a reference.

grrr no overloading sux
wish php had that

I think the word is spaniard and not spanish xD

there are whole books on pricing. you should price according to your reviews
start off at $20 or something

I suppouse it deppends on the country

sveiki
hey everybody

eh, unless he's using scriptlancer or one of those sites
good point though

Kylratix i heard some people said EUR50/hour!!
but what i usually heard was US$10 - US$40 per hour
surfero yes!

sure, why not
once you are well known
and people know that you do quality work
you can price like that easily

whats a quick way to check if a mysql query has returned a result?
in php
without having to do a while statement
i mean

hey guys how do I stripslashes() a hole array?

without having to do if $row['password'] etc

for()?

well that its a way xDD

array_walk

wam yeah

Kylratix can't imagine this

DavidHKMrPowers:

can i 2 methods with the same name but one static ?

nope

no

ok

you could just have a static method, which checks if it's being called non-statically

nice
how to do that?

Depends on how good you are

wam i am bad

Then you shouldn't do it professional.

so…what's the general price?
range

Unknown. But good ones you don't get below 70 EUR/h.

wow
how good ?

knows uml, documents, writes unit-tests, …

that is us$800 per day working 8hrs
wow
lol
impossible
that is us$18k per month

If you have nothing else to do, yes.

wam !!?

what else would you do
lol
18k per month
wtf
that is 200k per year

thanks guys cya

in 5 years you are millionare
programming in php
lmao

70 EUR is impossibel to em

writing bills, getting new customers, calling back, support, mail, chat, …

tax

no tax
lol

does anyone know anything about getting the imap functions to work?

who will know

Question, when I do an array of files through a post (IE, each input type="file" is name="xxx[]"), the array that gets returned looks like $_FILES['xxx']['VALUE'][1..whatever], I'd like to loop through each file..how would I do that?

if you want to risk working full time under the table, that's your call

I've compiled PHP with the –with-imap flag and all that, and downloaded and installed the C-Client or whatever, but it still doesn't know what imap_open() is

Xyphoid here in south america nobody will care
but 200k per year for programming in php is imposible

of course, because you have to do other things too. Like reading mail and so on. And you have to pay taxes - at least where I come from. But w/o taxes and theoretically 100% productive working time, it's possib.e

Elagic, no its not
Elagic, not impossible at all

wam working 8 hours is perfectly reasonable
but how much taxes you gotta pay there for earning 200k per year?

no. Max. 6.5 or 7 hours a day. The rest is not billable.

8 hours billable time is different to 8 hours working

ok lets say 8hours billable
10 hours working

it's the flipside of contracting rates - you eat the overhead

for 200k
wtf
that is 180k with taxes

and you eat all the time spent looking for the work in the first place
you have 10% tax rates on 200k a year?

hi, has anyone used feedcreator?

On the one hand, it's about 120.000 with taxes (where I come from) and I got better things to do than to code php 8 hours a day.

hi

Here's what the array looks like after I do a post with several files. How do I loop through this correctly? http://pastebin.ca/656188
I was expecting $_FILES['image'][1..x][keys]
instead its $_FILES['image'][keys][1..x]
err that should be 0..x not 1..x

foreach(array_keys($_FILES['name']) as $key) { // work with $_FILES['name'][$key] $_FILES['etc'][$key]
it's annoying, I agree

argh
it's not that easy

lol i warn us$300 per month here working 7 hours a day

I need to pass the full array through…is there any way to hack it?

and you are taking about earning $700 per day working 7 hours
cant believe it

well, south america …

*earn
things are cheaper though…

i want create a variable name with the same value of another variable. Does it possible? example: $module = $_GET["module"]; // where $_GET["module"] is "clients" then i want create a variable with this name: $.$module // resulting in $clients . Does it possible ?

but you wouldn't believe what the rates are for some other languages
But that's a different story. n8 everyone.

omg

does anyone uses Feedcreator???

even higher?

yeah, i usually end up handing $_FILES around since it's so annoying to split it up

wam HIGHER?

xyphoid..damn what a pain

php is the least-paid language I know of.

i do c#
rates for that?

…except c maybe
n8

I have a fairly simple question

http://pastebin.ca/656193 I want to turn this echo into a name/value url string, help?

i have some large arrays i will be working with in some php code, and i want the user to be able access them always through page refreshes; is this possible in php?
they can die once the user leaves the page or closes their browser

well, that's what the session's for - how big are we talking?

How i declare a variavel name with the same value of another variable? $a = "clients"; i want create this variable: $clients (using the value of $a).

OHHH I forgot to say please — please

that's what i was wondering for

variable.

do you mean $_SESSION[]

yeah

all right
that's pretty much all i wanted cleared up
thank you
size probably won't be a problem

and yeah, that uses session cookies by default, so it'll go away on browser close

unless there is a low limit to the amount of data that can be stored in there

not by default

all right
thanks very much

http://pastebin.ca/656193 I want to turn this echo into a name/value url string, help please?

im a c coder trying to figure out variable scopes and what not
so i appreciate the help
im used to having the memory at my disposal
adios

anyone here? iv'e got an array related question

Don't ask to ask, just ask.

http://pastebin.ca/656193 I want to turn this echo into a name/value url string, help please?

while ($row = mysql_fetch_array($result)){ echo $row['Username']; }
why do i get an undefined index error for Username ?

check casing

use mysql_fetch_assoc instead

*casing

Saberu, unexpected capitalisation error?

{$row['Username']}

var_dump($row) and see what you have

may not be pretty, but http://www.shauninman.com/archive/2006/11/30/fixing_the_files_superglobal

Saberu — not to good at this but try - $result = mysql_query( $query ) or die( mysql_error() );
while( $row = mysql_fetch_array( $result ) ) {
echo "{$row['username']}";

i get nothing :x
i laready had the or die part

what happens when you var_dump($row)? also echo mysql_error();

i added the var dump row function and it didn't output anything
so row seems to be empty..

just put it in exactly how i wrote it and it will work
now someone help me
come on please how to do send a name/value string from php

ah it's doing something now

Take of the @ sign… might show some errors

the var dump thing gives me this..

Saberu your just trying to read a table row correct ??
and echo the result

string(32) "098f6bcd4621d373cade4e832627b4f6" }

yes

http://pastebin.ca/656193

so the data is there

 PHP Web Hosting | PHP Hosting

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

Comments are closed.


Blog Tags:

Similar posts: