Domain Search | www.


Related Pages:

Well you can choose to not authorize online but the auth code to put back in has to come from adobe yet one only
Ok so heres a theory question sort of so i have this script which uses the GD library and outputs a dynamic image
Hey guys sorry quick question i have a text field i am retrieving from a mysql db i am trying to place the story
TehSausagefoutrelis What I actually is needed a way to get the physical path of the url so that in can test that







box

you don't want that, adding 's is the wrong way to go about it

oh, i know exactly what you mean now

you want it wrapped every so many em, or based on a distance, not based on number of words

what exactly do you mean by based upon a distance ? that is what i have been doing, specifying the distance in px but still no dice

how can i output headers that were recieved?

i thought that using CSS's overflow would do the trick, but apparently not. it will keep the contents in the div, but it will make a scroll bar, which is not what you want. have you checked out digg's css?

f00li5h, i will now generate the invidual report of the queried id number how do i throw the $record['idno'] to the other form?

"overflow: auto" by the way

printf('a href="index.php?xml_id=employee_rec=%s"Some link text here/a', $record['idno']); -- how will the item.php get the result of $record['idno'] ??

Headers that were sent to your browser, or headers that your script pulled from another server?

yep that is exactly the problem with the overflow property, and yep im using firebug right now sorting through the css to try to find something, give me one minute i think i almost have got it

as $_GET['xml_id']

on the item.php page?
right?

That's a malformed query string though
yes

thanks

to the necessary length

i don't understand why you have to use serialize() to put arrays into session variables

have you been fiddling with "max-width"?

yep, no solution yet though :/

do you have any padding set for the div?

You don't. $_SESSION[whatever]=array(whatever, whatever); Will work just fine.

i have been trying that as well but to no avail, its very strange, i know i havent worked with php/css in a while, but i could have sworn i never have had this problem before, the content always fit inside its container

which mod is used to display anyname.domain.com ?

i'd try using display:block, display:inline, padding, max-width with a percentage. i've been looking at digg's css and i can't really see anything else that could possible be doing the trick for them

something like this http://thakur-dheeraj.stumbleupon.com/

words aren't the same width, so you want them to wrap into a coulumn 3 inches wide
you have to run a query to get back that record again, based on the id passed in

in what case should serialize be used o.o

complicated data structures that need to be stored as text

like objects?

yeah, objects and arrays
you do need to have the class definition included when you deserialize the text though
uyou do need to have the class definition included when you deserialize the text though/u

can someone guide me to something that shows what the headers of a post request look like?

anyone else a fan of oop?

only when it increases the quality of the code

hm yep that is what i have been doing, putting them into columns

To a point. A lot of OOP, bluntly, is unnecessary crap.

so you want the width of the column to govern where the lines are broken

exactly

hence the condition
so, you just force the column to have a particular width
and then the words will wrap correctly

yep that is how i thought it was supposed to work, that is what i have been doing, although it still continues at one line, maybe it has something to do with the way echo outputs the text? and it does not follow and/or recognize the css formatting rules i have set ?

did you paste it at css-standards?

yep ive been playing around with it

f00li5h, i already have the query but my problem is how will i pass id from that link down to the new query
php webhosting $idno = $_GET['idno'];
echo $idno; ?

yes, that's the way

i have that on the page where the new query should take place
and $idno should be use to get specific result

yes!
that's the idea, you just select out the row where food_id = $idno

yeah but my problem is the other page wont recognize $_GET['idno'];
so $idno doesnt have any value at all

does the id appear in the url?

its funny how so many people try to bash php

it's very easy to bash php

compared to java, c#, etc.. php doesn't compare. It's moving up in the ranks; but php does have BIG faults.

like the hundreds of inconsistantly named builtin functions

and the 15 aliases for the same shit

well python is a mess web wise

lol... python? who the fuck uses python
:-p

alot of people
but
yea

a lot of people use CF too, but you know what i mean
ua lot of people use CF too, but you know what i mean/u

if php had a bytecode kind of thing
it would kill python
python does bytecode and still just a tad faster then php

i think php host trumps python now; but i dont think that says much

it has opcode caches

f00li5h, thanks mate
i got it now
thank you

f00li5h, cacheing is different then bytecode kind of thing

I wish php did a lot of things, such as talk to the soap headers in the SoapServer object

yeah, but not

?

what benifit is there in converting your script to bytecode?
it doesn't have to be recompiled each run

it in most cases eliminates parsing

as does an opcode cache

i guess
i am sure th implmentation is a bit different though

yeah, python caches it's opcode on disk, APC caches it in memory

i still wouldnt call it a cache
python cna also do cache'ing

i'd say that compliling and storing the results on disk, until the source is modified is caching

well
its not exactly cache'ing '
bytecode is not a cache

how not?
ofcourse bytecode is not a cache, it's the thing that is cached
you cache bytecode

you cna have a python script and have it give 10 different results each time and it can stil be in bytecode

you cache the bytecode, not the output

well
sure'

so, you'd say that python is caching bytecode on disk then?

in a idfferent way but yea i gues
i was just curious if php will ever do that
i would say bytecode is much more per say low memory

most of the opcode cahes for php cache in memory, but there are a couple that cache to disk (zend sheild comes to mind)

i wonder how those compare to python
speed wise

puthon is quite slow, from what i hear

is there a function to remove a certain value from an array?

array_filter

or a function like array_filter that doesn't preserve its keys?

f00li5h, i just looked at the debian shootout

i'm not fimiliar
you could juse do array_filter($callback, array_values($array))

I don't think that would work

try it

when items get removed, I get holes in my array

then do it the other way arround

ah
thanks

anyone good with curl, i have somewhat of an odd problem

yeah i just did 50lb. reps not too long ago

lifting code eh?

no.. curls.

right

hrmmm, i have a server here that seems to despise giving error messages...
I'm setting error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', true);
are there any other flags I'm missing?

do you have access to php.ini?

no

use an htaccess file to set display_errors

ah ok, go above php's head I see

since you are having an error you cant see, the php parser never even parses your override of the display_errors setting

oh, duh, that whizzed right by me
thanks fedya!!

Options +Indexes
php_flag display_errors On
that's my .htaccess
no prob

so whats the topic to learn today

pear

whats that

time2learn

pear.php.net it's a set of classes and libraries that you can use to solve common problems

cool, im googling for information now

pear.php.net
oops ^^

lol, thanks

i need a little membership login / user system is it better to build my own or should i use one already avaliable ?

use one that's already out there

hello

tag in a document I loaded but this line isn't working:

meow

preg_match("title(.*)/title", $file_contents, $matches);

huh? :P

.* is nearly always wrong in a regex

^.^

Hehe, apologies for the newbishness.

f00li5h, yea why re invent the wheel and i like admin section ........but i hate building them

([^]+)/title

Thank you.

anything that's not a
also, parsing html with a regex is going to be very fragile

I'll give it a shot.

see also TITLE/tItLe

how would i get content from a request? page is requested to, how do i get what comes after the headers?

It's actually a rest response but I don't feel like full XML functionality for a single tag.

or headtitlefoods/head

i'd like to be able to get the completely output the request that's made to this page

So it will be predictably well-formatted.

how long do you think you'll get by with just that one tag

Forever. The function I am writing is for that one value.
Odd...
([^]+)/title
preg_match() [function.preg-match]: Unknown modifier '(' in /home/.lillehammer/mhillyer/tubeorama.wakatech.com/functions.php on line 43

you still need the delimiters and the title

I have the opening title, delimiters?

yeah, you regex needs to be wrapped in some kind of delimiter

Sorry, nevermind.

see also, php.net/preg_*

is their any popular membership login scripts out there anyone can think of ?

Got it, awesome thanks!

i think that there is something like that in pear, but i haven't used it.

hmnmmmmm
its really hard to find good ones sometimes

http://kestas.dreamhosters.com/WikiSite/category.html
when you've been working on a style for too long you can't see what it looks like from the perspective of someone who didn't build it

what do i need to look into to take online payments through paypal without having the user leave the page for payment

can't be done

there is not API to access the payment functions and just call them and submit the payment data to paypal without leaving the site

that's right

agreed

grrr.

you couldn't do it securely

how would i make it so that i can accept credit cards and not have the user leave the site? would i need to set up a merchant account or something along them lines

http://kestas.dreamhosters.com/WikiSite/category.html

kestas i would consider moving the search box because it doesnt seem to flow with the rest of the layout
im using firefox on linux to let you know how my view of the page was rendered

Try sending an email to PayPal regarding your questions. https://www.paypal.com/IntegrationCenter/ic_contact-support.html

hmm, thanks, I'm glad that's all you point out

over all the color scheme and layout is cool, i like

color is nice

that's what I was most worried about,ta

anyone here know any php membership scripts ?

I just woke up

on the same level as some other big scripts ?

and it did not make me want to vomit so its good

that's a good sign I'm not going for the "vomit" look
what do you mean?

a membership login user base script or w/e

oh a pre-existing class for memberships

sure

kestas, that colour scheme is horrible

nope, don't know any, because memberships are usually fairly customized to each site

yea i know

and the layout is to blockish and big including fonts

kestas, i will need ot customize it qauite a bit hmmm

hmmm

i jus hate making admin sections

I'm no good at picking out palettes

Hey, I'm in need of some suggestions for reducing the number of SQL queries a PHP password strength checker makes (checks a remote dictionary). I'm not terribly good at optimization. http://www.peds-pt.com/update_password.php if anyone is interested. Pastebin incoming.
http://rafb.net/p/hRlKk677.html
Lines 43-52

As far as MySQL optimization is concerned, an index on the field word would help.

can someone explain to me why curl sends form data as multipart/form-data rather than application/x-www-form-urlencoded

1 more time anyone know any user management systems off hand ?
i hate making admins

working out how do do an xslt transform and discovered that php has this ability -- looking at the phpinfo(); I see I'm using 4.3.9 and it was *not* built against sablotron but seems to be libxslt 1.1.11 compiled against libxml 2.6.14
I found php.net/xslt but from what I've read so far it seems to presume sablotron

would i be better off just parsing my $_POST and concatting it myself before i pass it to curl?

I'm somewhat unsure how to proceed from here
anyone able to point me in the right direction to go read docs, or have a little wisdom to impart?

can you guy stell me if http://www.oscommerce.com loads up it not loading over here

works for me
pinging it works too

hmm
wierd tis not working for me

does not work for me
unknown host

yes
I do a ping request
and it don't work
no response
but I can access there subdomain for there forums

maybe they just switched their nameserver
and it hasn't propagated yet

yep

and I just got lucky?
o_o

be my guess

wierd
you guys deal with os that much
milk sounds good
with cookies
hehe

with honey ^-^

$array[] = "value"; does this append to an array?

yes

hi there

mysql_query('SELECT * FROM table WHERE `dbstring`=' . $POSTstring, $conn);?

hey SirArthur_pt

or lol i created a $pairs, and tried to append to $pair

ha

SpamSlayer, yes...

no reason why you couldn't

WHERE field LIKE '%" . $_POST['something'] . "%'

alright, thanks, i'm trying to figure something out but if i can do that it must be a facebook problem
alright, thanks, i'm trying to figure something out but if i can do that it must be a facebook problem

spamslayer, don't foget to do proper escaping and filtering to the data before the comparison

foutrelis the use of $_POST[] on WHERE clausule isn't unsafe
build a whole query from $_REQUEST/$_GET/$_POST is

It is. You can never trust user's data and use it in a query without proper checking.

magic_quotes
:P

.

and good luck trying to inject

I have disabled that on my server :P

that's your problem pal
is your server anyway

anyways

i'm not too worried about people injecting stuff, if they can mess it up good or them haha :-D

actually, depending on magic quotes and using _Request are bad habits... it is better to always do our own data handling

depend on what you need the var and what for faisal_d
if its indifferent to you whether it comes from POST or GET

true

use REQUEST
otherwise use POST or GET

hmm, you have register globals on?

avoid is REGISTER_GLOBALS

lol

I normally do 2 checks on each form I make
1st Client Side, JS
2nd Server Side, PHP
but each chooses to do whatever they want... just don't complaint afterwards

Point a browser at - ftp://ftp.berlios.de/pub/xchat-win32/ (I Love the way it displays the content) don't use an ftp client... What script does he use? Anyone know?
Point a browser at - a href="ftp://ftp.berlios.de/pub/xchat-win32/"ftp://ftp.berlios.de/pub/xchat-win32//a (I Love the way it displays the content) don't use an ftp client... What script does he use? Anyone know?

you mean http:// ?

I see nothing special pengwyn...

that must be dedicated hosting!!

FireFox just displays the usual white page with the file list

No green and blue and light blue?

nope

same here

FTP:// doesn't support xTML
neither CSS
must be your Internet Explorer or whatever that does it

I get a redirection to the ftp:// when I visit the http://ftp.berlios.de/.......

firefox..

maybe you have a firefox plugin that does that?

lol

http redirects to the file

It must be super cool - will never fail hosting for blogs. icanhascheezburger.com is there and they get lots of traffic.

i didn't say http://
it's definetly ftp://

Then it's definitely your web browser

okay if your getting regular black and white I take your word for it

he could be drunk :-D

I get blue too!!

I'm getting a Finder window :P

:P

I ain't drunk

lol i was kidding

http://www.sirarthur.info/xchat_ftp.jpg

well it's super cool having your own uber server, with root shell and everything... but at that cost, i'd rather stay lame :-p

this is how I see it...

thats how i see it too SirArthur_pt

I have settled with an unmanaged vps. It's like having your own server but for a lot less money.

wow am I a lazy bastard.. error_reporting(E_ALL*0)

http://sacxtra.com/ftp.png

Pretty neat!

That's your browser skin pengwyn

like I said, not drunk...

any FTP you go will look the same

okay. I wish that would have been an open directory script
I could use a cool open dir script

try ftp://darkstar.ist.utl.pt/
does it look the same?

nope...

strange...

looks like you have a Firefox extension doing that, pengwyn

Yeah it does do it.. Sorry..

what skin do you use?

Gradient Brished Metal
v 1.4.3

will check it on FF repository

The other thing is linkification, but I don't suspect that doing it.
Ahhh STYLISH 0.5.2!!
that's it..
It's not the theme

cool

(ftp pages were awful) was the script in stylish

will download

too bad that wasn't an open directory script, I love the way that looks
server side php... for to kill /index of .... Running on apache version ...

supplied argument is not a valid MySQL result resource" what would cause that error to come up?

the variable you're checking is not an mysql object resource

anyone know if its possible to it possible to conditionally set display_errors using htaccess (based on ip)?
doh

normally it occurs on things like:
$sql = "SELECT....";
$q = mysql_query($sql);

kenman? display errors?

mysql_num_rows($sql) --- error!

kenman, like redirect to a 404 page?

pengwyn, display_errors, the ini setting

"$query = mysql_query('SELECT * FROM table WHERE `message`=' . $comment, $conn); if(mysql_num_rows($query) 0) {" thats the way I'm using it, is that incorrect?

SpamSlayer after the $comment
don't forget to close the '

pengwyn, i dont have access to php.ini, and they have it set so no errors get shown

$query = mysql_query("SELECT * FROM table WHERE `message`='" . $comment . "'");
Kenman ini_set

Ahhh...

doesn't do the trick?

SirArthur_pt, parse errors occur

What page does it look for? You could redirect to that page

pengwyn, not a 404 issue
if i get a parse error, all i get is a white screen

ini_set("display_errors",1);
or using .htaccess to do it

SirArthur_pt, won't work
*ahem*

phpvalue display_errors=1

anyone know if its possible to it possible to conditionally set display_errors using htaccess (based on ip)?

it's possible
just google it
I can't quote .htaccess directives by head
something like SETENVIF REMOTE_ADDR...

there's probably a reason they turned off display_errors ain't it.

shared hosts do it often
to not expose bad scripts

yeah to hide information

it's frankly a good idea to turn them off on production
and log them instead.

yeap

SirArthur_pt, "php_flag is a directive, not an environment variable"

that's why I brought it up

thus, you can't use SetEnvIf

well by ip?

Kenman SetEnvIf on the block to check the IP
enclose the IP to show errors with that
May be wrong, but something like:

easier just to open up a shell and tail the logs while your testing :p

cythrawll, no shell

SetEnvIf REMOTE_ADDR = 123.123.123.123 php_value display_errors 1

else i have scripts for that

lol hosting without shells

I already tried SetEnvIf %{REMOTE_ADDR} (66\.11\.111\.11|66\.22\.222\.22){1} dev

on a scale from 1 to 10, how pointless is php?

or, SetEnvIf %{REMOTE_ADDR} (66\.11\.111\.11|66\.22\.222\.22){1} php_flag display_errors Off
cythrawll, not my choice

webmasterworld.com/forum40/357.htm + SirArthur_pt 's php thing...

hi
is there an easy way to get all weekdays? (or do I have to call strftime with different timestamps?)

date('l');
strftime is for PERL people don't feel alone in the World

but with date('1') I only get the current date

yay perl

arikael_ date('l',$timestamp);

I like perl because it isn't useless.
unlike php.

will give you the date of the giving UNIX timestamp

Understood?

hrmm, i wonder....could i do a tail passthrough via php to peek the logs?
i doubt it....worth a try though

SirArthur_pt, ok, I got that ;-), but I thought there is perhaps an easier way

Kenman exec("tail ...");
arikael_ easier than that?!

that is if tail is in the path and he's allowed to execute outside base_dir

yes, like give_me_weekdays(); *g*

you dare to say date("date format", $timestamp) is harder than strftime format?!
create the function

I will ;-)

function give_me_weekdays{ return array("Monday","Tuesday"...); }
easier now?!
forgot the ()... but you probably noticed it

alright, it worked! :-D ur a king not a sir! lol thanks, i can sleep happyily now

the problem is that we have costumers form france, germany, spain etc., so I have to use strftime.

arikael_ LC_TIME
date works with LC too

are you sure?

arikael_, Zend_Date is internationalized date class

I know that LC_TIME works perfectly with strftime

sorry
just checked it on PHP site
they recommend strftime with setlocale

argh, stftime + windows = bad

no
setlocale + Windows != setlocale + *NIX
eg for portuguese date on Windows setlocale(LC_TIME,"ptg");
on Linux setlocale(LC_TIME, "pt_PT");

problem is that some of the parameters doesn't work

they do, just get the locale by Microsoft rules
you know MS... they never go with standards

arikael_, zend_date... im telling yah
with zend_locale
you'll love it

cythrawll is that from some framework?
I can't find zend_xxxx on PHP site

it's from the zend-framework

SirArthur_pt, Zend Framework

k
thkx

they have some awesome locale features

but can zend_date be used withouth the rest of the framework?

http://framework.zend.com/manual/en/zend.locale.html
arikael_, it has dependencies on other classes, like zend_locale and zend_exception
you can use it without using the whole framework
but seperating it out might be not-so-fun
and you don't really need to separate it out either, just put it somewhere, put it in your include path and use what you need.

I normally try to avoid frameworks...
to do that I rather rip translations from Joomla

well, I'am using cakephp, so can't just switch to Zend

or other alike

it's what I do, I have a few applications using zend fw classes, all off one library in the include path and I'm only using about a tenth of it in my apps
you can mix with zend, it's less of a framework and more of a components
I'm sure you can use some of the stuff in cake no problem, I just wouldn't want to mix the mvc stuff together
that might be really bad

yeah

sigh looks like another night w/ no sleep

hah

I really dislike cake, it's too much of a framework

what is the best way to post an xml string?

so, I just need to figure out the depencies

arikael_, don't separate it out
just stick the library somewhere and put it in the include path

the whole library?

should you urlencode it or what?

you won't have any issues with cake.
yeah, why not?

hm

fedya, if yoru posting it, it wouldn't need to b e urlencoded

?

arikael_, zend's more like a collection of classes than a framework, not like cake where everything is tightly coupled to each other. Just use zend_date and don't mix the mvc stuff :p
Zend is like use what you need, cake is like... USE ALL OF ME LOL
i dislike cake

etc

I will certainly not
well, that's your opinion ;-)

it's a good one
cake ain't all that

I haven't said that cake THE solution

zend isn't either
it's missing some important view stuff right now... we're resolving that soon though.

nm, is see your talking post vs get

it always depends on what you need and what you want

well great thing about zend, you can have your cake, and zend it too
uwell great thing about zend, you can have your cake, and zend it too/u

zend me some cake?

I personally am not crazy about any popular php fw

err

I think write your own most the time

josh[n00b], have you tried zend fw?

yes

echo file_exists('../images/'.$code.'.jpg'); echoing NoThing

josh[n00b], yeah but with zend if something doesn't fit, you can easily write it yourself and stick it in
personally I dislike using orm's for small projects, too much bloat. so I do my own models

You can do that with most FW's. Granted some are more extentendable than others; but yeah.. for most php projects; a lightweight dispatcher fw will work just fine
I like a CRUD set up w/ a Dispatch MVC

josh[n00b], yeah zend has one of those already written...

Yeah but you get all the other zend fw jaz
mine is less than 300 lines of code and 3 objects in memory
bmine is less than 300 lines of code and 3 objects in memory/b

don't have to use it

if(strcmp($image,$code.".jpg") != "0" && file_exists("../$code.jpg") == "1")

um, wow... for dispatching?
that's too much
that ain't lightweight at all
:p

i'm not sure what i've done wrong with the != or == but they're not returning results

no.. for dispatching, templating, etc.
and i said less than
i think it's around 240 - 250

stripping whitespace

nvm got it

where can i find a list of possible filetypes from $_FILES['foo']['type']

no double spaces w/s
spaced*

HAH, i can do it in less

im sure you could. but it owuldn't have the functionality that i use on my projects

im sure yours wouldn't for mine either

:]
I have a very 'lose' fw

lose
fail

losing loose

trogdooor
night fsckers

Such as my controllers have access to the templates. $c-template-render();
:-p

Anyone here ran into the chicken/egg problem before, when you define your own handler DB based, when storing objects?

define CrazyTux[m]

that was poorly worded CrazyTux[m]

| 𺫠[ i'm studying PHP ] »ºð |

chafe, if you take a look at http://www.php.net/features.file-upload you'll see that $_FILES['userfile']['type'] represents the mime type of the file, if the browser provided this information.

josh[n00b], cythrawll ah I'm just now getting sick... it sucks.

..:: TRIVUz Color Script Deactivated! ::..
i'm studying PHP

you should be sterilized

and want
to be guided
please

ahah

http://bugs.php.net/bug.php?id=33635&edit=1 cythrawll, josh[n00b]

do not use enter instead of spacebar

rza
ok

CrazyTux[m]: You are trying to store sessions in a database?

can you help me rza

josh[n00b], I am storing sessions in a database.

if the mime type is image/jpeg and i use and i use if type is "image" will it render true?
or do i need to if image/jpeg

josh[n00b], yet, I can't remember the solution, it seems mysqli is being destructed before the session's, therefore results in 'can not fetch mysqli'

what do I need to be a professional programmer?
study some thing else beside PHP
?

read read read!

brain.

)

zooZZ, learn lisp.

josh[n00b], what mvc do you use, or your own?

CrazyTux[m]: my own implementation of the idea

linux ?

no lisp

stands for ?

CrazyTux[m]: when is the code being executed?

hey

josh[n00b], I'm actually working on my own as well.

1 EST converted to local

it's ez breezy

josh[n00b], which bit?

MVC :-p

what is lisb , cythrawll

josh[n00b], no which bit of code are you asking about?

CrazyTux[m]: The part that fails. When is it running?

zoozZ, i have no idea what lisb is
but lisp is a programming language.

hmmm !! but does it relate to web prog.
I want to be a php+ as they say
like learning linux beside
and mysql
does Ajax help ?

and I have to know the following technologies on a day to day basis:

josh[n00b], one second, pastebin'ing.

what are they ?

php, java, apache, C, perl, xml, xslt, javascript, css, html, linux(alot of this), cvs, svn, ldap

josh[n00b], http://pastebin.ca/625864 thats the index.php main index to controller, here is the actual controller being pulled when it errors out: http://pastebin.ca/625869

ruby, tomcat, lucene, jsp, coldfusion, mysql, oracle, and postgre
you got it?

cythrawll, on a daily basis?

i'm saving them

cythrawll, are you just trying to be impressive?

you don't have to know all of these

lol, ok maybe not daily, but honestly on a monthly basis I use all of that.

lol cythrawll
but do you really know all of these/\

some better than others, but yeah... I can pull off a project in all of them.

it depends on what you want do, web-programming, web-designin, windows-apps etc.

great !!! ,,

I really need to get around learning python

cythrawll, have fun with that one

I really could be more familiar with ruby too.

josh[n00b], still around here?

python is outside the list ,, now they are 21
:'(
too many !
PHP took me 2 months
and i wait to cover some practices
and exercises

zooZZ, it took me yeaaaaaarsssssssssss to get my experience

hello

Hmmm ,, I look forward to be some one like you in near future

ldap_get_values_len($ds, $entry, 'jpegphoto');

no you don't

why ?

learning PHP (or any other language) isn't the problem. The biggest challenge is to write good code

tring to !

i would like to know if the result is really a jpegphoto or if there is no jpegphoto

pay's lousy for the intelligence it takes.

i'm quite smart

programming is hard period, you have to work miracles on a daily basis

but u know my English is SUCKS !

yes, it is

maybe you just don't have the right job cythrawll

zoomzoom, many great programmers don't know english.

Shrike|work, my job is pretty demanding, you saw my list ;D

zooZZ, ^

i can has some mace plzkthx?

I can has ?? wow ,, I 'm still good :P

but then you say you don't get paid an amount comensurate with your skillset, so perhaps you don't have the right job.

no, I am actually making fun of everyone here

Shrike|work, yeah i guess your right

I can has cheesburgers?

I should start looking elsewhere

lol

Good morning drones

you can has sqrwl,
is gift

but don't I have to know even a few about ASP ?

oh, I know asp and can get projects done it

though I hate commercial stuffs

i get paid about £35k for doing PHP. if that's any comparison. i know php. not c or ruby, just php.

but honestly I have never used it outside of acadamia

no, you need to understand TCP, HTTP, markup languages, and then the platform of your choice

honestly the most valuable experience to have is java...

cythrawll, people keep telling me that...
cythrawll, I don't really see the angle.

CrazyTux[m], angle?

cythrawll, point of view.
cythrawll, people say that, BUT why....

it's an interesting topic

zooZZ, MikeSeth is right, understanding how everything works is much more important than knowing technologies

yes ,, i c

CrazyTux[m], because honestly java has a very tight enterprise friendly language

Java is enhanced OOP

and you can make miracles happen with servlets

for the poor of PHP OOP
can it be impelemented n PHP ?

mysql_query("update `table` set title = replace(`title`,'"','\"') ") or die(mysql_error());

zooZZ, can what be implemented in php?

what miracles can you make happen with servlets?

I don't know , I heared that Java can

Shrike|work, pretty much the miracles that you can make happen with using mod_perl or C api in apache... without the pain

cythrawll, maybe the enterprise bit, but I've seen php used in just as many mission critical operations as I've seen something like JSP

Java is nearly the worst case scenario for OOP
It's OOP for the masses
Much like religion and opium

PHP OOP is poor though

MikeSeth, lol.

it's sufficient

i dont understand cythrawll, what do you mean?

CrazyTux[m], programming in php these days is becoming more similar to java... with loose typing :p

anyone ?

.. and no lexical scoping ... or namespaces

PHP syntax error?

but honestly if your application needs threading ... throw php out the window

yeah
yntax error, unexpected T_CONSTANT_ENCAPSED_STRING
mysql_query("update `cubecartstore_inventoryXX` set title = replace(`title`,'"','\"') ");

hmm

it's somethign to do with the quote but i dont know why. i've escaped the "

whoah

nice infos guys ,, pleased to meet ye
info*
GBU cye

oh the previous one wasn't escaped!

what you pasted last gets parsed correctly

yeah its fine
resolved :]

what is the line before it
ah, n/m

its fixed :p

YO

How to check if a binary value isin string? Suppose i use a 5 bit integer to define some stuff, how can i check if the 4th bit is 1?

Muisje, PHP has bitwise operators
php.net/operators

if (ord($ch) & 0xF0) { ... }

good

Well, coffee & code!

I'll pass the code
for me now is coffee n sleep

hey, i need to dump a huge .sql file via php.. anyone have idea what function can help me to do it ?

I could use some coffee, but I find it disgusting

4:20!

MikeSeth 9 AM here

BAHAHAHAHA
sorry. Not personal.

Do you know about all those websites that creates thumbnails of websites ? Any way of doing that in a dedicated linux server (no screen) ? maybe using OpenOffice via command line or something like that ?

google for watir

MikeSeth, hello

Web Application Testing in Ruby ?
:/

sup
it's a toolkit that allows you to control a browser

even if i have no X ? :?

uhm. Then I presume you'd need some sort of integration with an existing browser or rendering engine
I donno if such things are in the wild

ImageMagic or GD no?
s/magic/Magik

nah, those don't really help here

i really doubt all those services who offers instant creation of thumbnails (thousand of them per minute) could rely on a browser rendering and a screen capture :E
i assume it will be too slow

MikeSeth I mean along with watir

ah. Yeah, although I think there were some built in features for that in watir itself
well for high performance work, indeed you would be doing some custom integration with e.g. Mozilla nglayout

MarcosBL, you have to fetch the contents and make a screen.. Or you should find an application that can read HTML and parse it directly into an image.

or what it's called these days
$lig-pet();

will try, ty both of you

stupid laptops

laptops ftw !

mine only has 2 hours of batt time

my first 6 months were on a laptop then i had enough money to buy this beast :P
ah no i always have mine plugged in even on the road
the batteries are poror
poor*

well.. I'm in the living room... not interested in carrying a wire everywhere
but well.. gonna get it and hook it up

good job your not on a desktop then that'd be slightly more difficult

I just use my laptop to read e-books or port some work

thing I hate also, is the scroll piece.. I'm typing and then my hand touches it

I don't see much use... low specs, low capacities, low batteries...
laptops can't match a desktop

i don't mind carrying around the lead so

they can solve some mobility issues, but that's it

oke
back, went outta power

How can I calculate the number in $number="428"; with addition (4+2+8) and then echo it?
I don't want to use strpos.
substr even.

echo ($number{0} + $number{1} + $number{2}); ?

laptop isn't ment for big stuff, true, so therefor you shouldn't buy one thats really expensive.. but I did

sean` and it outdates
and you can't replace hardware on it then

SirArthur_pt, hmyup, but, I'm good for now, just bought this one, after a year I'm ready for a new one

they are useful, but not as main computer

my main pc is really crappy.. my laptop is more powerfull...

mine is the otherway around

buying a new one next month though

ehehehe
my laptop is one of those 500 euro stuff

I have 2.0 ghz, 2gb ddr2, t7200 sata disk 100gb
core 2 duo.. my pc is a amd athlon 3000, 2.0 ghz 1gb mem something osmething

I just keep making PC's out of this one
already have 5 children
ehehehehe
change this, change that... in the end all I need is to buy a box and voilá: A new PC

Euhm.
__call wouldn't work for a call to an abstract class?

how would i do .php?foo=foo&bar=bar ?

Sashi... how do you do what?
parse those vars?

http://pastebin.ca/625908

$foo = $_GET['foo'];

i have switch $_GET['foo'] as in the pase
paste*
i would like to add &bar=bar

same
$bar = $_GET['bar']

do another switch?

Sashi does it need to be set for all cases?

I haven't see your code yet

SirArthur_pt, http://pastebin.ca/625908
what do you mean imme

Sashi I know but connection issues

Do you need to get $_GET['bar'] for every case of $_GET['foo'] ?

page times out

no it doesnt have to match

It's a switch $_GET['act'] and cases that are numeric which include files.
Hmmm different approach...

ok Sashi, so whats your problem then?

What do you want to do with bar?

search from a sql db

Do you need the results of that search for the includes, or not?

all .php?var=value&var2=value2&var3=value3... are parsed as $_GET or $_REQUEST

PHP PEAR MDB2 - i get a "MDB2 Error: not found". it is a PostgreSQL. the driver is installed. still it doesn't find it altho it exists. any ideas?

yea but not the cases

i mean, it finds the PGSQL driver, but still writes "error - not found"

switch($foo){ case 1: include("filex.php"); break;
and on filex.php you can parse the bar
the sameway, includes counts as being the same script
was that your dount?
boubt
doubt

i dont follow, can you give me an example?

pardon?

you can parse the $_GET vars on the main file
or in any file it includes

briefly_, #pear at EFNet is better place to ask

okey, thanks!

has anyone sue Zend_Memory?
it is one of core modules from Zend Framework?
?=.

http://pastebin.ca/625916
Maybe that's a solution... ?

mm
so in a link i would put?
?bar=1?
nvm

yep

yea i think that would work
)

tried it already?

yep
cept
should be the other way around..
right now its ?bar=bar&foo=foo
a simple reverse should do the trick
how would i do say..
?foo=1&bar=2 ?

the order doesn't matter.

?
i would like ?foo=1&bar=2

when your php script gets it, it doesn't matter what order the querystring has.
?blah=jo&r=x&x=y&foo=1&b=8&bar=2

k

hrm
although, i believe you'll find the order is preserved

f00li5h..after a nice rest
i sorta got the tag search "right:
"*

what's this about resting?

i was out of it :P

just had dinner

anyways.. in sql db i have 5 coloumns, id,name,file,tags,author

hrm, what are you attaching the tags to?

? a link?

hi

howdy

string(32) "30f7df3fea5004bfb35be2adb18c50e2" } $value){ }?

logik-bomb: 'use'?

I want to parse that information

$value){

}?

logik-bomb that's not $_REQUEST
that's from a cookie
so $_COOKIE['categoria']...

php var_dump($_REQUEST); ?

PHPSESSID normally is part of the cookie
but if in your case comes from request, use $_REQUEST['categoria']...
or $_REQUEST['picid']['vote']
if more than one dimension

$_COOKIE is transposed over into $_REQUEST on some setups

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

deixa ver...

lol
_pt

claro :P e "categoria"

Olá pessoal
greetings

http://pastebin.ca/625942
whats wrong wit htaht

take a good look at explode and tell me

Sashi us a fulltext index
use

talus46, no sep?

the text uses a | between the expressions and you are exploding using a " "
is that how is supposed to be?

even if i put "|"
always gives me something wrong with the num_results

split uses ereg, and | has a special meaning
split('[|]', $foods);

$result = mysql_query("SELECT * FROM files WHERE tags LIKE '%".$temp[$i]."%'") or die("SQL ERROR");
try that Sashi

i presumet hat $temp has been escaped accordingly

rather die(mysql_error());

0) { error :P

Call to undefined function: mysql_num_results() in

0?

mysql_num_rows

who would like to critique my website??

:P
dlaroche can I bring your selfsteem really down?

Your website is shit
Criticism done

SirArthur_pt, its if the record has more than 0

is there something more i can help ?

Sashi is mysql_num_rows

How can I use 1-9 in one condition in: if ($foo=[1-9]) echo "ok";

each row is a record
or each record is a row
how you prefeer

Call to undefined function: mysql_num_row() in :P

rows
rowSSSSSSSSSSSSSSSS

mysql_num_rows()

Don't forget the ##%&/&%&$%$#@@£§@£§ S

Anyone?

dbe preg_match
if(preg_match('/1-9/',$foo)...
[1-9]

can someone help me figureout why this form does not send out the email? http://pastebin.com/m253f40fe

geez, i really found a rough crowd. good!! here is the link http://69.77.228.82
username:test
password:test

dlaroche... the template is from oswd.org

i didnt claim to make the template

Thanks.

dlaroche so what can I say...
what am I suppose to look for in the site?

well, for starters sgerbitz, you've left yourself open to a SQL injection attack

functionality, professionalism

DeadZone - how do I fix that?

dlaroche the site is empty...

the site is done with php, css, and html

aren't they all?

i just got the functionality done, now im going to do the content

how does the code get the $email var?

im saying no javascript, or activeX

vovvawork - its suppoes to pull it from the 2nd SQL statement

then you have to do a fetch from the query

duh I feel stupid

dlaroche if I may something

go ahead

you rather trim a bit that register form
all fields are too small

yea, you have a query, but not a fetch, so nothing is actually being pulled out of the database to be used

cool, i will look into that then

username and password are OK
but like for a person name
and address
that's too narrow

i've got a little script wich get value in an ldap directory and put it in an html table. like that in a loop echo "tr";echo "td".$var."/td";echo "/tr";
the problem is i 've got one "td" by line, what is the way to get 10 "td" by line ??

i kinda started that page but left it until i get it hosted and the script written for paypal integration

also if you don't want to use Address line 1 and address line 2, rather use a textarea
in fact I always found those 2 fields a problem on coding forms
many times people inserts two addresses

Hi. var_dump() shows private and protected variables in its dump. Is it possible to get this information in, say, an array or something, so I can iterate over it with foreach? I could ob_foo() the output and parse it manually, but I wonder if it can be done more easily?

:/
todsah print_r($array);

I could do something like that, im just not sure yet on what info paypal is going to need to charge a credit card

from you? none

sgerbitz, look at this as well http://uk.php.net/mysql_real_escape_string

just the invoiceID
and who to pay

pay me, lol

the address and so is inserted on PayPal etc

any idea ?

tag in {$row['location']} ? possible?

unless you'll use PayPal Express

right, thats what im saying, i dont know what user info paypal will need from the user

that piece of crap based on the insecure VISA 3D Secure

im wanting to use paypal direct

check on PayPal Express forum

i dont want the user to have to leave the page

thanks. Hadn't notice that print_r can also return a structure instead of just printing it.
s/notice/noticed/

if you ob_ it, yes

oh, wait. Yeah, it's just a string.
so it's the same as var_dump();

what you want to do then?
get a structure

$value){...

basically get the output of var_dump, but as a real data structure.. for debugging purposes.

on $array['1'] = b, will give $key = 1, $value = b

most notably the private and protected variable values from objects. The rest I can easily do with introspection.

$regex="3"; if (preg_match("13579",$regex)) echo "Odd number"; it gives me: Warning: preg_match(): Delimiter must not be alphanumeric or backslash.

preg_match("/[13579]/", ...
but uh, there are better ways of checking for an odd number.

Like?

if ($number % 2) == 1) { print "odd"; } else { print "even"; }

if($numner %2) { odd ... }

if (($number % 2) != 0),

it can only be 1 or 0, so truth is enough

Anyone into OOP with php5 and good knowledge of abstract classes and overloading?

true, but I personally don't like to not check against an actual value if I'm not checking for an actual bool for some reason.

instead of != 0.. you could just do if (!($number % 2)) ... but I simply prefer if ($number % 2) like f00li5h suggested
meh, it's all converted to a boolean anyways

umm, 0 or 1 is boolean

Thanks.

$number % 2 is probably int, isn't it?

I want to do object overloading on an abstract class with the magic method __call is this possible?

Yes, an int is returned, but 0 and 1 are traditionally known as booleans.

I guess it's just a little quirck I have. Same as that I'd rather return(true) or return(false) instead of return(0) or return(1);

in a loosely typed langage, an int with the values one and zero is the same thing as a boolean

$ php -r 'var_dump(true == 1);'
bool(true)
According to the loosly typed equality checking, true and 1 are equal.
$ php -r 'var_dump(true == "hello world");'
bool(true)
Same thing for anything else that isn't considered `false' in PHP.

and does if(...) use == or === ?

Think of it as: if ((bool)...)

==

The expression is converted to a boolean
So it's neither == or ===

so it's !! then?/

if (1) is the same as if ((bool)1) which is the same as if (true)
true === (bool)1
It isn't...
Empty arrays, empty strings, 0 ints, 0 float/doubles, null, and false are all considered false when type casted.

kuja if use === 0 can be true

I never said it couldn't.

null is false
if == 0 is false

tag in {$row['location']} ? possible?

=== is an operator that takes 2 expressions and compares their values.
And it returns a boolean.

yes, for which only null is false

false === 0?

No.

how does the ? operator work
or whatever

usable when something can return zero

can anyone give me a quick example

and still be true

false and 0 aren't of the same type.
!+identical

The '===' operator not only checks for equality, but it checks that the supplied values are of the same type. For example, in the case of 1 == '1' this would be true. 1 === '1' however, is false because 1 and '1' are two diferent types, integer and string. For more information on PHP operators check out http://www.php.net/operators.comparison

http://pastebin.ca/625980

i wonder why we need type based comparison in a laugage like php

false === (bool)0

if(strstr("some string",$needle) == true); if the $needle = s will return false
if(strstr("some string",$needle) === true); if the $needle = s will return true

? is not an operator afaik.

=== is useful for functions lke strpos

well not operator
like in if statements

it's used for shothand if(){}else{}

that's what I meant I guess

For example, strpos() can return a number (which can start at zero) or false

can you give me a one liner as to how to use it

it's only === because you'd be lynched if you had an is_false() function

kuja when false returns null

hard to google for a ? kinda and prolly be quicker to explain

echo 1===0?'strangeness':'correct';
you could search for alternative syntax on php.net if I'm not mistaken...

== means false can be either 0 or null | === false is only null

Hi folks

false does not equal nulll when compared with ===

php.net/manual/en/language.operators.php

$ php -r 'var_dump(false === null);'
bool(false)

what type is null?

SirArthur_pt, no, == just checks typeless === checks with type.

I have a PHP page which is being used as a 404 ErrorDocument on Apache.... Can I rewrite the HTTP headers in this document so that Apache doesn't send a 404 to the browser?

null is null.

use header
so it's not any type?

Do you know which header(s) I need to change?

f00li5h, its own type.
var_dump(null);

(int) null is meaningless then

php.net/alternative_syntax

imme, found it and trying it out now -- thanks

null acts very similarly to false, but it has semantical differences.
"semantical"

cythrawll, I think if one more person tells me to learn Java, I just might do it ;o)

so it's only difference is that it's type is the null type?
CrazyTux[m]: don't learn java

CrazyTux[m]: Learn Java.

break even

haha.

If I had the time, I'd learn Java.

kuja, wheres all the time go?

Work.. unforunately.

CrazyTux[m], learn Java.

I'm teporarily working 12 hours a day this entire month, so it's rough.
And tomorrow will probably be an 18 hour day work work
err... 18 hour day of work

kuja, ah why so much overtime?

Not enough employees.

kuja, what type of work?

CrazyTux[m]: Trance club (I'm a flair bartender, the one who does neat tricks and the likes)

berry__, kuja whats the benefit of me learning Java?
kuja, seriously? lol

CrazyTux[m] sorry, when no type is returned the var is null

kuja, where at if you don't mind me asking.

CrazyTux[m]: Seoul, South Korea.

so === still looks for null (no type)

kuja, ah.

CrazyTux[m]: You'll learn a lot about OO and application design using Java.

Java still didn't convinced me

=== is true if the values are equal and they are of the same type - that's two conditions.

ausome on strpos(something)...

CrazyTux[m]: I wouldn't use Java for web development because it's a pain in the ass, but for anything else it's great.

where in the hell does the return value have the same type and value of the comparison?

kuja, yea.

it depends on what's returned, doesn't it?

strpos can return any int
or null if not found

CrazyTux[m], I agree, Java for webapplications seems overkill. But for desktop programs, I find it to be a really nice language.
* I agree with kuja.

strpos() is a very good example of when to use the === operator.
I wouldn't say Java for web applications is overkill, it's just that all the frameworks are XML hell.

SirArthur_pt well I just threw that in so I remember it

null and false both == 0... so you can't win

So unless you like writing hundreds of lines of XML for even the smallest web app written in any Java web development framework.. I wouldn't recommend it.

0 != null
0 is zero, an integer number
null is null, nothing, nikto, nada

are you sure?

0 can be a string character too

yup

strpos() can return 0 indicating the zeroith position of a string. To strpos() that means the desired substring was found and strpos() is returning the position at which that substring started. To avoid zero being treated as false, you use the === or !== operator.

echo 'php var_export( 0 == null );' | php
true

TRUE=(0 !== NULL) FALSE=(0 != NULL) right?

NULL is a constant set if it has been assigned to Null - obvious - has not been set or has been unset - so I guess that's what a NULL is

NULL is a way of saying "nothing"
Undefined variables in PHP are all NULL, for example.

kuja - yep

http://php.net/manual/en/language.types.null.php

its the value you have - when you dont have a value - kind of

FALSE

that's a different question

TRUE

true

to match 0 with null use ===

we've been over this

because under == can be either 0 or null

fooli5h - what if you set a var to be 0 and do the same test with the var and not the constant?

what are you talking aobut?

hi

fool5h ahh sorry thought you were doing it as an "if" test - my whoopsie

ausome under a simple comparison "==", null and 0 are the same

a constant being equal to a constant?
that being 0

kuja, hows your oo in php?

I'm trying to get info from a user, using "posix_getpwuid" but, I get a www-data on the name field.

its been a long day...

how can I get this data on a readable way??

define 'readable'? What's not readable about 'www-data'?

anybody could help to make a "table" with more than one "td" by line ?

Pascal_1...?!
tabletrtd/tdtd/td.../tr/table

how can I translate that www-data to know what is the user name??

www-data is an username
the default username of Apache

oh ok

you mean the real name from the passwd field?

hi

How can I echo OK if $foo has 3 numbers?

i pastebin the litle script

hi
how would i check if $a begins with "you"?
for example

substr($a,0,3)=='you'

I am doing some file path manipulations. I am using the functions basename and dirname but was wondering if there was a function that could easily split each directory/path element.
any ideas?

SirArthur_pt anwsered me. tx anyway!

wilsby26, explode?

shesek, sounds good.. I'll check it out
ty

np

mmm i guess :p

How can I check if $foo contain 3 digits?

is it an array? or a single number with 3 digits?

http://www.pastebin.ca/626009 . but the problem with this script is there is only one "td" by line

preg_match("/ddd/", $foo)
uh

echo "3 digits" if $foo="525" for example.

"\d\d\d", $foo
sorry

strlen($foo) == 3 ?
or $foo = 100 && 1000
?
take your pick

todsah, you need ^ and $ with that

Pascal_1 I'm sorry I'm having difficulties to access pastebin

i'd use is_numeric($foo) && strlen($foo) == 3

no, "if $foo contain 3 digits".

can i paste in pv ?

that was the question ;-)

right, sorry
my bad

but he probably meant just three digits though :P

PASTEBIN,OM, THEN

is example is only 3 digits

if (strlen($foo) == 3 && ctype_digit($foo)) { .. }
;p

his*

easy as this: if($var = 100 && $var = 999)

what about 001 ?

but it's a very short script

that would be the string 001
not a number 001

my exemple is on 6 lines

001 will trim to 1

so? it's still digits

in which case, strlen would work

Yeah, should be from 001-999

dbe, use rage__

if (strlen($foo) == 3 && ctype_digit($foo)) { .. }

dbe if (str_len($number) 3){ do a function to fill with zeros }

pastebin.om ???

who said he want to fill with zeros?

because if you REQUEST 001 it will be trimmed to 1

What's wrong with number_format or sprintf?

he needs to, to get a string "001" and not int 1

what's wrong with what rage said ?

put some of your grey cells to work

sorry i dont understand what you mean

Pascal_1, rafb.net/paste

use brains.

I think neiter solution is wrong, they are just many.
neither*

there is 1 letter mising.

hmm Wolfpaws thank you for your help ;-) my english is not very good it's not easy for me to understand everything

never heard of .com pages?

pastebin.com sux

not really
Anyways; What seems to be the problem?

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

it doesn't work 80% of time.. for me at least

it's a newbie problem :-(

Pascal_1
do a $pointer
to make the rows

just put the tr out of the for

but i'm a newbie

outside of the for(). Only echo("td.../td") inside the loop. That'll make everything go on one row.

change echo "trtd" . $nom . "/td/tr"; to echo "td" . $nom . "/td";
then $pointer++; and then if($pointer == number of columns here){
$pointer = 0;
echo "/trtr";

Fantastic excuse. "I'm a newbie"

what? he can just put the tr out of the for
Wolfpaws, what's wrong with saying that you're a newbie?

shesek no if he wants more lines than just one
imagine he have 6 records and want 3 per line

SirArthur_pt, but it's not what he asked

have to be inside the for

it doesnt works everything is on one line
it's not an excuse it's a fact

Pascal_1, if you want to have X in each row, use SirArthur_pt idea
i'd just let css do that
table layot sucks

There is a difference between statubg that in hopes that someoe will do that for you and stating that because you don't know how to think logically.
s/statubg/stating

ig guess you are right..
i*

if I have a function f1
that has some variables defined in it
and a function inside of f1, f2
how do I access the variables defined in f1 when inside of f2?

global ?

not working

try to global from both of them or something
or just for someone else to answer you

Thanks for your suggestion.

wait*

dbe, no problem

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

meow

heh, i'm so lame

you need the variable to first be defined outside thefunction.. so its originating part of the global scope

i'm always bugging my friend about C++ help

thats goos
good

good thing he's tolerant :P

hup hup hup

hi, a few of my pages are taking excessively amount of time to do their tasks (ie auto updating etc) but i'm not sure where abouts its going slow. Any ideas how I could debug/track the problem?

run your script in a profiler

f00li5h whats a profiler, or how? can i do that if its using multiple pages and so on?

could you see that ? http://rafb.net/p/VplhWy51.html

profiling is something debuggers normally do, they keep track of how much time is spent running each function and each line of a script

f00li5h ahh thats cool, can you recommend one ?

you'd have to look them up, xdebug and dbg come to mind though

is there any free php code cleaners out there? i just want to remove blank lines from my code

Pascal_1 put echo "tr" after the for line
and on the if() put just /tr
while($pointer != 5){ echo "td /td"; $pointer++ }
then echo "/tr";
to make the table close clean
while($pointer != 5 || $pointer != 0)...
and $pointer must be =0 before the for block

why not pastebin your example?
then you get to edit it before you submit it

I can't access pastebin
http://www.sirarthur.info/test.txt

thank you very much SirArthur_pt , i tell you if it works . thanks again

f00li5h those debuggers/profilers look a bit of a pain in the arse to install/setup? are they that bad?

Pascal_1 refresh
I added a check for last entry

thanks again ;-)

there are some modules that can't function with debuggers, but if you want a debugger, you've gotta do it

http://rafb.net/p/HOyAOX66.html
better if it will be in PEAR

with mysqli_multi pr PMA
OR, you can do it properly and feed that to mysql client

damn scat back :/

thanks a lot !! it works fine

yw

Spoonfeeding people doesn''t mean you're actually helping

Wolfpaws I didn't spoonfeed him
he just posted the code on a place where I can't edit it

hello everyone. i have a q, of course. can PHP manupulate post ?

yes
can

as in, send post

yeah, well providing the complete solution to a question is filed under "spoonfeeding" in my vocabulary.
$_POST is just an array.

wouldn't __staticCall() be better than __callStatic() ?

im sorry that im asking, i acctually remembered just now that ive used post before
but ill come back if (when) ill have some problems

foreach($stuffinfridge as $food) { do_eat($food); fat++; }
*$fat++ :P

I can't se $fat to be defined anywhere.

foreach($stuffinfridge as $food) { global $fat; do_eat($food); $fat++; } better? :P

if($fat = $obesity){

oh, gawd. global makes your code fugly

Is there a function to filter empty values in an array or do I have to use filter or something like that?

buy_medicine_for_get_slim();
money--;

(null)(): Failed opening '/var/www/domain.com/testfile.php' for inclusion (include_path'.:/usr/share/pear') in unknown on line 0

$fat++;

:P

Veejay isset($array['key'])

anyone got any ideas why i would be getting this?

Slap_Stick because the file doesn't exist

/var/www/domain.com/testfile.php does not exist or you do not have read permission

or the path is not correct

hi anyone available?

I would like to find a function that returns the array where the empty values have been removed
So of course

Ask away.

I could foreach, if(isset, etc.

ok im crap a explaining things =p
but ill try.

ok , the file exists as it gives me an output on the screen, let me check permissions

I've set the bar too low. Don't worry.

$value){ if(!$value) unset($array[$key]); }

Alright, so there is no such function

i have a bit of code for a contact form....

Thanks

for each -- parse error

the only thing is i was told to change a bit of it, but i didnt save the changes.
/get email
$email = "$email";
/ get subject
$subject ="$subject";
/ get message
$message="$message";

Please use a pastebin.

sorry =p
brb then


Related Topic:

Well you can choose to not authorize online but the auth code to put back in has to come from adobe yet one only
Ok so heres a theory question sort of so i have this script which uses the GD library and outputs a dynamic image
Hey guys sorry quick question i have a text field i am retrieving from a mysql db i am trying to place the story
TehSausagefoutrelis What I actually is needed a way to get the physical path of the url so that in can test that