en español
SlashLife correct
yeah, so check the data when I use $POST to grab it, rather than
enter 'all' if user enters nothing in the field
(A) English, please. (B) we don't deal in php-nuke and such
here. look elsewhere.
Does your include file end in "?"?
SlashLife - do you think there could be a space in one of the
includes
*clears throat* no php-nuke aqui
yes
Remove that and try again.
((Vystrix_Nexoth((º ok
chao
Yup.
^^
w00h00! got it.. thanks a bunch guys!
Oh. He's on QNet. :
yes, and 4 pawd wolf is here.
Wolf + Fish
I hate fish
Luckily I'm not running around as a cat anymore. ^_^'
Oh, I don't hate cats. I'm not a dog
PHP is nice. my brain got burned every single day
the burn means it's working.
SlashLife -I think it's working now, thanks
GOt a new error!
I wonder if everyone in the process of learning taste this
feeling
hehe
np
I like cats.
But I've gotten too old to relate my nick on it. :/
how old?
22 by now.
Pffft... 30 here.
Started switching err... six to eight yearas ago.
Yeah... but you're running around as a "wolf", not as a "cat".
http://trashbin.slashlife.org/hidden/tomo.avi)...
you shouldn'T have them in your nick as a boy... :/
I'm a wolf... In human skin
Hey, I can bite, too. :]
I've got a sharp dentition made of closing XML host tags.
/you
You can't imagine how pointy those pointy brackets are.
:]
I don't think, that you can bite as hard as I can.
Bah. But my beard is longer than yours!
and I can still bite harder.
Maybe. But my beard will protect me. :]
not in this channel.
I've got teh beard of evil! O_o
under SlashLife's beard, there is no chin. there is only another
fist.
This is not Kung Pow - Enter The Fist, but ##php!
How about General Tso?
anybody knows cron with PHP?
Hey. So, I have a question.
I have to build a control panel.
(A simple one, for a client to be able to add pictures and text
and stuff).
My client doesn't even know what a DB is.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaand?
getting there.
Sorry, I'm a slow typer.
Same as cron with any other language.
!+enter
Don't use the enter key as punctuation. Think in complete
thoughts, then type.
yeah
Is there a php
webhosting function to get stuff from a db and put into a
textbox...
but I have 2 php scripts
one is working fine and dandy
the other one
deosn;t
so where should I start debugging
on the other hand
Sorry...that's just how I normally do it.
I run the php script from command line
it works fine
from web page
ti works fine
from cron
The first person that wants to be kicked from here, please
abuse enter.
runs only one time
ok
and stops working after that
I thought it was a song...
was it a permanent ban?
...You came back, haven't you?
well if anyone knows why cron does this please let me
know
What I want to do is be able to query information from the
database, assign to a variable, and put into a textarea so the
admin can edit easily.
Irs321, there are lots of ways of using php webhosting with
databases, have a read of the manual
I guess I would use the UPDATE mysql hosting
function?
Wow! That's the fastest cure of Returnitis I've ever
seen!
what information?
proper way of getting a posted file is $_POST['name'];
right?
Like, this guy wants to have a monthly newsletter. So, I want to
be able to edit that newsletter if, say, he types it up and hits
submit, only to realize that he left out a sentence.
$blah = $_POST['name'];
right?
No. $_FILES
Exactly.
* Techku
Ohhh, nevermind
so $blah = $_FILES['name']; ?
I thought you were just simply referring to POSTED info.
Yeah, that would do it, I think.
!tell Techku about file-upload
http://www.tizag.com/phpT/fileupload.php
anyone commenting on cron problem
or experienced the same problem before?
Nice tut,
hsarumani, how are you scheduling the script?
cron.d
/dev/null
When I do /usr/bin/php5
/var/www/secure.blablabla.net/bla/Sitesurvey.php from commandline
it works fine
on the cron it only runs once
IT's the file upload tutorial from PHP with different
CSS.
next hour
doesn;t run anymore
You're right.
Next time I will ban.
I was already on that website, so I just did a (find) for
upload.
I ban myself, all I was asking a simple question, have
fun
\o/
and he typed in a single line this time...
is there a way to code in php webhosting
something to block letters with
áéíóú etc
What is "something"?
aeiou is ok, àèìòù or
áéíóú
anonymouz666, do you want to accept numbers and other chars like
!@#?
hi
Okay got the whole filename thing situated.. no error codes
until upload error "can't convert tga"
how can i test against $val-1 == other
não quero aceitar acentos
tem como bloquear isso?
I'm not sure what you mean.
!+english
##PHP is an English only channel. If you need support in some
other language, please try elsewhere.
anyone if there is a way to check for data on an input stream
(php://input) ?
calav3ra, if( $val - 1 == $other )
anonymouz666, there is a ##php-br channel, just in the case you're
interested
yepp, garotosopa
hm, not really
doesnt work
it times out with
What about the usual way? What's wrong with that?
http://rafb.net/p/H0RwMl12.html
calav3ra, what's that while for?
what usual way
while ($_POST) -- Wha?
no idea
well
calav3ra, then remove that... *sigh*
i had foreach there
How did you use php://input in the
first place?
its an xml post
but foreach doesnt give me the name of the value
DOMDocument--load("php://input")
Which would be special because...?
That'd break.
the post is a dav post
What you pasted is a syntax error.
can i get the name of the post item
you mean the key?
its psudo code... use your imagination
Enlighten me.
$value){ ... }
new DOMDocument()-load("php://input")
Was it that hard? Ever heard about file() or fopen()?
yes but is there check to see if its valid like has_data or
something of that nature
hey
anyone have any ajax / ajaxesque php ui libraries they find to
be speedy and pretty?
I just told you what to use.
!+ajax
[AJAX] Asynchronous JavaScript And XML, See also: http://en.wikipedia.org/wiki/AJAX
It is NOT a topic of discussion in ##php, try #web.
anyone know what this error means
'cut' is not recognized as an internal or external command,
that's retarded
i refuse to abide by mental incompetence
You're missing 'cut' command?
question stands
I don't see how I would
and the questioneer remains silent.
i am not having this argument with you again ...
interesting.. command prompt says the samething..
what the heck
i'm on a windows system
Has anyone here had problems with glob not reading files with
[] in them?
uHas anyone here had problems with glob not reading files with
[] in them?/u
buHas anyone here had problems with glob not reading files with []
in them?/u/b
the-erm: Well, that shouldn't happend.
$files = glob('dir[with_bracket]/*'); // Nope no files
lessee... Which PHP?
the-erm: You need to escape brackets
5.2.1
odd ...
Ok.
It makes sense though.
Heh, first comment on http://php.net/glob :P
I should have just gone there first ... sorry.
Actually, it doesn't say to escape them, I read it
wrong.
you post them answer XD
Ugh, I hate it when sites brake.
"brake"? Dude, you're more drunk than I am
Is anyone aware of an easy method to extract a specific div
from a site? I need to grab the contents of one specific div
element from wordpress so that I don't get the menus and other
stuff, this will be written to a local file and parsed later for
output to a palm pilot.
I'm new to PHP and trying to understand a basic concept so i'm
hoping someone wouldn't mind explaining it.
Use DOM, if your site is XHTML compliant
Wolfy[drawing]: I'm not drunk, I just can't spell, which I'm
very aware of.
OR, just use BeautifulSoup from Python.
Fair enough XD
..
Wolfy[drawing]: oooh, BeautifulSoup looks to be perfect, thank
you.
My question is.. what stops that from being a loop? Doesn't the
"form action" call itself?
Welcome
hi
how to convert pdf2img if there is no gs (ghostscript) at the
server?
The html isn't
executed via PHP.
when the user submits the form, the current filename being
used (let's say login.php) will be the script that gets the
variables.
Wolfy[drawing]: okay.. lets assume.. (which was my mistake)..
that the entire line above IS the php hosting
script..
That doesn't change my statement... Your PHP only prints out
HTML, but it doesn't do anything with it.
..
php $a = array("xxx"); function hello() { print("hello"); }
.. print("first line that appears on screen"); print("form
action=\"{$_SERVER['PHP_SELF']}\"\n"); ?
okay.. yes.. that may be a better example..
?
now.. wouldn't that be a loop?
Forms don't post themselves, so there's no infinite
loop.
PHP ahd HTML have nothing with one another.
(is there someplace I could paste the entire app which may be
more helpful?)
you're not listening to Wolfy[drawing]
pastebin.ca has always worked nicely for me, sometimes it can be
slow though.
i'm probably thinking about this from a much more logical
thought process than I need too. Lets start by asking why the
assumption was that it was a form? That may better clarify why its
behaving the way it does..
let me try that.. thanks!
because it says "form action=" which is a form tag; hence
assumption made.
okay.. here's the full app.. http://pastebin.ca/568921
Ugh, don't use PHP to echo/print large chunks of HTML like that
:o
I feel like back in 98's CGI
its not a live webpage.. so i'm only doing it for theory
right now.. I know I should call the script seperately.
You're not listening. PHP and HTML have nothing in common... PHP
doesn't execute / post forms in HTML and html hosting can't do nothing to
PHP. Whatever you *think* it should happening, you're thiiinking
client-side language like JavaScript.
see that $_REQUEST ? When you first run it isset says that
$_REQUEST is not set, since no one has submitted a form yet, so it
outputs a form instead, when the person clicks submit it submits to
the script shown under action="scriptname.php" because you use
$_SERVER['PHP_SELF'] scriptname.php becomes whatever this script
you posted is called.
look at the source for the page that is outputted, and look
under the form action=" area, you will see in there the name of the
script you have written / copied.
that was actually very helpful..
you could instead of $_SERVER[.... write in there
action="somescript.php"
then click submit and it will say 404 not found
because somescript.php (presumably) does not exist.
I just couldn't, logically, understand how it went from "Create
the Burger" output to skipping the form action to printing out the
list, submitting it and then back to the beginning..
like Wolfy[drawing] said, you have to remember that HTML and php
have nothing to do with each other. In this case PHP is simply
writing the html to the browser, that's it's only real
interaction
I can do the same thing in python, but html still has nothing to do
with python.
I am consistently amazed at how you guys do this.. I know i'm
not dumb but gosh i'm impressed..
you could just as easily hand code an html page, and have it
submit to the script name you're using, of course you can't use
$_SERVER['PHP_SELF'] then, since that's php.
I don't do this, I'm a noob
I'm essentially echoing what Wolfy[drawing] already said.
Just in a different way perhaps.
no idea? how to convert pdf2img if there is no gs
(ghostscript) at the server?
It's simple: HTML by itself doesn't do anything
except tell the browser what a page should look like.
You could rip-open ghos script and write PHP from that, or
you could just install GS, which would be simpler, faster and
saner.
w3schools.com, go, read. It will help you greatly.
Wolfy[drawing]: I think that's the problem.. combining the
HTML and PHP in this fashion makes it more difficult to understand,
at least for a noob, what is really going on?
hi guys
start (on the left hand menu) at the top 'Learn HTML' then
down to XHTML, then CSS, then you will know how to display a page,
after that move on to the "Server Scripting" section under PHP that
will give you loads of information to get started with.
no it dooesn't. If tou don't know, what HTML is and what it
does, you should go learn that first.
Wolfy[drawing]: I understand HTML.. that's easy.. its when
you start getting into forms that I just have a hard time
understanding..
html doesnt even tell the browser how something looks like,
it defines a document which can be styled by css
Wolfy[drawing] is 100% correct, it's not more difficult you
just don't understand what each one does. PHP is SERVER SIDE
SCRIPTING, that means it runs on the server and performs tasks for
you before outputting HTML which is what a browser uses to
understand what is on a page, including forms, buttons, text,
etc.
sure, but it does to a certain degree say what is going on the
page, I just didn't want to confuse him more, but you're
right.
From your question, I can't imagine, how would anyone even be
able to produce questioon as yours.
Wolfy[drawing]: please explain..
hehe
Actually, it does. CSS is "modern addition to HTML"
never say you understand something, until you're damn sure that
you do, forms ARE html.
does big-endian only apply to the BYTES ?
you can style even xml with css
I understand that basically you generate the form, when you
press submit the contents of the form are, correct me if i'm wrong,
used to generate an array.
I think you're reading too much into it, this isn't a
technical debate, we're trying to avoid confusing the crap out of
dogatemycomputer.
i know sorry
that is an HTML function.. correct?
no sir, that is php
the form is html
wHICH PART?
the php outputs the html in this case, but it doesn't have
to.
Damn caps :|
although I appreciate corrections, helps me learn too.
the form (the way it looks) is HTML.. the submit buttun dumps
the data into an array via a PHP script.. is that better?
ah i think big endian is byte-order not bit-order
Does the form submit itself?
erm, close, the submit button sends the data to a script to be
processed, in this case your script is written in php and accepts
the variables submitted by the form, that is when it dumps them
into an array.
Wolfy[drawing]: no.. submit button is what activates the php
script that gathers the data? (I think that's where i'm looking for
clarificatin)..
It can, but not necessary. At the "other side" it can be
basically anything.
okay.. so.. that's the question that i'm not clear on.. how
does the server side PHP know what the client side input
is?
do it this way for now, write a PURE HTML page, with a form on
it. Make that form action="myscript.php", then take the parts of
PHP that use $_REQUEST and put them into a script called
myscript.php, you will see that HTML outputs the form, and tells
the browser what script is called when the form submit button is
clicked, after that PHP takes over.
Wolfy[drawing]: as i am not my own hoster, i can not install
the ghostscript on my own
Then ask your host to install it for you.
through POST or GET
POST is sent in the background, whereas GET is sent through the
url for instance
mydomain.com/myscript.php?myvariable=yayavariable
i know those are methods of moving that data.. but that's
what i'm confused about.. exactly how does that data get
transferred? for example.. via the URL? or a backend proces that
i'm not seeing?
does anyone know of a good way to change the byte order while
reading from a stream... i.e. i read 2 bytes from fread() and i
need to change it to big-endian
when that is called, the file myscript.php will be passed the
GET variable "myvariable" and inside it will contain the value
"yayavariable"
http://php.net/faq.html --
Read it.
I just told you, if it's GET it's through the URL, if it's
POST it's in the background and you're not aware of it.
ahhhhh.. so that's why i'm gettting screwed up here.. I know
i'm weird but the only way I will understand if I can "visually
see" how the data is moving from place to place.
Wolfy[drawing]: reading.. brb
your form doesn't use method="post" or method="get" so I
don'
don't know which it is (someone else might)
probably POST
i guess unpack()
http://en.wikipedia.org/wiki/HTTP
Wolfy[drawing]: got your second link..
a browser just sends GET /bla HTTP/1.1
localhost
and the server responds with html
its all clear text
in the case of post he SENDS POST /bla
and then the variables
lol.. that's another thing I found confusing.. how would GET
be outputting anything
#web, please.
so if method is not specified in the form element, does it
default to POST ?
that is also very helpful..
yes
No. GET
"Warning: DOMDocument::loadHTML()
[function.DOMDocument-loadHTML]: error parsing attribute name in
Entity". See my function: http://paste.milk-it.net/375
uh?
i thought post
oh, ok
?
Wrong'
so which is it? post or get?
well its all in http://en.wikipedia.org/wiki/HTTP
damn
www.w3schools.com
ok get is default sorry
lol.. no worries..
erm, yeah, was just about to say what Wolfy[drawing] said, read
from the top that's a GREAT site, extremely helpful.
Wolfy[drawing]: i'll be reading..
If i'm not mistaken it's them who make a lot of the
standards, so it's a safe bet if they say it's correct, it
is.
Wolfy[drawing]: I really appreciate your help.
If I extend a class in two levels, can I then call the methods
of the intermediate class from within the youngest child
class?
milk-it: show your html please
parent::methodName seem to only point to the topmost
parent...
Nightfly, one second...
Nightfly, http://paste.milk-it.net/376
your attributes have all escaped quotes \"
milk-it: Ummm... Why are quotes escaped?
Wolfy[drawing], It html is of Editor Tiny MCE
so... s/\\"/"/g
Nightfly, Do you know if exist some function to solve
this?
hmm I thought my question was straightforward, guess it is
harder to answer than I thought...
the forms should be fill-in but the data doesn't need to go
anywhere except to the printer.. in a relatively nice layout..
(most of this stuff is done via Word docs right now.. but its a
pain to change them because we don't have any central
control)..
anyone..
Nightfly, stripslashes
these are internal customers running IE and FF.. unless the
user specifically disabled it.. javascript is enabled. Either way
we could push a warning that javascrit isn't enabled and here are
the basic steps..
yeah
Nightfly, Wolfy[drawing],Thanks man!
was going to recommend preg_replace
lol
str_replace
omg
my function now work!
eh? That's... Gross.
d
does php support object cloneing ?
can anyone recommend how to get a file's size on a remote server
without downloading the whole file?
does get_headers help?
sure. $clone = clone($obj)
http://php.net/manual/en/language.oop5.cloning.php
Hey
yeah Content-Length is what you are looking for
http://snipplr.com/view/29/get-remote-filesize/
I have a database class to begin with. Then a plugin extends
the class and adds functionality to it by overriding methods,
adding code to them and then uses parent::method() to execute the
original class's logic. Now I want to write a class that extends
this extended class, but I cannot use the same trick as the code
from the intermediate class wouldn't be called (if not duplicated -
yuck) if I used parent::method()..
. So how do I work around this?
one question, how can I create a file? I know fopen and so on,
but how I add the content?
hmm maybe something like ((IntermediateClass) $this)-method() ?
stuff like this works in C++
The manual page for fopen might've given you a hint.
very interesting! I'll try that!
http://php.net/file_put_contents
tell me if it works
Is there a way to get the error message from file_get_contents()
?
http://php.net/fputs
or fwrite or fputs
of course. building test-script aws
anyone?
maybe $php_errormsg
works only with track_errors on
*looks
http://de2.php.net/manual/en/reserved.variables.php#reserved.variables.phperrormsg
google powah
is there anyway to peak data out of a stream but leave it there
untouched .... ?
hmm forget my question - parent:: calls the intermediate class.
I blacked out...
lol
good to know
is it easier for software to pull data entries from mysql than
php to send it to software? i'm guessing yes
ah
KWhat, you mean like ungetc in C?
short question for one of you cracks here
I'm afraid no
http://rafb.net/p/lXzEXe33.html
if someone wants to take a look, i'll explain it
its a simple loop, but i am unable to produce proper php
any way to fix "Your PHP installation does not support
PostgreSQL. You need to recompile PHP using the --with-pgsql
configure option." , ive verified, ive ubuntu package php5-pgsql
installed.
ok, what i have is this sql result, which is correct
first of all, you're just wasting the SQL query by dispensing of
all but the last row.
im with apache2 if that matters.
it reprents the part of ordered pizzas
its a mess atm, i know
what i need is a for each POST loop
which actually checks for 'anr' in post
in fact, ... you're reading everything from the query, and doing
that again for every entry in $_POST
anr is teh number of the order
do i need that fetch assoc?
sorry, i am completely lost
second, your "foreach ($_POST as $key)" suggests that you
think $key contains a key. it does not. it contains a
value.
i can code c++, but not php
but you can do foreach ($_POST as $key=$value)
so i can access the name?
yes, if you do that
this is some seriously messed-up PHP code.
yes, for sure
this fetch is senseless
i guess i just dont need it
because now, i can go though all POST names, right?
guys, is it possible to "call" another page from inside php
and read the output of that to parse it ?
because this name is identically to the order-number i need
to check against
$contents = file_get_contents("/other.php")
well, you can include/require but ... or do that
works only with allow_url_fopen = on
wait its a little bit more complex :P
if you mean to run a PHP script and capture what it generates,
you'd need to use output buffering.
second let me write.
yeah or include and ob_start/ob_get_clean lol
i've got 2 pages (on different servers), caller.php and
receiver.php. receiver.php is setup to receive a file trough post
and reply "done" or "failed".
i need a way to send a file with post to receiver.php and parse
its output ...
Sypher, sockets?
or curl
so u'd go with a external thingy ?
no its in PHP
curl ?
sockets are like a client/server
http://us2.php.net/manual/en/ref.curl.php
http://us2.php.net/manual/en/ref.sockets.php
Sypher, check those out
wow
did not know curl was implemented yay
so with that i can juz send that page the file and parse the
output
yup
damn that really helped me out
thanks maddog39 Vystrix_Nexoth and Nightfly
you're welcome
Sypher, np, btw according to php.net, curl has been in PHP since
4.3.x
maddog39, ye i just never know it existed
have been doing a lot of spidering curl saved my @ss
is there a php function to list the names of files in a specific
directory?
http://php.net/dir
they use curl to exploit PHP scripts via XSS
lol
does anyone ever google?
like, "php read directory"
hm, Vystrix_Nexoth, can u help me once again?
does anyone know of a good ajax channel?
maddog39, know what?
no curl support.
4.3.10-18, debian package ... damn ...
debian has outdated packages
usually
and i dont remember wat i said
ye unfortunately i've got no shell access (or root) to that
server to fix that out
you could download the sources
compile from source code
and install it in your home directory
no access.
ah
and no compiler too afaik
sockets time uh ? ...
no servers come with compilers
i think every linux server distro comes with GCC preinstalled
and Make
does anyone know of a good ajax channel?
nope
dont use that term
#javascript on efnet but they will ban you for saying ajax
would Asynchronous JavaScript and XML be better?
no
htmlhttpreqeust or something
is G6 an FTP program??
XMLHttpRequest
What does the Google say?
google "g6 ftp" and see
G6 Ftp Server. something called gene6
yeah thats an ftp server
say, can anybody help me with this counter http://paste.husk.org/8524 -- i
need it to not just write "number" to counter.txt but "number:ip",
how do i do that?
Does anyone know why stream_copy_to_stream does not work?
After running it both streams appear empty
i've tried stuff like fputs($open, "$line[0]" .":".
"$client_ip"); but it still won't do the ip
$str = '+my +string'; in like a one liner?
To prepend a + sign?
yeah basically this is for mysql fulltext search in
boolean
http://www.phpbuilder.com/board/showthread.php?t=10257820
Basicly to do a one liner, use regex, though it might be better
to use a short loop for this.
hmmm yeah faster i guess
?faris
every day I dislike php a little more
Whats the matter?
apparently the nimrods at php in all their infinite wisdom
for got a peak function for a stream.
woops
peak?
to look at a stream with out moving the stream pointer
so no i have to write a buffer for the streams
pain in the ass
for example stream_copy_to_stream is fine but it moves the stream
pointer so its really a stream_move_to_stream if you are working
with the input stream because you can not rewind the input
stream....
you can rewind temp and memory but not input
its really cute
http://us.php.net/manual/en/function.socket-recv.php
MSG_PEEK
This flag causes the receive operation to return data from the
beginning of the receive queue without removing that data from the
queue. Thus, a subsequent receive call will return the same
data.
its i file stream not a socket stream
php://input
I have a function inside a function, and the one inside can't
find the argument for the one above
$this-
$this-var
..?!
php-bot: test
how does that help
Yes, you're online, davey.
that didn't do anything
im not sure how/why you have a function inside a
function
it's from RASH
you mean your calling a function for inside a function
I'm modifying it
?!
no
i dont think you can have scope for a function outside
itself
aha
found a cool way of doing
it
str_replace(' ', ' +', ' ' . $query);
Anyone know if the timestamp returned by mysql is a unix
timestamp?
it is
Thats not the best method due to false poasitives. Like if
people add two spaces instead of one between words, or what if you
want to include things like -test ? Or what happens to just 'test'
a singe word with no preceding space and such?
The last two aren't being considered, ' ' . $query would just
make it +..
but yes the first one is kinda a bummer
As I said, a one line solution wouldn't be the best method to do
it. Since well, most one liners in this case would be a kludgy
method of adding a preceding plus sign and have potentional for
false pasitive matches.
whats the easiest to strip everything but numbers and decimals
from a string ?
regex
http://www.php.net/preg_match
([^0-9a-zA-Z])
Err
preg_replace('/[^\d.]/', '',
Thanks, I misread that
Use what Qube provided
thanks qube
so $1,000.12 would be 1000.12 right ?
yup
thanks
ok I have a really weird issue here... I recently upgraded my
entire system and now I'm noticing some funky php behavior...
basically, it seems to be totally ignoring any data that is being
passed through a query string
anyone know why it's doing this and how I can fix it?
hmm
it's a problem in web server
Apache? is it missing something?
are u using mod_php?
windows or linux?
linux (just installed Mandriva 2007 Spring edition)... not sure
about mod_php
ijwyn, when you say upgraded, from what version of php did
you upgrade?
oh, I meant that I upgraded from Mandriva 2006 to Mandriva 2007
Spring, so I have the version of php that was bundled with that
(5.2.1)... don't remember what I had in 2006, pretty sure it was
php4 though
does you code read the "query string" with $_GET or
$HTTP_GET_VARS ?
lemme try
or even $foo
ok, those two give me 'Array'... I also tried with
'$QUERY_STRING' which got me nothing, a blank line
ijwyn, yes - but what is your code using that is now
empty?
by the way, the query string doesn't come from a form, just
clicking on a link
i guess youused to have register_globals on which is no longer
on
well, for instance I have links pointing to names, like
$first will have the first name of a person and $last the last
name, but when I click on the link, the resulting page is supposed
to fetch the data corresponding to those names but it's not seeing
$first and $last at all
it's coming up empty
register_globals
ok, where/how do I change this?
hmmm
I recommend that you leave it off and fix your code to use
$_GET['first'] instead of $first
eh, that sounds like a lot more trouble though, why is it
better?
why can't i find a native php ide on linux?????
ijwyn, is safer
try pdt from eclipse project ;]
it would require *a lot* of rewriting though, I have tons of
strings all over the place, hmm
globals screw up with other variabless
if ($isadmin) { do powerful stuff....
it's very bad for complex code
then someone magically gets admin with
page.php?isadmin=1
i just removed it. it's too slow......
it'd be better to be written in c
well I just tried echo $_GET($first); it came up just as
blank
register_globals is safe *if* you are a good coder and know
exactly what is going on everywhere.... problem is most people are
not good coders
good coders dont do that
so.. maybe Vim
ijwyn, thats not what I said
i need call tips
AqD, well there is that too
doesn't vim just do auto-complete?
AqD, but up until last year I still had a site in /fi2, so I
didn't have a choice
heh
well without the echo it doesn't work either
$_REQUEST ?
What is the best way to change the keys of an array, im
currently using 2 flips but im wondering if theres a better
way
$_GET['first'] NOT $_GET($first)
nope, $_REQUEST is not doing it either
oh!
JEdit have nice code snippet plugin ;]
i know but its autocomplete doesn't work for me
well that's not working either :-(
try print_r($_GET); print_r($_POST); // ;]
oh duh! my mistake, I wasn't on a page with a $first, heh,
this one has an $id field, and yeah it shows in the print_r output
that's how I realized my mistake *hangs head
shamefully*
ijwyn :
hmmmm
Wolfy[drawing]: if you're still around, thank you so much AGAIN
for pointing me to BeautifulSoup, I've never seen it before but
damn.. works like a charm. This will solve so many problems I've
been having.
ok, it's working now... but man, I hate the thought of having
to rewrite everything... I'm wondering if I can work around that
with some sort of wrapper, hrmm
so, don't upgrade
doit right - otherwise it will hunt you !
No such file or directory
yeah, I just have to figure out an easy way to fix it...
the $link is something like /var/blahblah/tmp/19945.clip
on a side note, BTW, $_POST brought up an empty array, $_GET
was apparently what I needed here
anyway, thanks for the help guys
explode($_GET) - .. - mmm - ...
anyone?
WTF?
not the right thing ?
Take a look at the parameters explode() is taking.
heheheh, that's exactly what I was just thinking :-)
hello everybody, why can't a class instanciate itself from a
static function (in the class) please ?
hmm
Sure it can.
or at least, why isn't it running the constructor ?
What exactly is your code?
(And hurry up, I'm about to go to bed)
http://pastebin.ca/569102
SlashLife
Isn't it __construct ?
And a constructor doesn't have a return value.
it goes from line 75 to 76 directly
even with __construct set public
This class does not have a constructor.
No, there is no __construct
oh my bad typo
thnaks SlashLife
np
*thanks
*waves everyone goodnight*
bye
i use explode all over the place - never for GET and POST
though - i am mapping string keys to integer values to access
arrays
same thing with __construct
yeah, I use explode() a lot too, but it doesn't seem like it
would work for GET though
no my bad
Sounds stupid.
Ever heared of foreach?
if array values were numbered it would be easier, but they're
named after the strings in the query, so that makes it more
complicated
SlashLife::lifeFactory(array('php'=false, 'bed'=true));
although... I just realized something... this is for working on
my own computer, so it probably wouldn't be an issue turning
register_globals on, as for the server where the actual site is
hosted, well, they're apparently turned on there and but that's not
my decision :-o
security issue most probably than compatibility issue
yeah
it seems that arrays are processed much faster using integer
keys than string keys - thus i map string keys (nice for knowing
what you do) to integers
I'll definitely want to figure this out at some point, but it's
too much of a headache right now, lol, I'll think I'll just
re-enable the globals for now and think this through some more
later... I'll probably figure it out, I just need to get this
working again so I can do some updates
I have raw data tables (VarTable) which are displayed in html
in different views (HtmlTable) - the amount of records may be 1000
rows * 20 columns
and any row,column value is defined (maybe as NULL)
im trying to ./configure with mysql and i get this error
error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
where can i fix this?
install it
install what? php ? mysq?
i have mysql already installed
install the dev package
of php?
of what (???) ... read your error message !
so mysql dev then
yeah, you need the devel package of php
that's where the headers would be
er, mysql devel I mean
will installing the devel pacakge of mysql screw my current
setup of mysql at all?
it shouldn't
just make sure you install the same version though, or your php my
act funky :-)
*might
(and by that I mean that the versions of the devel package and
your mysql install should match)
arg
i found a thread about a guy who made a script doing exactly wht i
wanted
and a reply saying wow it's great!!
and now the links dead :/
for the link to his script grr
xD
I hate it when that happens
ah found something even better
that will allow me to add new ftp accounts via ftp raw commands
from php
well the script is on the ftp server
but i can use the command from php by logging into the ftp on
php
why does http://paste.husk.org/8525 work
and not http://paste.husk.org/8528
can php do secure ftp?
sure - http://php.net/manual/en/ref.ssh2.php
anyone know if the cost of running array_values is? i am
using it to iterate over an associative array of objects in
php4
*what instead of if
oh
problem..
sftp doesn't support raw commands does it?
should be a copy
michlemken it doesn't copy the object
oh wait let me double check that
its may (!) due to new a new numerically index
ok i don't think it duplicates the object array
bref
sftp doesn't support raw commands does it?
Is there a reason that commands through exec() or system() would
just return an empty variable ? Doing simple commands like 'ls -l'
gives output, but I'm trying to convert images and it doesn't seem
to execute. Safe mode is off.
Is there a reason that commands through exec() or system() would
just return an empty variable ? Doing simple commands like 'ls -l'
gives output, but I'm trying to convert images and it doesn't seem
to execute. Safe mode is off.
bIs there a reason that commands through exec() or system() would
just return an empty variable ? Doing simple commands like 'ls -l'
gives output, but I'm trying to convert images and it doesn't seem
to execute. Safe mode is off./b
anchovies ,
can someone help me simplify http://paste.husk.org/8525
please?
if (!$cookie_ip or $cookie_ip != $ip) { if (!$cookie_ip)
setcookie('client_ip', $ip, time()+360000); $line[0]++;
fwrite($open, $line[0].":$ip"); }
hello
do flock($open, LOCK_EX); just before the fwrite()
[mewbie q] I'm trying to make a script that iuploads a
file
(and flock($open,LOCK_UN); afterwards if you don't plan to close
it right away)
I want to upload it to the same dir than the php
file
that way, if more than one client tries connecting at the same
time, you won't have different PHP instances trying to update the
same file at the same time
start here: http://us.php.net/manual/en/features.file-upload.php
http://eugeneciurana.com/pastebin/pastebin.php?show=2432
I get this
is there any way to upload to the same dir that the php
file?
php.net/move-uploaded-file
also , can thgis be done multiplatform?
use that instead of copy()
awesome Vystrix_Nexoth
nah it's just gonna be one client but damn
that is awesome
I have a script that I forgot to include mysql_close() into
and now it tells me "too many connections." Any way to remedy
this?
I added mysql_close, BTW
but it still says it.
you connecting with mysql_connect() or _pconnect() ?
mysql_connect
try the other one. might not help, but it's the best I can
figure so far.
btry the other one. might not help, but it's the best I can
figure so far./b
so basically http://paste.husk.org/8529
then?
mysql_pconnect(): Too many connections in
/home/www/server/updates.php on line 3
_
aye
this other guy also tried but what he came up with -- http://paste.husk.org/8528 --
didn't work
hmm.
that one always tries to set the cookie, every time, regardless
of whether it's set or not
mine is functionally equivalent to yours, just less
redundant
cool
the one that guy did though looks nice though
guys i have a global object or at least i think its global
and then another object is calling the global one and one of its
functions i get Call to a member function sql_select()
is there any way of merging yours with his?
$this-result = $db-sql_select($sql_select); $db is a global
object
what is the problem with this and why is my object not liking
the fact its calling a member function of another
object
nevermind Vystrix_Nexoth
yours works perfectly
if ($cookie_ip != $ip)
without the second if()
'cause if $cookie_ip isn't set, then it certainly won't equal
$ip
only use pconnect for remotely based DB servers or where DB
connection is expensive, try upping the number of allowed
connections to the DB, chances are you're hitting a moderately set
limit in your mysql setup
so like
if ($cookie_ip != $ip) { setcookie('client_ip', $ip,
time()+360000); $line[0]++; fwrite($open, $line[0].":$ip");
}
hey i fixed the code
but question
looks good
word
lemme give it a shot
how can I get the dir in wich the current php fileis
running
?
Well my database server is remote
can you try going to my site?
'./'
it's not localhost
copy it to "./file.ext"
i can't clear my cookies atm
I meant remote from the webserver not from you
naoshige.probsd.net/mp3
Vystrix_Nexoth that returns me the apache installation
dir
username good
it'll go into whatever PHP considers teh "current working
directory", which is the directory of whatever PHP script was first
called by the page request.
I know.
password in pm
This actually exists on a real webserver
oh. hmm.
I -- oh
you should see 13
check your MySQL setup, and PHP should close the DB connection
for you anyway once the script has finished
14 visits since June 13, 2007.
ok, just went.
Back to square one. And seriously, I'm not paying anything for
this server so I can't change anything like that.
http://eugeneciurana.com/pastebin/pastebin.php?show=2434
14?
Well it still says that
and this is PHP 4.4.3
click on anything, or is my mere presence enough, as per
usual?
damn how come it still says 13
noone can shine a light on object crap? i'm assuming there is an
instance of object X and i'm calling $x-function() from within
another object that thinks the global one is set-up
mere presence
something ain't working then
old: http://paste.husk.org/8530
new: http://paste.husk.org/8531
ew, that old code uses register_globals
that must be even older than what you showed me in the first
place
the old one is the one that works
i hope i didn't show you a different one to begin with?
i apologize if that's the case
or I hope it's older, anyway... wouldn't want to be regressivist
like these HTML5 idiots
yeah the admin refuses to turn on register globals in
php.ini
anyway
hehe
I don't want to do this.
what's wrong man
But do i have to give my site's URL out to get a remedy for
this problem? It's just getting so annoying and I can't seem to fix
it!
in the 'new' one, you never opened $open
fopen() before fwrite() :P
*sigh*
let's see Vystrix_Nexoth
I guess I'll have to so you'll know exactly what my problem
is.
just show us some code in a pastebin, the URL is of no use
really
I didn't want to because of criticism, but ah well. It's a Zelda
fansite. T_T http://www.triforcetour.com/index.php?page=index
Well, too late now.
;-;
$open = fopen($file, "w+");
wait not yet
let me put hat in
oops. heh.
now
i guess not
still 13 right?
if ($cookie_ip != $ip) { setcookie('client_ip', $ip,
time()+360000); $line[0]++; $open = fopen($file, "w+");
fwrite($open, $line[0].":$ip"); }
hmm. try, as a debugging measure, printing $line[0] after you ++
it.
Gah, I'll just pastebin the f'ing code.
...which the manual says is an alias to fwrite. so nm
that.
hm..
http://www.pastebin.ca/569265
i'll just revert to the old one for now i guess
Why does it still say too many connections?
try reloading now please
this is fucked up
i'm off
enjoy the music though Vystrix_Nexoth
maybe you need to set $ip = $_SERVER['REMOTE_ADDR'];
well
er, nm
turned out the old didn't quite work either, so
that cookie prompt I got showed me my IP
strange.
what a mess
Anyone see any problem?
*shot*
i don't need a counter
that music seems to be rap, which isn't my cup of tea, but
thanks nonetheless. ^^
hehe
heh, true. they're more for show anyway.
nah it's a lot of other stuff there too
* there's
I'll check them out, then.
and whatever rap's there, it's guaranteed to be unlike any
other rap you've heard
Apparently now.
cream of the crop, the shit the radio never ever plays
thanks you all
i'm out
best of luck
*not
Now can anyone see about my code?
you have duplicate queries in there but nothing that would
cause your current problem, so I repeat, check your DB
setup
.....
Back to square one. And seriously, I'm not paying anything for
this server so I can't change anything like that.
well PHP is giving you an error for a reason
Well I can't fix this... maybe just logging into the database
will help. o.o'
#1040 - Too many connections
DB setup!
I don't own the database server, and I can't change that
stuff so I'm stuck!!
OK?
pretty much
My site is in the hole.
CRAP.
not to worry, there can't be that many Zelda fans around?
:P
It should come back
I got this error once in the past...
and it went away in 5 minutes.
O_o
Maybe my server needs to restart itself.
ei cambada reabri o c4ll quem quiser ir pra la esta
convidado...canal de informatica em geral
English.
thanks...but i told only imports who can read...i will not span
any way. i lie to be over here...
my keybord is borked so..
hi
someone has been ever used php-gtk?
hello
is there anyway to find the server domain in php?
$_SERVER['HTTP_HOST']
technically that relies on the client to tell the server what
its own domain is. but then again, if it supplied something else,
then another vhost would have gotten it. :P
on the plus side, it explicitly refers to what the client thinks
the server's domain is. quite useful for putting together absolute
URLs.
can php send e-mail via smtp servers using SSL!?
yes
what is "SSL!"
?
en.wikipedia.org/wiki/Secure_Sockets_Layer
but the exclamation point?
Anyone know what a mysql datetime data type is translated
into in PHP? A Unix timestamp?
http://dev.mysql.com/doc/refman/5.0/en/datetime.html
A string?
anybody knows if simpletest features fixtures generating please
?
does PHP support something like C's va_start
?
what do you want it to do ?
having a function that can support an arbitrary number of
arguments
php functions accept more arguments that explicitely specified,
not less
also you might want to check func_get_args()
yeah
well I think I'll have to use an array
(func_get_args does generate an array)
you dont have to, you can use
func_get_args/func_get_arg/func_num_args as is_null said
how do you define the "Content-Type: text/html" header that gets
send by php?
thanks a bunch, that's exactly what I needed
found it ... but I'm still struggling to get a euro sign to
display in utf8-land
anyone help me with online movie buffering/bandwidth
questions?
morning!
hi
Maximum execution time of 30 seconds exceeded" this depends by
the script that i am running of a php setting?
*or
no, that depends on max execution yime.
php.net/set_time_limit.
*time
Wolfy[drawing]: thanks
Wolfy[drawing]: what can happen if i set time limit to 0 ?
no time limit
yes
ok i know this mean no time limit, but there can be some
problem if i set no time limit?
30secs are not enough?
seems no
are your doing calculating on astro things?
dbms execution time is not counted
no, it's a script that encrypt / decrypt some data, i only
used it, it's not mine
ok
how about memory limit?
enough for it?
8M is enough?
if i set_time_limit to 0, it seems ok, i am on a
hosting
i don't have access to php.ini
ok
dob1, what type of applcation is this? if your taking 30
seconds of CPU then it can't scale to more then a few users so you
need to get that fixed
how much data are you encrypting?
it's the script from phpmyadmin, the blowfish.php, i use it
to encrypt / decrypt a text file, line by line, only this. i am not
a php expert, i read some example about it
so is it for personal use or for a webite?
personal use
or better, i use it to store some data about the website
but only me and other person
ok, so then just do the time limit thing ou said, but it may be
better to do it with a C app, it will be much faster
*you
ok i will see how to change this procedure
thanks for the help bye
likes that signoff
Wolfy[drawing]: do you have any comments on the use of
assignment via $this-foo =& $somearry; ?
yeah, "Client exiting" for teh win!
Hm?
Nah... I meant "thanks for the help bye" click
I have a note from a developer not to do assignment that way. I
don't know why, just a snippy "don't do that."
And I'm confused as to he means "don't do assignment this way"
or "don't use this method of passing information to/from the
class"
IF you really don't need to pass the reference, don't do it.
It's a waste of memory.
Ummm... Memory + CPU power.
is even more confused now
I thought one point was to avoid multiple copies of the same
variables.
Hello!
http://phpfi.com/242089
??
!+&
[&] & is the PHP 'Reference' operator. See: http://php.net/references; & is
Also the PHP bitwise AND operator. See: http://php.net/manual/en/language.operators.bitwise.php
^-- read
You tell us
I can see different strings as result of print_r( $news ) in
different iterations
instead of array structure
e.g. numbers, some text - it looks like another column in each
iteration
And what is supposed to be $news?
hi, I have apache and php but apache is showing the source
code of php pages instead of processing them, how can I fix
that?
Wolfy[drawing]: some columns got from database
it should be an array
Maybe I'm doing something wrong.
no, it shouldn't. Unless there is a reason, that you used
foreach.
!tell aditsu about at
So foreach isn't good solution for fetching arrays from
result?
hi i wanna use a replace function, if it for ex finds the
word ps it will look up it in an array and replace it with for ex
PHP Site
Do you know what it does and how it works?
You can try array_map
Okay, it returns $val or $key with $val. Maybe it's wrong.
So another way?
Wolfy[drawing]: thanks, what's the difference between AddType
and AddHandler?
k
Use while()
It's not "wrong", if you know what it does.
That's #apache question
Wolfy[drawing]: read. If altering the array, reference is
more memory efficient than pass by value. (as soon as a pass by
value variable is altered it is copied, in 5.x, while in 4.x it
seems to be a copy immediately.)
There you go.
That's why I chose reference in the first place. So I still
don't know why this schmoe is telling me not to do
that.
fetch ) - which is the best and the fastest and the most
optimized?
It depends on what you want. "best" is relative.
Like, profile it?
I want to have current row in $news and do some operations on
it
Which translates into...?
You *could* use foreach, if you knew exactly what you're doing...
But in your case you probably want while
How can i return the str pos in the array from an array
search?
Read the manuals.
$res-setFetchMode(ASSOC); foreach($res as $news) - I think it's
OK.
If you say so.
How good does it work?
how to turn a gif to no color?
Emmm... Wha?
Wolfy[drawing] how to turn a gif to color blind?
how to say, like photocopy
you can modify the color scheme
i've found imagecolorset() but have no concept on this
thing..
oh, i've found that this is called color transformation
i think there will be some tutorials on this
oh fun, http://www.blizaga.com/tutorial/tutorial.php?id=4
Ajax is the shit.
I just started toying with it tonight
dan__t heh
it's fun but complicated
Well.
Maybe a bit, sure, I'll give you that.
do you know js?
I do not.
I found a good book - learning both at the same time.
Beginning Ajax with PHP, Apress Publishing
hi folks. is it possible to determine the unix timestamp of the
first second of the current month?
sure it is
mktime is a good place to start
thanks, I'll look into mktime
ah, that looks fantastic. thanks
Does PDO count number of queries?
your database might
why would you want to do that?
To know how many queries did the script done.
but why do you want to know that?
For a statistic - I was displaying it in footer before.
that's a really odd thing to tell the user
"i ran 10 queries, be proud of me"
No interface counts number of queries. Do it yourself.
or just don't bother displaying it, and ask the database to
report on it later
Some users can look for CMS which make less queries. What do you
think about it? Isn't this stat really needed?
no, nobody cares if it queries the database 10000 times, they
care about how quick the responce is
and how good the interface is
where did you get the statistic that users care how many queries
are made?
I'd care if my app does 10k queries
I think somebody may care but okay - I won't show it - 1
variable less.
Wolfy[drawing]: would you?
Yes I would
if it was just as quick as another application, and had good
user interface, why would you care?
'cause queries exhaust CPU.
Does PDO::query() return false when no rows?
I think no.
RTFM
Wolfy[drawing]: but it's not the number of queries that make
them use CPU, it's the type of query, select foo_seq.nextValue is a
single query, but not a very processor intense one
It doesn't.
that is to say, it's a crap metric
true. But multiply that with many user, and you get a
fitfall.
*pitfall
hello room i don't know if anyone remembers me from
yesterday
that was covered under "performs the same" in my
assertion...
It doesn't matter if your app makes 100 or 1000 queries; if
you are making crap queries, 10 will exhaust your
system.
yes
does anyone know of a good simple explenation of eregi() search
patterns?
i'm having a hard time understanding how to do the
comparisons
"stop using them"
!+ereg
Ereg should be avoided in favour of Perl-compatible regex.
PCRE functions support non-greedy matching, assertions, conditional
subpatterns, and a number of other features not supported by
POSIX-extended regex. Also, the PCRE functions are binary safe and
are often a faster alternative.
so is regex another function?
it is always faster to use string functions than regular
expression functions.
regex is a langauge for specifying patterns of text/data
all be it a very simple langauge
hi all
in the case where the string functions can do what you want
...
so how do i use it in php?
is it safe hosting php under windows
regex is short for "regular expression"
php.net/pcre
bash-: its not going to kill you, if that's what you
mean.
lol
why shouldent it be safe
no that's not what I mean, I mean will be secure?
bash-: It works. Other than that it depends on your server
settings.
bash-: that is a dumb question to ask.
because of the lack of priviledge seperation in window's
implementation
wait didn't someone say though that i should use string
functions instead of regular expression functions?
i'm just validating form data
only if you just want to test for exact substrings
what is my best solution
your best solution is to go and download a form validation
class
if you just want to see if a string is not empty, if one string
contains another, if one string is equal to another, you don't need
the regular expression overhead.
i am now going to toilet for big
Do you know official developers PHP IRC server?
SettlerX this channel?
You can try #php.thinktank or internals mailing list.
how do i print out chars hex values in php?
Some people complain on their blogs that PDO isn't as fast as
MySQLi.
dechex() ?
Ummm... Are we talking about mili seconds? Micro seconds?
Less?
hey all
$response = $ServiceProxy-{$Verify}AddItem($request); -- i cant
reference the variable like this, huh?
how is that supposed to work?
However, they whould improve PDO for MySQL like MySQLi
interface
tRy it?
Wolfy[drawing]: i did, i know its not working
*should
Have you actually did a benchmark yourself?
Cannot instantiate non-existent class: db in
/home/M/majorst1/www/admin/index.php on line 15"? I changed server
today, on the last server everything worked fine, and I am pretty
sure the path to the class works fine
i get unexpected T_STRING
FuriousGeorge, $ServiceProxy-Verify-Additem($request)
no, im trying to reference the variable name
you want quotes... something like
"{$var}blah"($woof)-something;
nah thats not working either
forget it, ill just throw an if in there
mkay
Tried $response =
$ServiceProxy-{$Verify.'AddItem'}($request);
Avoiding that "you cant' refresh after POST" problem for
self-submitted forms...
anyone got hot tips :P?
Redirect after processing the form post?
if I redirect, the redirected page can't show the result of
the action
say "me.php" submits to "me.php" which redirects to "me.php"
after processing (to avoid refresh issues90
the last me.php doesn't know what happened
\. mean the same thing as this: [.]
anyone?
GameGod2, not exactly since [.] still uses the special meaning
of .
but \. means dot
i thought that inside [] . and & are literal
nah
what about "&"
was this a special symbol at all?
I don't remember that one
sorry
i meant $
ah
here is what im getting at
See if
http://shiflett.org/articles/how-to-avoid-page-has-expired-warnings
helps
okay i'm also learning that php comes with default
classes
Do I need closeCursor() after fetchAll() method?
[[:alpha:]] for instance
but on some of my code i'm on
hiya, i was wondering, what does HTTP send as a "i've
finished" signal? i open a socket and listen for "\n", but last
char aint a newline...
i see them doing [[:alpha:]_] for like a username
SettlerX, fetchAll closes it I beliebe
$foo = bar; $bar = "foo"; echo $$foo; //OUTPUT: foo
i thought you must use [[:alpha:]] in it's entirety only
shouldnt something like that work?
echo ${$foo};
dynamic variables are neat
thats what they're called huh. maybe i can google it
better
general_failure, when it disconnect
php.net/variable.variables
general_failure, you can do $html = file("http://www.google.com");
matt_s yea, but how do i probe a disconnect?
some are keep-alive
$Verify = Verify; response =
$ServiceProcxy-{$Verify}AddItem($request};
i am nto sure
Well $response = $ServiceProxy-{$Verify.'AddItem'}($request);
works for me but it might not be what you were after. If all the
vars were parsed out ok what would you be expecting to see in your
case?
why not use the built in functions though
Connection closed by foreign host.
get this
file() will grab the whole html
because i send headers myself
i would expect ...-VerifyAddItem($request);
_MarkL_, thanks, I'm just looking for a good way to pass my
messages to the page I'm redirecting to via sessions I guess. but
how do I ensure only that exact page gets those messages and not
another page which incicidentally is opening on the same
user?
^ that was for you
i tried your first suggestion but i didnt try that one. lemme
give it a whirl
That is the same as the first suggestion
general_failure, look into the curl functions
nm, it wasnt you
Ah good, the DOS attack has ended at last ..
matt_s but what i need to get from the response i get is in
the last line of the post.. and currently im doing preg_matches
after a newline, but it never occurs and then the socket times out
instead
newline has nothing to do in hmtl
check the rfc if you want to amke your own
i would use curl()
curl allows you to set your own headers
Sorry, I'm a bit tired and didn't really follow what you just
said, care to rephrase it? Not sure what the last part of your
question meant.