Domain Search | www.


Related Pages:

Hi how could i make script i have list of rules and those rules have id and some other variable for example something
Alright so if I wanted to move a ton of variables into a config file and use them throughout another PHP file
Need some opinions here I am starting to realize that i am spending way to much time developing little things







maybe you outta profile your code
to find the time-culprit

nah i have. it's that one line
while($arr2[$k][10] == '') { $k++; }
still loading.

I suspect the fgetcsv

nah it's not that
while($arr2[$k][10] == '') { $k++; } it works fine
i.e if i don't try to identify if the current row field 10 is blank
dont know why though
alright this is causing some pc lag now
is there anything faster than == '' ?
actually maybe this is the problem
while($arr2[$k][10] == '' && $k $lim) { $k++; }
where $Lim = is the total size of the original array
hahahahaha
i was wright
write
rite
right*********
it was surpassing the goddam array
loads in like 4 seconds now
told ya

thanks for that link,, nice set of functions select username, TIMESTAMPDIFF(DAY, SYSDATE(), users.created)as days, TIMEDIFF(SYSDATE(), users.created) as detail from users; i'm using now hehe,,

fseek, stream ? hmm

awsome detail on user creation patterns during the week for this site.. awsome

hey anyone know how to echo the Real Hostname of your current cms mysql hosting database?

oh header

like the phpmyadmin running of my host is localhost but i want to connect to it via a MysQL software
is there a php host variable which can echo it?

it'll be the same hostname that you connect to to view the site then

db.mydns.net.nz
getting access denied errors now -_-

azuranz- are you connecting locally ?

nah
from my local pc to the remote Mysql server

have you setup to allow root to allow remote connections?

on where?
the host is setup to allow remote connections yeah

in the php mysql web hosting database under the users table, it should have it setup for % as well as localhost

http://help.webdrive.co.nz/?artID=146

external connections not allowed from postgresql

im using myusql
mysql*

what db error are you getting?

error 1405
access denied for user

means either you can't connect from that host, or the username/password is incorrect

yeah thast what im thinking
must be the host cause the username is ok

does it say access denied for user 'root'@'localhost' ?

nah says access denied for
username@myIP.HostNAme.global-gateway.net.nz

go into phpmyadmin

yeah

open the mysql database

yeah

navigate to the user table, and browse it
Tell me how many entries are listed for username

not there ay
cause its shared hosting hosting doubt they have it
but im sure they have remote access enabled cause they provided the darn address for it

If they have remote access enabled, sql hosting needs to have it in the database
or you won't connect

whats the best host way to perform a query when i need to do select. ... where fieldname = $var but where $var is "test'ng" for example, notice the '

hi friends!
i have a problem
a php/mysql app says it will not operate with php_globals turned on
so I create the .htaccess file and do
php_flag register_globals off

.htaccess

Why don't you just disable php_globals? Last I knew it wasn't recommended to have it on anyways.

but then i get error 500 internal server error

and what does the error_log say?

i am trying to find out where that would be, i have many access files i n ~/log
on this webserver

oh well i'll ask them later

ls -lart

hey who was just helping me right now
i found the problem

What was it?

in my hosting control panel under the Rights of the database user it has; access lolcation: 127.0.0.1 thats why
so
my current ip should do it ay

hi all

it may automatically update the db to accomodate whatever you select for it.

is this a mysql question?

i am not sure it's in there
ls -lart on what?

yeah mysql

so why not ask in #Mysql?

there are many access.log's
ftp log
sftp.log mail.log

you want error.log

traffic.html

the people in #Php are a lot cooler

is there a php 6 release date they are aiming for?

i have access* ftp* info* mail* sftp* and traffic*
in my /logs dir

error*?

newp

go read the docs for your hosting plan, and find out where the error log is

/logs ? wtf? If you're running apache, logs can be found at /var/log/apache

leavethen

connected successfully

icf7, i can't access /var/log....
that's serverwide

i win!

lol, and you got write acces to / ?

i like the people in here a lot better actually, #php just has a bunch of noobs begging for you to write their apps and they'll give you credit on the bottom of the page

access.log.current is showing me trying that page

who said that?
does it show the 500 too?

icf7, i believe it's actually ~/logs

in my /logs dir

oh i see

ah, ok

access.log.current shows 500

where does that say he has write access to /?

"GET /dir HTTP/1.0" 500 645

great, what's the error message with it?

hello

oh, you are right: I meant read access to /logs. I just wondered.

i have a question

!ask | Pascal_1

the command "$result = ldap_get_entries($ds,$search);" give me a lot of result particulary this : "$result[$i]["unrcannee"][0]". But in this result there is a lot of different value. i would like to count the number of different value.

!meow | f00li5h
!tell Pascal_1 about ask

for exemple "$result[$i]["unrcannee"][0]" give me some titi value toto value etc... i would like to know the number of toto titi etc ....
what is the way to do that

you want what now?

3 -0400] "GET /dir HTTP/1.0" 500 645 www.url.org "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070603 Fedora/2.0.0.4-2.fc7 Firefox/2.0.0.4"

sorry i'm not clear ?

hi

not at all, pastebin your code, and a var_export of $result

no. Posting the source or the relevant parts of it to http://pastebin.ca or similar may help

why is there no error message with that log entry?

ok

?
you don't see the 500?

message, not code, message
"Options not allowed here" that kind of thing

oh, i have no idea

fail.
go get a proper error log

maybe i should end it all and go play in traffic

that won't fix your webserver, but it's all the same to me.

f00li5h, let me ask you this, kind sir
is there some other way to turn off register globals?

no
you have to do it in php.ini, or an apache config. by the time you get to the script, it's too late

crap CRAP

call hosting provider. ask for error log.

it's oneandone.com
i'll email and ask how to access error log
for php?

if they say you can't see it, tell them to cancel your plan

or this is apache error log?

you want apache's error log
although you should be able to see the php one too

here is the code : http://www.pastebin.ca/614137

do you think they configged it to where it has no error log?

they could have

my question is what is the way to count the number of geii.1 entry geii.2 entry etc.....

drat!
f00li5h, what do you think the error log would tell me that i could fix?

stop using the font tag, it's rubbish.
i don't know what's in the error log, but it will tell you the problem

ok ;-)

Arfdee, have you tried php_value register_globals off in a .htaccess file ?
instead of php_flag ?

have you got an idea for my question ?

what is your question?

my question is what is the way to count the number of geii.1 entry geii.2 entry etc.....
and ..................sorry for my english

did you try using count()?

the problem is i dont know how to use it with this kind of array

Hrm.. any hints on how i can count/search this array and have it return the number of times LEVEL = 70 ? http://www.pastebin.ca/614093

count($result[$i]["unrcannee"])
check the array functions, i'm sure there's one for that

the ones I have tried complained about only being able to count string and intergers

Thumann, array_search(value,array,strict) i think

yes but i want the result by unrcetape : how many geii.1, how many geii.2 .......

MarcosBL, let me try

what is LEVEL?
what is "unrcetape"?

a key in the array, f00li5h

you could use array_sum and array_map

A key yes

then just do a foreach, get the key, and call count() for each of the values

MarcosBL, same error

$result_etu[$i]["unrcetape"][0]

what?

it's about my question, i'd like to count the number of differents value in this result

what specifically?

try php_value register_globals 0
or php_value register_globals "Off"
(note the quotes)

in my pastebin on line 39 i get this result wich give me some differents value i would like to count the number of these value

$value ) { printf( '%s has %s value%s', $key, $occurs = count($value), $occurs == 1 ? '' : 's' ); }

it's for me ?

array_count_values()

why the hell is there a-- oh, that's right
there is no array_map for associative arrays, is there?

php_value register_globals 0 ?

no, that's not right at all
quit making things up

what is not right ?

MarcosBL, i can do that in the index file?

are you drunk?

i think he's high

no, Arfdee
i was talking about the .htaccess

where do you intend the 's to go? they're 1) short tags - discouraged 2) not part of any apache config 3) can't be in the php, becaues it's too late by then

sorry, confused the php tags
php_value register_globals off - in .htaccess

hi all
I need some advice or idea

yeah then i get a 500 error

right, f00li5h, made a mixture of answers xE
tried the other combos, Arfdee ?

4) MarcosBL is on crack (and had better give me some)

what other combos?

I have sentence like http://img.com/myimage1.jpg http://img.com/myimage2.jpg
I want to split out the two links?

try php_value register_globals 0
or php_value register_globals "Off"
(note the quotes)

thats a nice sentence, drcode

f00li5h xDDDD

so It will be one link for image1 and one for image2
is there some simple command that I can use?

drcode, php.net/explode

GO GET YOUR ERROR LOG
you're just stabbing in the dark

thanx

i'd suggest preg_match_all

explode
if thats all the sentence has

k

doesnt look much of a sentence

yes
thanx I will check it out
yes
thanx rza

with this regex |(?[^:/?#]+)?(?://([^/?#]*))?([^?#]*)(??([^#]*))?(?:#(.*))?| from here http://search.cpan.org/~gaas/URI-1.35/URI.pm#PARSING_URIs_WITH_REGEXP

it seems to be what I need
thanx

any idea for my question ?

array_count_values
why? because it's known to work?

i try tyhis but i dont know how to use it

check out the docs
php.net/manual/en/function.array-count-values.php

Is there any way to disable E_STRICT error checking only for files in certain locations (files included from PEAR) ?

What error_reporting level will turn off warnings?

you lied to me, that doesn't do what i wanted at all

my problem is not the use of the command but the syntax to use with this kind of array

no, because regex are devil span, especially when things like parse_url and parse_str exist

ignore array_count_values

s/span/spawn

??

array_count_values is a red herring, MikeSeth made it up to torment me
just loop over the array, like i suggested at first

what is your question?

if magic_quotes_gpc is on, i don't need to do any additional escaping, right?

magic quotes are evil

yes, you do
magic quotes is bogus, it just means that your data is wrongly escaped for every destination

here is my code : http://www.pastebin.ca/614137. i would like to count the number of geii.1, geii.é etc.....

what should i do?

you have to escape the data for the database differently to how you have to escape it for a shell

f00li5h, are you a purist?

but it could if you wanted what it does

i cant' change it at runtime!

disable magic quotes, and do the quoting yourself

what was uor suggestion ?? with foreach ?

yes, scroll up to see it

f00li5h, how to disabled it? magic_quotes_gpc can not be altered at runtime !!

i'm a don't-root-my-webserver-or-inject-sql-ist
you should disable it in php.ini then
perhaps you can do it in a .htaccess too, i'm not sure

f00li5h, i don't have access to that

or in the htaccess file

i'll check the .htaccess option

Pascal_1... why not just sum in the $promo="geii.1"; part ? $promo="geii.1"; $promogeii.1++;

php_flag magic_quotes off
php_flag magic_quotes_gpc off

in the end of the loop you will have the total $promogeii ...

be want's to know how many elements are in the sub-arrays (from what I understand)

could you give me an exemple ?? :-(

$value ) { printf( '%s has %s value%s', $key, $occurs = count($value), $occurs == 1 ? '' : 's' ); }

f00li5h, hexdoll, how about this idea? if it's on, i do a stripslashes before manipulating data.. that should reverese it's effect, right?

not sure about how the data looks like, but if you are already looping over it
case "ICS010":$promo="geii.1";$color="#009933";break;

maybe
^

you can just sum 1 each time you get a "ICS010" (promo geii 1)

get your admin to disable it for your vhost

array_count_values() will do it

how so?
array_count_values doesn't do what my code does

hi

sure it does.

it does not

and what about array_search ?

mine lists the number of elements in each key
array_count_values lists the number of occurances of stuff in the array

hey f00li5h
http://faq.1and1.com//scripting_languages_supported/php/5.html

add $x[] = $code_etape; after line 39. Then just print the array out.

that mentions my error

I know what it does.

I noticed ob_start and ob_get_contents don't work when the output comes from an external php module calling fwrite on stdout, is this a bug or a feature ?

so why are you saying they're the same thing?

after the loop, it will print how many of each are in the array.

me?

i did php_flag magic_quotes_gpc off and php_value register_global 0 in .htaccess... that should do it, right?

i don't know, you'd have to reread the docs to be sure

kk.. thanx

no, it will print the number of elements in the array in each key of an associative array

don't know what you are talking about. If you want to count occurances of something in an array, use array_count_values()

for you

check the local values in the phpinfo

i don't.
i want to list the number of elements in each sub-array in an associative array
much the way my code already does

I'm not talking to you, I'm talking to Pascal_1

both you need sex
now

i'm well aware of this, that's for pointing it out though

i'm not a good coder :-( could you explain to me how to do that ?
because i cant add this line $x[] = $code_etape after line 39

add $x[] = $code_etape; after line 39. Then just print the array out.

oups i try

ive set display_errors = Off and error_reporting = E_ALL in my php.ini, but i still don't get errors logged to apaches error.log.. what can be wrong?

haha
display_errors = Off?

print_r($x); ?

php has it's own error log,doesn't it?

display_errors = Off and you think php should show errors ? php is not a woman.. it you tell him to NOT do something, it doesn't

js_ ensure that log_errors is enabled in the php.ini

yeah, i just found it and its off, hehe

log_errors = On

thankee

Hey

les burp

Really?

more or less, so

it works great like that : after line 49 i add this line as you say and after line 62 i add this : print_r(array_count_values($x));
it works thank you

$quantity) { echo $x." occurred ".$quantity." times.br /"; }

grr, i don't like the way i code sometimes.. i've ended up with a function with about 15 nested if(){ }else{} blocks...
there's gotta be a methodology to avoid that kind of messyness
something obvious

=\ how the hell did you get 15

an associative array perhaps

is there any class to convert from mpeg, avi, 3gp to flv file?

hi

Min2liz, look at ffmpge-php

this line doesnt works it give me one line by occured

you shouldn't do that in PHP imo

Min2liz, ffmpeg-php rather

a href="/archives.php?page=2&topic=All&type=All&year=0&month=0"2/a" ??

Min2liz, but yes.. it's not something that should be done by a php script

where are you putting it?

how can i transpone a 2D array?

tell to my boss
but thanks, i will try

one element at a time?

good afternoon

meow

$value) { echo $key." occured ".$value." times.br /"; }

TehSausage, hehe, if($_request['x'] && $_req['y'] && this and that){ some $db-query(); if($dbresult == 'z'){ 12 more if's with various sql checks }else{//errors }
that's roughly how

have you done validation for your pages before ?

validation of what?

that should be array_count_values($x), not array_count($x)

f00li5h, associative arrays? how does that work?

for XHTML compliancy

can you stick the IF into the sql statement?
oh, yeah sure. xhtml is pointless though, because most agents see it as html... and don't even parse it with an xml parser
although that may be outdated information ...
without seeing your code, i can't say

marvelous

now about.. $keysToCheck = array('x','y'); foreach($keysToCheck as $keyName) { if (!isset($_var[$keyName])) { $error = true; break; } }

*proper* xhtml does parse as xml.

thank you very much

&

but the agent may not be parsing it as xml, that's my point
&

because the server is not sending it as xml, the content type is how the agent knows how to parse it.

that is, if you want a literal ampersan

yeah i tried that then i get "reference to external entity in attribute value" error

meh, the benefits of xhtml are clearly not client side, server side if you need to parse static content (I have many many times) xhtml rocks.

I use something like that for dynamic form validation; works like a charm, but causes some overhead if you only need to check for a few fields (1-3)

$array[0] = "hello"; $array[1] = "monkey"; etc?

yes, i understand that. http://www.webdevout.net/articles/beware-of-xhtml /cite

explode()

php.net/explode

ok, thanks!

have you got a snipit of the markup that causes that?

f00li5h, i mean, i have an array of arrays, and i should iterate through the columns first with a nested foreach structure, ... i can't really express myself in english, but i hope it's understandable...

here is it http://pastebin.ca/614194

f00li5h, Dynom, one thing i'm doing is accepting a form submission for pw reset requests, with captcha, so to follow the logic -- if($captchaclass-passed($_REQUEST['captchacode'])){ if(pw's are set and match){ if(isvalid user){ if(is not staff user){ if(no pre-existing pw reset request transaction in database){ //send email with pw reset link }else{errors for each if

its the pagination function

$ignored) $new[ $x ][ $y ] = $old[ $y ][ $x ];

so i end up with about 5 or 6 nested if's to control the flow.. and it's just nasty,, i don't like doing it..
and that's a simpler use case
some of them end up with far more

f00li5h, wow, thx!!

!+aolbonics

AOLBonics is talking using numbers, all caps or using single letters for you, are, you are, you're, etc. Examples are: Hey evry1; howz it goin?; how r u; oic; ur teh suckz. Talking like this is frowned upon in ##PHP, and will result in you being silenced. This rule is not open to debate, arguing about it won't help.

ah.. well you could write a small wrapper for it, but thats only handy if you use it more then ocne

matching passwords goes in form class, as does captcha. valid user is decided when you do $foo = User::from_id( $form-get('userid') ); and then all that's left is $foo-reset_passwd( $form-get('new_password') ) ;
i'd hope thta your classes make it easy to do things like this

f00li5h, i guess it's down to my classes just not being quite devleoped enough.. they do things like change the pw (doing the sql checks and things,, ) i havn't really gotten into using a forms class.. probably something i should look into

were you able to go through the snippet ?

i see.
it's horrid, which lines is the validator picking on?
s/is/are/

my various options for controlling is staff user, or is admin,, in this case they shouldn't be creating password reset request emails in this manner due to site policy, but that may be different in another case

well, you should stick the differnet functionality into the classes, so it can be used again later

maybe i'm being unnecessarily concerned about overly complicating my classes and them becoming hard to reuse

"; this line

&=&

if( !$user-is_admin() ){ $notification-add('YOU AM NOT TEH H4X0RZ - PWNED' ); redirect_to_fail() and exit(); }

well, the trick with classes though is they take time to plan out functionality changes ... and time is working agains me

the &'s in the url that is

even badly planned classes can be refactored later

:P i suppose..
grr, only back at this coding thing for 2 months after a 2 year break..

just make sure you don't use attributes outside the class, and you're free to do whatever you want inside the class
escape the &'s as &

i tried using & instead of & but then i get "reference to external entity in attribute value" error

with the ;
&

so http://hashbin.com/9bb.html i get unexpected T_ELSE in ...showSuccess.php on line 154, line 154 is the second else before please login... ZDE doesn't show any syntax errors, any ideas?

upload your code to the webserver again

ohh i missed the semi-colon, my bad :P

hah, that worked... thanks

hi

meow

hmm, i suppose,, my class architecture is probably a bit too basic in it's conception..

your welcome

i want to run a java command using php in safe mode, preferably with a method like exec().. is this possible?

hm, I wonder when Harry Potter will become available for legaldownload
exec() is disabled in safemode I think

Dynom i can only exec() on files that are in the safe_mode_exec dir, but i don't want to put java completely in that dir.. was hoping there'd be some workaround

sure; chroot it, but thats gonan take you a while to setup

How can I pass input to a shell script, as if it was passed from stdin?

open a pipe

example?

foo | cat hello

hmm

or use redirection, ie foo hello

php.net/popen and family
or proc_open
etc

ok, thanks

I also like to point out that I wouldn't encourage doing it at all

why?

because it's sensitive for userinput
I mean it in a bad way ofc

the point is that i have a string with commands i want to pass to mysql console client
and, yes, i cant use mysql_query() for this

Dynom chroot sounds like a bad idea for a script on a webserver?

why

no, it's a very good idea

imo every user should be anyway; it the software allowes it

thanks

i think i am misunderstanding something can you give an example?

no not rly
I think you should readup on chrooting
it's not a very easy thing to setup
in fact most software make it very hard to setup
makes*

ok, then probably it IS a bad idea for me to do since i dont' know much about linux

hmm, yeh then it would :-]
but why do you want to issue java commands anyway ?

$ignored) $new[ $x ][ $y ] = $old[ $y ][ $x ]; thing, and i got an Undefined offset: 0" notice"

i want to use batik to convert a svg file to pdf

ok; why not try it via a queue system
write a queue file to the harddisk and let a cronjob execute the proper commands

yeah, php will do that ... i guess you need to do an if(empty( $new[ $x ] ) ) $new [ $x ] = Array() else ... $new [ ... etc

how I love empty()

Dynom i have thought about that indeed, but i need to convert a file on user request.. is there a way to trigger the cronjob?

no, but you can do it every minute
maybe even seconds; don't know tbh
hmm no; minuts

what if the file is half way through writing when the cronjob triggers?

then make sure you don't queue it yet then
make a queue file and a source folder; process the queue file not the source-folder

How do you guys find openbsd running php + mysql under load?

interesting how I use two ways of writing source folder

under heavy load that is.

uptime/tload/top/ or cat /proc

hmm?

Dynom i'll try to go with that method, thanks

gl
I read openbsd, load, php/mysql
excuse my french; openbsd works fine as a webserver

Is it possible to find out what domain names are on a particular server?

depends if it's a ns or not

If know the ip address

you could politely ask the server with a dig

I'd like to take a domain name and find out what other domain names are on the same server
dig?

no
there is no simple way

there can only be one domain for reverse lookups per ip, so you can't do it externally

$ dig -h | head -1
dig [@global-server] [domain] [q-type] [q-class] {q-opt}

dig is a php function?

no

no, dig doesnt help at all here

ipneighbors.com does it

This page is parked free, courtesy of DomainRegistration.biz

hi I have a question when I want to open a file which is located within ./myfile

and i highly doubt they do it

www.myipneighbors.com ?

because that would require quite a lot dark arts

i doubt it will detect even one of my domains

and the file from which I want to open it is in./folder1/folder2/otherfile

sorry

and how dns works it just isnt going to happen

http://www.myipneighbors.com/

how surprising, nothing
it probably just logs any domains it finds, and looks them up

I would need to put within fopen (../../myfile) right?

?
It works for me

stop arguing when youre worng
wrong*

the site clearly does it

no it doesnt

how can it be impossible?

0 found with the IP 144.138.244.233
there are currently 5 domains pointing to this ip

it takes domain names

but theres no way to know that

look

unless it looks up every domain name possible first

it works for my domain

dns is one way

try theesylum.com

ip

hmm

unless it knows in advance the domains, it can't find out

they can if they index ip + hostname

try miniclip.com
try anything

you clearly dont have a clue how dns works

make a web spider that records every host and ip it finds

so please stop being an asshat

somewhat correct

no, youre not

about me not knowing how it works

yes

you are somewhat correct that he doesn't know it

he's totally correct

not totally

multiple A records can point to a single ip

but yes I don't know

and ip address has only one reverse entry
you cant know those multiple A records
from anywhere

then how on earth are they doing on it?

2] TehSausage heres how you do it: make a web spider that records every host and ip it

they can't be indexing every domain name

why not

google does

yeh

still
I find that highly unlikely

unlikely; not impossible

true

and you can even go a bit further

why doesnt it show all domains pointed to my ips?

idk
it works for me

todellisuus.net A 193.211.31.212
valokuva.org A 193.211.31.212
now search neighbors for 193.211.31.212

it found it

3] rza todellisuus.net A
really?

but wheres the first domain?

when I searched for todellisuus.net it found valokuva.org

duh

?

(valokuva.org already in database)

then what's your question

try just 193.211.31.212

ok
true
so maybe they are indexing

this ip address reverses back to valokuva.org
thats why
so you cant know all domains pointing to an ip

i dunno why it didn't index when they entered todellisuus.net

so they're definitely indexing?

waste of a perfectly good lookup

it get's even more interesting if one domain ends up with more ip adresses

unless they hacked every nameserver in the world, yes

haha
search for google.com

what about checkdnsrr?

totally incorrect results

that checks if it has a dns record

ah never mind
whats an mx record?

mail

mail exchanger

kk

i don't see the reason for having so many
what's so special about MX

i only what 1039 in the select - don't want to argue, but how does work the websites that gives you that info then ?

MX is the worst configured DNS entry available

wikipedia shall solve my issues

what's this about MX records?

that of all available dns settings, MX is the most poorly configured

reverse entry is the one most poorly configured, mx is really easy.

never said it was hard; just said it was poorly done on a lot of machines

Hi

ej

hello

how I hate pressing F5 in the wrong window -_-

yo

How do I specify the sender when sending an email using the mail function? I mean.... What is the form of the header? Something like $headers .= "Sender: www.foo.bar"; ???
Or $headers .= "X-sender: www.foo.bar"; ??
Cause I've seen both on the webs

!tell Veejay about mail()

php.net/mail has a few detailed headers

It's also in php.ini

To be honest, I wish I could use SwiftMailer
BUT
On the other hand, I'm just quickfixing an old legacy application
I know mail() sucks b*lls
But I don't really have a choiuce
choice

http://whois.webhosting.info/64.233.187.99 ?

hi! how can i check whether a file is currently written to?
by some shell script?
is there an easy way?
or will i have to query file descriptors

VeeJay the SMTP and POP protocols are very simple

bom dia

MalibuStacy, explain...?

are you a programmer or not? ofcourse you have a choice
with a lock file

Well, of course I do

right, so no excuses

Programmer? This is PHP.... He's a *scripter*

and you're a pedant, what's your point?

f00li5h can't use a lock file

why not?

what if you use phalanger, are you a programer then :P
fine line between scripting and programming

cause the datasource isn't affected by somekind of program i can't alter

Big fat line between the two TehSausage

say that again

lol
yeah

why not? you can compile php, you can interperate C

there's a program manipulating the data source

And what's the difference? Scripting is still programming
Anyway

and i want to wait until it finished writing

meh

can't alter the program that creates the source
i just want to wait in the php script until writing has finished
there's much use in interpreting pointer arithmetic *g*
what purpose has a programming language ^^

i guess making programs is one =\

the purpose of making me money

so have the manipulating program run within a script that does a lockfile, and cleans up when it exits

Making virtua girls that dance on your desktop is also another.

/var/run/foos && proggie_that_modifies_things && rm /var/run/foos

i'll just hook me in with a system call and get me the currently opened file descriptors
that's a technique i know at least

MalibuStacy, that's portable... *cough*

portability sucks anyway
don't you know the old saying:
saying java is cool because it runs on all platforms, is like saying anal sex is cool because it works on all genders

"do whatever you want, and hope you're gone before it breaks"?

hello

MalibuStacy, that's stupid. And if PHP wasn't portable and only ran on lolOS ?
you'd probably have a cry

that ain't stupid

is GET request length limited in any way ? i mean could this limit be greater than in POST

i prefer a dedicated target-environment
to some platform-independent crap

yes, url's are 255 character max

piotrm, read the HTTP RFC?

get is limited to 255-url length

lol

POST is a LOT bigger

POST is 2mb by default

thanks then

It's all in the manual anyway

you can be platform dependent, that's fine, but if there's no strict need to, then it's just one less thing to worry about when your boss buys 100 macs on a whim

oh, manual is much more frienfly

wow, Tick is more stable than i thought XD

how can I check if a variable is an array?

is_array()

hello people
I have to solve problem with categories of news in CMS.

ej
o dear

you're an array!

onoez

purr

i'm an object f00

And f00li5h is null, is_null() says so

but is_null is stupid

i'm not null, although being single all this time has lead to empty( f00li5h ) # -_-

if I use implode() on a string then will it just do nothing

Its possible to access an objects method insider a class like $this-object-method();, isn't it?!

or will it give an error
?

it will treat it as array('string');

and do nothing?

it should

kk
thanks

that'd work just fine

it will throw a warning.

i'm not sure about implode with it's 2 prototypes though
it might try read both as glue or something

it doesn't cast things like that.

heh, you're right :P
Bad arguments.

i'd expect implode( '-', 'str' ) to be 's-t-r' since strings can be treated as arrays

kk

but odds are that isn't true

never mind then

yes.

I'll stop being lazy and I'll just check if its an array

what case is a string casted to an array because i know that's happened before

strings are *not* arrays, they just implement the same iterator interface.

how is $foo[ int ] an iterator?

i thought it was foreach but it's not that either

Currently the CMS can display news only from 1 category. However, i can see on some sites that news from all categories are displayed on 1 page and users can go to one category. In my CMS it isn't so easy, because...

and i did say "can be treated as" not "are"

they are not cast, strings support the same accessors as arrays, which is why for a while it was $string{0} and not $string[0] as it is now.

no, i mean theres something that read it as array("string");

but that doesn't mean you can pass them around where arrays are expected.

ah

oh well, sleep time

why not, that would be a natural extension of "treated as arrays"

dammit, forgot a ''
thx

The CMS is multi-language and it allow for setting the "welcome text" for every category. What do you think about it? I have 2 solutions: ...

I don't think that's wise in an already extermely loose-typed language.

sure it is... join('-', 'str') has a predictable result
as do all the array functions
although i'd love an aarray_map(...)

which is what? -str, str- or s-t-r ?

execpt Horde & Squiermail, anybody know a good webmail under php4 ?

I have a file lets say /var/log/messages that a new message are added each second... how can I open this file using PHP in such way it will open a windows and that window will be update each line added

s-t-r

am I soing something stupid; or can't strtotime handle mysql datetime contents

the delimiter has to go between the elements

anonymouz666, WHAT?

today i'm today in a static way

you can ask it as an enchancement

oh nvm; I'm stupid

i'd prefer a map for hashes actually

I tail the file let's say the last 2000 lines in that moment, and I open in new window.
but while I am seeing this 2000 lines more 300 are added
it's static

1. Displaying news from all categories (with settings (only 1 important setting: disable comments) of one category). 2. Assigning "sections" for news with defined image (2 joins?). | Can you help me in good choice?

with php you cannot make it update each second, that is client side javascript.
what is the problem for which you are trying to find solutions?

Any developers in Dublin (Ireland) in here?

why?

where I can find this javascript? Or maybe I will need to write it? any suggestion?

I'm in Israel

google might help, I don't do javascript except for libs.

in smarty make like this $c = $a.$b??????

you can use sajax to export php functions to javascript

ñïàñèáî
îé
senk

so am I

where?

aantn:P"T

cool
what company do you work for?

no comment

kk
fine

think 'gambling industry'

I'm not trying to pry

no problemo

ok, i read teh documentation, but i don't seem to be able to understand the difference between magic_quotes_runtime, and magic_quotes_gpc

Is there a relatively easy way to remove html-tags from a string and insert a whitespace instead of each tag?

php.net/strip_tags

strip_tags if you dont need the whitespace.
one is a global configuration setting and another is a runtime setting?

guys, can you confirm to me that the 5 in this statement is the default value in case the parameter is not defined in the call to it?
public static function getPopularTags($max = 5)

orrect
correct*

MikeSeth, thank you - great!!

but I need to have white spaces inserted! Because if I dont then for example if I have this string: "REMA cool band"...it will become "REMA cool band" instead of "REM A cool band" (the latter is what I want)

then you probably want nl2br()
errr.. never mind..

hehe ok
do you have an other idea then?

preg_replace('#.+?#msi', "\n", $subject)

ok? what does that do?

?

more or less, yes

ok, I will try it, to secs

what does that mean?
like it says gpc can not be changed at runtime, but the other can
does that every one affect different variables?

Hi, I'm trying to use exec("update-rc.d scriptname defaults"); but I'm getting a strange behaviour. Is it wise to use this or should I use something else?

http://il2.php.net/magic_quotes
'strange behaviour'?

whats what you call strange behaviour

hello

with PHP 4.2 and Safe Mode: ON can I open a zip file and extract the contents?

i would like to use openssl_csr_new for creating a certificate

let me guess you want to get the result or the output of the script, is that it ?

i need multiple values for organizationalunitname

well, I'm using it in postinst of a deb package that I'm installing through a web interface (that runs dpkg blabla as root) and it seens to hang

hi guys

0.organizationalUnitName does not work

looking for some opinions

could anyone help me please?

hm, it seems to be removing the tags...but not inserting the "/n" ?!
thats strange

is it a good idea to directly access form data through $_POST etc....or is it good practive to write a wrapper get function..

\n is a linebreak

yes...what I want is a whitespace....but still the /n is not inserted
wait
made a mistake ...to secs

the difference only has significance to you

if you did write a wrapper function....I guess if you decided that all form data needed to be sanitised before ending up in script it would be easy to do it centrally

no pun intended

replace "\n" with " "
there's no valid answer to that question outside of a well defined framework. If you don't separate your business logic to the point there's an universal input format, you can't meaningfully validate input globally

something like foreach ($_POST as $post) $my_post_vars = mysql_real_escape_string($post) ; ... yeah that should be ok

hm, no, it removes the entire string now!

http://il.php.net/preg_replace
what if the input value is a JSON object, or a base64 string? that's a terrible idea

well he can just decide if he would use the wrapper or not
function filter_the_post () { ... }

has anyone used openssl_csr_new
?

sorry, I was to fast (8 hours on the job starting to kick in)...it works! Thanks alot!

I don't get it, are you playing with LDAP or something

Mit depends on him anyways

yeah, just starting to write a new app...have never bothered wrapping post data before... never really needed to TBH...just wondered if any of you guys did so for any clever reason unbeknown to me =P

s/Mit/MikeSeth/

no, I don't need the output

no. A certificate has fields like CommonName, OrgranizationalUnit, etc. I need multiple values for OrganizationalUnitName and I don't know how to do it

does the command that youre trying to run requires of some kind of interaction ...

my end-of-the-day position is that production code should be written within a framework, and input untainting should be its job
to do what? generate an open ssl cert?

nop, update-rc.d runs without interaction

you want to run the command as root, so i would use suexec

but postinst is run has root

*blink* suexec? for a shell command?

why not ?

because there's sudo for that kind of stuff

chown root:wheel /path/to/suexec

can I change a variable that was an array to a string

and theres suexec aswell

i.e. var = array....

I need an SSL cert that has multiple values for organizationalUnitName. When doing this with the ssl commandline tool it is not a problem, the config file uses the syntax 0.organizationalUnitName, 1.organizationalUnitName, etc. With php's openssl_csr_new this does not work.

and then var = "xyz"

and because you should never, never ever run PHP scripts as root, unless they are shell scripts, in which case you probably want to write them in a language more suitable for shell scripting

everyone would delegate the same permissions with sudo in
stead with suexec one could protect the binary
s/stead/instead/

I do not believe SSL certs can support that at all.

anyone?

I want to open a zip file and extract the contents to my current directory using PHP 4.2 in safe mode

then you are wrong

yes.

regular solutions aren't working, need something creative

thanks

maybe.

bye

I have one for you

$var = array(); //?

should I use system instead?

!+MikeSeth's rule of happy fun life

it has been said that mikeseth's rule of happy fun life is "DO NOT PAY MONEY TO HOSTING THAT'S RUN BY IDIOTS"

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

nice law
i support the motion

say, anyone want me to host their si-- never mind

huh?

be careful when explicitly assigning objects. PHP references are sticky.

meaning?

http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html

guys....is there currently any known issues with the PDO bindParam() method altering the datatype of a bound variable?

kk
thanks

I have an integer....I bind it....then all of a sudden it becomes a string
doh

(int)$var
settype even

aye
but shouldn't be needed surely

you asked a question, i answered

basically: $foo = & $bar; $cat = & $foo; $bar = 'meow'
$cat is now 'meow' too

kk
I understand

symbol table aliases, not really references at all

the problem is in assigning "categories" and displaying news from all categories. Currently the CMS can display only news from 1 category. And i don't know if I should create also "sections" (independent from categories) or create option "display all news on start page". (but if some categories are in different language?)

pthreat...yeah but not the question =P

yep. Also known as sticky references. Let's kneel down and pray to Pollita now.
(the proper lexicon is binding table aliases, not symbol table, as PHP doesn't have symbols, god damn it)

what about if you make them choose the language and then store that value inside the $_SESSSION superglobal and then you take care about what they need
Pollita became part of the core dev team or something like that ? (i've no idea)

no symbols? aaw. the manual says otherwise

the accurate description is 'deity'

it isn't the problem

oh

no no no, PHP can call the literals 'symbols' internally, but they are not symbols in the same sense as Lisp symbols or Ruby symbols are symbols

god help us all then

indeed

lol dude
was 'it' a he or a she or even a tranny or something bizarre like that ?

excelent

i could never tell

actually, 'symbol table' is an expression from compiler world
*blink*

"display also news from next-level subcategories"

what?

i never knew :|

anybody use mssql class to connect to a MS SQL 2000 server? I'm getting "Could not locate entry in sysdatabases for database 'BH'" when the database is really 'BH-MASTER' (and is entered as such).

sometimes 'it' said that it was a she and sometimes a he ... seriously, im not kidding

'it' as in what?

(im refering to 'it' because im lacking of information about 'its' gender)

quoth php.net/manual/en/language.references.php qq{ [references] are not like C pointers; instead, they are symbol table aliases. }

Pollita is a goddess, what's so ambigous about that
symbol tables are a property of compiled languages.

i did not write the manual.

wrote, its already written

me neither!

what?

So who is the crazy ass mofo thats behind writting the manual ;\
j/k

hey say thanks that at least we HAVE a manual

the manual is great
i love it 3

all hail to the manual

o__/ hail

o__/

s/h/f/

is there anyone that php will generate the ?var=param&var2=param2 string from an associate array?

s/f00li5h/traitor/g

i'm a perl troll

woops

i woudl make that my nick, but i think it's registered
there is liftable code for that out there, try asking the interent for it

something like using array_keys and a simple loop ?
yeah, do that

im just checking there isn't already a built in function

I

sadly, there can't be a builtin function for everything

Is there any way to print out all the files included by the current script and what line and file included them?
I'm having include problems

thats more like a framework like thing, i.e you dont have wash_my_ass ('with_soap');

ok
i just thought i remembered seeing it once

yeah get_included_files

http_build_query() guru3

$link = new URL('foos.com/bar.php', Array(...) );

¬¬

thanks

write a class for it, it'll be fun

that's the one i was thinking of, thanks

auto auto auto
:P
copy paste copy paste
i have an itch for killing people like that

when documenting code, if I used @author for doxygen, do I need to put the author name in " "?

it doesn't matter if he writes his own class, he can swap it out later, for the one he's going to harvest

sure

i started writing a url class... but i never bothered to finish it

thanks again, and thanks everyone else

yeah well, but im quite sure that you gained practice with it

hey i have a php script that gets sent some data via POST, its purely for processing so is there any way to stop the page being sent back to the clients browser? the pop up is annoying and pointless

what do I have do add to this line to also be able to include files in the directory I'm at instead of just these two? ini_set('include_path', 'c\site.com\\wwwroot\\;c\site.com\\wwwroot\\include\\');

i think you're over estimating how far i got with it

alrighty ...
ini_set (get_include_path() . PATH_SEPARATOR . '/my/fucking/path/');
bad foolish bad!
:P

tnx

what did I do?

!php

!tell rolfen about meow

not even taking care of your class
!tell pthreat about meow

i had no use for it... so i didn't bother, although i got half way through the API

i want to know to

!tell * about meow

meow???

No, f00li5h, I won't. (target invalid?)

f00li5h:
yeah dude meow

i'm somewhat glad the bot won't do wild cards

nothing that cant be done with a nice irssi plugin

what the hell is wrong with this bot

they should watch about that
!tell rolfen about php

haha

http_build_query() doesn't default to using & # excelent

!php
:P

!tell f00li5h about coffee

hey dont you fork on me boy!

hah

:|

does any1 know how to stop php scripts sending a blank html file?

fork?

oh ...

by sending some output

lol
i don't want any output

i thought you've just &'ed your irc program

i want it to jus execute some maths in the php n thats it

so how is "no putput" different from a "blank html file"?

s/jus/just/

well the blank html file is annoyin cos it still pops a window up

that's not a fork, it's a backgrounding

paper or plastic

hello

GOLF CLUBS!

bad lingo, my bad

is it possible?

you are talking about scripting the browser here
it has nothing to do with php

oh i really have not much clue how to go about it

even that way what he is saying it just doesnt fits

you have to enclose db names with funny characaters like hyphens in [] brackets

roughly what should i be doing

dbewick, run it from the command line?

i'm looking for a class to perform a http upload, anyone knows any ?

well the php recieves some data from a flash
app

google seems to be unfriendly in this case

'A Revolution in Development'. But it doesn't accept 'volution in Deve'. What gives?

strtotime is stupid and doesn't validate.

I don't know of one, I will warn you that this channel does not provide assistance on third party scripts, so unless you are writing one and have a question, this might not be the place to ask. #phpc has a much more relaxed ruleset

#phpc doesnt provide help at all

alright, but I'm intrigued as to what culture represents it's dates in such a way

thanks

its probably a pattern matching bug

yeah we are the best #phpc sucks!

"When did you do that?" 'Oh, I think it was on 'A Revolution in Development'' "Oh, really that long ago?"

i found a pecl one, i think

hah double gotcha :P

t'was a good bat
OH NOZ DONT LIQUE MUH BRAINZ

Apparently the english part has already been compromised!

thats on the right side of the brain, so yeah, bingo, i hit him on his right side

So, what's the common solution to saying of an arbitrary string "Is this a valid date representation?"?

I like to use strtotime

so how do i run scripts usin the command line interface?

php myscript.php ?

php test.php

or you could add some #!/wherever/php
and chmod 755 myscript.php and then ./myscript.php

I like using it to, until it thinks that "A Revolution in Development" is a valid date

um but how on a remote server?

only if you have shell access
or exec

ahh

what the hell is that ==
http://saint-tomy.miniville.fr someone can help me to fin a better version?

you fail. I am left handed.

kiwi`MouThon: what the hell are you talking about ?
yeah right and that means you have your brain backwards ? :P

Should I submit a bug report about this rather boggling date parsing "feature"

kiwi`MouThon: i think you where just advertising that piece of crap

please, someone ban kiwi`MouThon already
he's highlighting me with that shit
it's not too hard... *!Tomy@*Dijon*.abo.wanadoo.fr

the French generally tend to show their true colours on irc, it's quite amazing

Mace[work]: what do you mean by true colors

whatever you want it to mean

A higher concentration of red, white, and bleu!

I don't get it is he spamming?
les burp!

hehe
yeah he is
Mace[work]: i get it
he was just playing stupid (click to get your new car here)

i had the unfortunate pleasure of spending many weeks in France when i was a young lad on an exchange program. not the nicest place

Mace[work]: yeah they are quite ""humble""

heh, the ones i met were all _very_ ""humble""

hiho
how can i get the third line of a file?

anyone here running php 5.2.3 that can test a single line of code for me?

I can

marc-andre: $arr = file($file); $line = $arr[2];

I'm also on 5_2_3

marc-andre: If your file is large, you may not want to slurp it all for just 1 line.
I would just read line thrice

they're not big

echo strtotime('A Revolution in Development'); It should NOT return a timestamp.

thanks, i didn't knew the function file exists... i only saw the whole time fopen, fread and so on...

It does

mst@vega:~$ php -r 'echo strtotime("A Revolution in Development");';
1184163480
bork bork!

K, bug report going in then

It returns "12-07-2007"

g'day

I want to install php and mysql onto my Fedora machine. Can anyone advise a straight forward guide to this process?

Google will surely be more helpful that we can be

hi friends, how can i declare a enum type in php ?

xampp is v.easy

google didn't help me
maybe enum doesn't exist in php

what is enum?

this is my real question, can i declare enum
colors = {red,black,white};
colors myColor;

and what will that do?

I typed it in on google and saw immediately that php does not support enumerated types, this is logical because php is very loosely typed and as such would not require such a type. If you want to do that strictly, use an associative array.

myColor only can be red, black or white, no other value
nice jmccaffrey

Enumerated types are usually used to define constants for something, such as the colors example given. This way as a programmer you can dead

do you know before enum is not supported by php ?

*deal with Colors.red instead of some hex code

i was lookign fro the way to do it maybe iit's that why i didn't find anything

then just do $colors['red'];

Hi, I am writing a blog system. The istaller asks for your mySQL connect details. Is there anyway to create the file connect.php in the directory includes/ and stor this infomation in it to connect with another time?

Exactly

of course, fopen() fwrite()

Hi. how can i determine inside my php script that 'mod_rewrite' module is loaded? I've already tried extension_loaded() (result is false) and get_loaded_extensions() (there is no anything looks like 'mod_rewrite' in this array). But i'm sure that mod_rewrite is loaded and works! Please, help me...

I know, I just can get it working

mod_rewrite is for Apache, not PHP

Thank you

oh, got it, thanks

can, or can't?

can you look at the info from phpinfo to see if it is

it wont be there, afaik - as mod_rewrite is for Apache :P

can't sorry :P

there's no enums in PHP

What do you think about assigning an image to categories in CMS?

thanks, apache_get_modules() will help

yeah, but I thought that phpinfo dumped apache info as well

SettlerX, sounds like an image gallery

mod_rewrite is an Apache module. It is not a PHP extension.

you laggin' :p

what canot you do about it?
s/canot/can't

Don't forget tags and wikiwords!

yeah, right, thanks you too

Riki_tiki_tavi, make sure php is running as an apache module and not through CGI if you use that

They are all the rage with the youngsters

no, I was outside helping a $luser manage the green files

heh

do you think Tag clouds with lower page rank?
s/with/would

what do you mean "wikiwords"?

TAXONOMIES AND CONVERGENCE!!

what are you guys using for documenting your PHP code...

comments?

pen+paper

I found PHPdocumentor quite a pain in the #ss

Well, I cant get it write all the stuff like: mysql_connect() &mysql_select_db() with varibles and the correct info in the
m

PHPdoctor seems nice, but is outdated (over 7 months no dev)

why not just have that code anyway - and create a config.ini.php file?

??

hmm, i need to generate unique codes for password request functions.. what's a good way?
i suppose mix userid and time? hash?

Wiki words are where you automatically scan text from user contributed content, find relations to other content, and create links

you have your code, mysql_connect( $all, $my, $lovely, $connection, $details ); then have a config file that sets those vars or do some lovely Settings class

or is there a better practice.

I uniqid()?

?? there's a function that will 100% of the time generate completely unique codes
implausable.

uniqid( rand(), true )
no, not possible

how would you go abpout doing that

NET||abuse, but the chances are ridiculously low of a collision

though, it may as well be possible - as it's very, very, very ... very unlikley you will

ok, i'll hope it is. I haven't seen providers, which will run php like CGI module many years

AlexC_, it would be faster to use mt_rand() no?

evening

how about seeding the rand() with something that will...

simply - just create another file that sets the vars

Use a sequence

it's not worth it,

I have a php page reading data from .txt file with the usual fopen() fread() I need to formate the outcomed data with css hwo to plz

AlexC_, unless, i suppose i could just mix the id of the user with the db generated request id from the pwresetrequest table..

yes, tag words (or keywords) are important too! And it's not required to assigning an image to tag words because you can assign more to 1 news.

hah,, sorted.. 2 unique ids from two tables..

a guid?

for my 'reset codes' in my CMS I use: $reset_code = trim( chunk_split( uniqid( rand(), true ), 2, '-' ), '-' );

just a mysql field on autoincrement..

You helped me in making good decision.

how

how to set vars? $foo = '';

rand(0,md5(time()));
:P

??

hi!

g'day _yoda_

I want to use some cURL function... but I don't know want is the include I've to do...
can anyone help me with that?

you want the SQL details to be _configurable_ yes - as in they are not hard coded into the mysql_connection function .... so you use mysql_connect( $host, $user, $pass );

s/rand\(0,md5\(time\(\)\)\)/md5 \(rand\(0,time\(\)\)\)/ yeah ...

then you could have another file, for example - config.php, that sets those vars

k...

ya know, we humans don't need the backslashes added

or even a config.ini and parse_ini_file

_yoda_, cURL is a PHP extension, enable and look for some examples on the net.. and you are done!

;|

indeed, that's how I do it with a lovely Settings class

:/

I am trying to make a multi-array into a .csv, what do I need to write at the end of each line, and can I over write the last character (a comma) with that character?

it is allready installed with the php5. I'm trying the simple example from: http://pt.php.net/curl

last char of a line, with an EOL

"Fatal error: Call to undefined function curl_init()"

yeah you dont have curl phpinfo();
check what you've got with phpinfo();

is it possible to open a file in a different directory with fopen() ?
is it possible to open a file in a different directory with fopen() ?

_yoda_, do what pthreat said, check phpinfo();

say includes/file.php

php.net/fopen

k

:/

ok
what should I look for??

the cURL extension ?

sorry asking.... I'm still quite lame on PHP

if it isnt, then you dont have curl support

the curl extension doesn't appear...
what do I have to do to set it up?

is this possible? http://pastebin.ca/614454

that is imo very insecure and you're going about it the wrong way

??

Is there a way to install gd2 on RHEL5 without reinstall php?

why are you writing that to a file?

INSTALL PHP5_GD
Ack. Caps

oh nos!

have a file like sql_connect.php that _already_ contains that code. Upon installation of your Blog system it would create a config.ini.php file that will write the values the users gives
sql_connect.php would then use those values,

any thoughts on using global vs passing variables in functions?

global bad

any help with creating my .csv?

any info on alternatives to using global...

Registry pattern

thanks

Wolfpaws, any idea where I can get it or find some more info on it?

http://ar.php.net/manual/en/function.fgetcsv.php

how does config.ini.php talk to sql_connect.php?

hello all! Id like to have one question haha. I am gonna build up something useful for once, user can select color for bike frame, for bike pedals and so on, in RGB! So user could like insert #094283 for bicycle frame and when he hits refresh, bam its idk what it is in rgb but yeh that color, so i think this affects GD right? Any better ideas or someone would tell me how i would exactly do it? As far i dont have much ideas

you fetch your stuff from the ini file and then you use those parameters for performing the connection ...
www.php.net/parse_ini_file

pthreat, other way around, I am creating a .csv

ah

in #redhat?

well, what do you know
fputcsv :P

I've installed the curl and restarted apache. It still doesn't work. Do I have to do something else?

thank you

_yoda_, OS ?
_yoda_, win32?

is there a 'datatype' called list ?
I have this function called list() in my code and I have no idea what it belongs to

the first line contains the definitions and the following contain the contents as far as i can remember

aa^way: http://www.dynamicdrive.com/dynamicindex11/yuicolorpicker/index.htm
that might be useful

No, there isn't a datatype called list. There is a language construct called `list' which makes that a reserved word.

php.net/list

ubuntu

pthreat, i think you missed the question

thanks !

but thanks though

but its easy
whats the matter ?

lol

if creating or parsing, i even think its even easier creating one

pthreat, you didnt read it, thats the matter, you jumped in part way
upthreat, you didnt read it, thats the matter, you jumped in part way/u

you want to *create* a csv file right ?

pthreat, nm, thanks though

car;color;manufacturer

http://pastebin.ca/614467

e750;green;ford
s/e750/e350/

_yoda_, you need to run "apt-get install curl" then "apt-get install libcurl3" then "apt-get install php5-curl"

um...
sudo apt-get install php5-curl
You don't freakin' need those other commands.

how do you send stuff to a .ini file correctly?

just use file_put_contents instead of using fopen and fwrite

php.com/file_put_contents ?

how can I get the NT username (login) of a user visiting my .php script with internet exploder? I had hoped new COM("Wscript.network") would do it but that only returns info about the user that is running the apache process on the -server-


Related Topic:

Hi how could i make script i have list of rules and those rules have id and some other variable for example something
Alright so if I wanted to move a ton of variables into a config file and use them throughout another PHP file
Need some opinions here I am starting to realize that i am spending way to much time developing little things