I3ooI3oo, there's a ini value
I know but i am getting a out of memory error that show a
limit of 16mb but the ini file is set to 64mb and i am sure it is
being used
phpinfo () shows local 64MB and master = 64MB
THL told me to look to see if an included file had alimit
i have looked for .htaccess files setting memory limits
jmccaffrey, I used chown -R apache * but it tried changing the
permissions of all the files but it said permission denied
Any other ideas on how to fix?
chown -R apache: *
also, apache may su to another username
heh
after being started as root
I3ooI3oo, does ini_set() help?
zend or ioncube?
what does set_ini() do ?
set's configuration parameters for php
I3ooI3oo http://www.php.net/manual/en/function.ini-set.php
i am excuting a script in terminal, is there a way i can get the
current file i am using ... $_SERVER['PHP_SELF'] does not work in
tern\minal
Can I make it so that all php web hosting files in a
users directory is executed as that user even if its accessed via
Apache?
*a user's
werd
you'd want suphp for that, Jckf
OK?
lost_and_unfound, __FILE__ try this
i may have asked this in here before but am still having alot of
trouble with exporting stuff from my database
with php into a word template for printing shipping lables
word template?
yes
why?
a shipping lable template
because we have so many clients saved in a database
why don't you use html
html doesnt print properly does it?
eljak, tried that as well with no luck, nor $_ENV
i am looking for a way to draw simple geometry (like a stroked
circle) with php, and i have tried ImageMagick
and gd... however both libraries seem to give low quality images
for printing. has anybody encountered / solved this?
babybo0m, havent thied it, but its there not a way to boost
the dpi in im ?
will html
hold its shape through printing i figured it wouldnt print right so
i thought putting it in a word template would be my only
option
babybo0m, http://php.net/gd
biohazard`, html doesn't print properly?
biohazard`, style type="text/css" media="print"
html seems to work with pixles and size of screen where
printing on a paper is more of inches
lost_and_unfound seems to have no effect when i change it
:/
SoftException in Application.cpp:199
that will work?!
body { width: 8.5in; } /style
Oops
that would save me a ton of time if it does
biohazard`, inches is in fact a valid unit specification in
css, go talk to #css
i do quite a bit in css but have never gotten into print
stuff
biohazard`, it's not useful for screen display because inches
could be different for different mediums, should be the same for
paper though
biohazard`, well go talk to #css
abstrakt yea i know. cannot find what i need there though. the
quality of drawing a shape appears to be too low (http://www.collect4all.com/cp/geometry_imagick.gif)
thank you
babybo0m, you're not going to find "high quality" drawing as
such
babybo0m, and imagemagick != GD though they are similar
Photoshop
abstrakt i understand that, but i do not see why its not
possible to draw a sharp circle using e.g. imagemagick
babybo0m, though there is an outside chance you could write and
call a GIMP Script-Fu from the shell if you were on *nix
babybo0m, i do not see why it's not possible for me to get laid.
what's your point?
abstrakt what's the point of drawing functions when the output
looks bad
babybo0m, to draw
babybo0m, pretty simple. the people who invented PHP aren't graphic
designers, they're coders. "looking good" isn't in the
specifications for PHP. we've already got programs to do that,
Photoshop etc
babybo0m, those shapes still work fine for charts and
graphs
lost_and_unfound, what about basename() ?
abstrakt ok, i agree. i figured imagemagick was a quite
advanced library but apparently its not
use svg if you want to draw
babybo0m, no, apparently you were mistaken. ImageMagick
is a "quite advanced" libarary. you just assumed you could use it
for a purpose for which it was not intended
lost_and_unfound, I think that when you call the script from the
console, one of the argv values is the file name
flung still the same problem
6, what is the opposite of that, I mean, How do i convert the
date to that
abstrakt ok, thanks.
eljak, kliklik , found the error... the programmer...
__FILE__ does work fine, thanks!
DATE_RFC822
Which PHP?
5
php.net/date
I checked.
I understand that Zend is a php framework for web applications.
Does that mean that it's a framework just like drupal
hosting is?
What's a "normal date"?
I found a to decrtypt the date in this format DATE_RFC822,
but i couldnt find a way to convert it to DATE_RFC822
You've read php.net/date?
Yes
apparently not
drupal is not a framework
..where exactly does it explain how to convert the date to that
format
I'll find an answer for you gor $50
s/gor/for
.
yes?
no :/
I'll do it for 30$
x)
$29.99!
Haha
25$
damn you, 'nygma :o
$60. My final offer.
lol
its not in date()
but of course, we don't ask for compensation for things here,
right Wolfpaws?
Speak for yourself
sup guys and gals
1180771766
assuming that is a unix timestamp, you can format it with
http://php.net/date
i know its a unix
host timestamp and it doesn't say anything about formatting
in date
yes it does.
Is it better the use unix timestamp or RFC 2822 formatted
date?
it depends on what you need.
RFC 2822 is easier for a human to read
a unix timestamp is easier for comparisons
drupal is a content management framework
Do they print out the same thing
if you want to find out if one date is older than another, or
what a date is X seconds later, etc
I'll test that
Oh
is that exam for the unix host
timestamp?
exam?
yes. a unix timestamp is a number, so you can do math on it.
you can't do math on an RFC 2822 date.
Understood, thanks man.
I guess I'll use unix
hosting timestamp
morphir - which is different than just a framework
you are right. but you should clarify
pfft
you knew what I meant
hello, i want to download a picture from a site
to a folder on my server
is anyone have an idea how that kind of thing can be
done?
"Framework that is not a framework"
hehe
"Then what the heck is it?!? A fried chicken?!?"
!+english
##PHP is an English only channel. If you need support in some
other language, please try elsewhere.
mmmm....fried chicken
Aaaaargh! Now I'm hungry
hi all. i'm trying to do the equivalent of "dig @224.0.0.251
-p 5353 _workstation._tcp.local ANY" in php. can anyone point me in
the right direction?
what might this mean "if (!$a_model[$i_model - 1])
unset($a_model[$i_model - 1]);" ? trying to understand author's
flow, but fail (probably i'm dumb)
if it doesn't exist then unset it? sounds like overkill to me
;-)
I don't know what exactly are you trying to do; You want to
make a clone of 'dig' in PHP? If so, why?
i basically want to browse the other computers on a Mac
network using Zeroconf/Avahi
via PHP o.O
the "dig" line above shows me all macs (avahi/zeroconf enabled
devices) on the local network (using "dns multicast")
i don't imagine it's too difficult since avahi/zeroconf basically
uses DNS standards
probably i'd just need to fsockopen and send some "magic" ;-)
things
Well, you could look into PEAR if something like that exists.
Personally, I'd just parse the data that exec()
provides
me too, but unfortuately the embedded device i need to run
this on doesn't have dig
then why chose PHP? o.O
cause php is there ;-)
and i just want to extend my existing app with this
functionality
given a DOMDocumentElement, how do I get the value of the
element (as opposed to one of its attributes)?
look into PEAR. If nothing is there, then enjoy the
RFC's
ok Wolfpaws, thanks
Net_DNS comes closest i guess
http://hashbin.com/976.html - is
this possible?
I have:
foreach ($doc-getElementsByTagName('tr') as $row) {
foreach ($row-getElementsByTagName('td') as $cell) {
but need to get the value of the cell.
not it's attributes. and i'm not seeing an obvious call for
that
Which file is more important? index.php or index.html?
when file is not defined in URL
What all needs to be in the configure line to make zip functions
work in php5.2.1?
not sure....
don't deal much in that area
Notice: unserialize() [function.unserialize]: Error at offset 0
of 272 bytes
index.jps is the most important
*jsp
why are you asking me particularly? I really don't know the
answer to that. You might check out the php docs on the php.net
website. put unserialize in the search box
how do I get the value of an element from a DOMDocument?
Hickeroar, you where the only one that answered. I am
currently reading the php manual
I need help with the Pear packages PHP_ParserGenerator and
PHP_Parser. Where do I go?
I haven't ever used the unserialize function so I'm probably not
the person to ask. sorry :-/
ah! nodeValue.
!tell Sjord about pear
PHP is telling you that your serialized data is invalid
It doesn't contain what it claims to contain.
My guess would be that you tried to insert it into a database
but didn't escape it properly, but that's a pretty wild guess given
the lack of information.
TNL, well I am running symfomy and that inserts it into the
database. I am selecting it and tryin to get information out of
it.
At some weird occasions the broken serialized string occured
when enter was involved.
Erm... New line character
quick q - getting error Module 'json' already loaded in
Unknown when running php scripts from CLI....now i know i need to
uncomment the json.so file but I seem to have 2 php.ini files one
in /etc/php5/apache2/php.ini and the other in /etc/php5/cli/php.ini
does the cli use this second one or how can I tell?
hey all, is there a way to access the name of a array (like i
want to do a eregi on say $_POST[*] (the star is what i want to
eregi on...)
nope, there is no nl involved
Well, the thing located at http://hashbin.com/976.html is
decidedly NOT a valid serialized string
php -i
there is a function to run a user function on all elements of
an array
TNL, why?
deeperror, got a name on it?
It's M
T *M* L
Get a better font
oh, sorry - somes up quite blurry in XChat
current app i'm working on has a M:M relationship between
sherpas and the territories they cover. currently the app goes
through a massive amount of retarded logic to figure out A) what
territories need deletion, and what territories need insertion and
then it inserts and deletes them. is there any reason not to simply
run two Queries, 1) delete all records for this user and 2) insert
the new territory data set?
Because it's not. Look at it. It starts with
"symfony/user/sfUser...."
yes, that is the class name
the latter method is far less obfuscated from a code
maintenance perpsective *and* i don't see any reason why it should
actually be any slower
TML, Wolfpaws? any input on this matter?
That's not how serialized strings work in PHP
??
hmm, weird.
They start with one of about 5 things: a, i, s, b, O,
d
then I'll have to parse the string for information I
guess.
Followed immediately by a colon
What flags need to be on the configure string in order to
enable zip functionality?
ohhh, so if I ditch everthing before the |, it actually
should be valid.
I think about defining the intro file in CMS (he would include
it during first visit) but i doubt it's a good method.
Putting CMS files into another folder and inserting intro file
into main directory is probably better solution, isn't
it?
ShaneN, verily, thou shalt readeth yonder manual and informed
shall thee become
ShaneN, alternatively ./configure --help
SettlerX, um... wtf is "the intro file"
SettlerX, If what you want to do is A then ask about that. Dont ask
about B that you think is the solution because B may not be
appropriate for solving A; just tell us what you're actually trying
to do.
The "younder manual" says to use the --enable-zip flag, which
does not seem to actually enable it. I've seen references to
"with-zip" elsewhere but that does not as well
ShaneN, do you have the zip-dev package installed?
ShaneN, for anything you link into PHP at compile time you are
going to need the dev libs for that package installed
ShaneN, apt-get install zip-dev (or something similar)
I thought it was built into 5.2?
ShaneN, dunno, what does ./configure --help tell you to
use?
!tell nvictor about guidelines
I just had a weird thing happening on my box, all services
stopped
alexIdoia, no one cares
alexIdoia, they might care in #phpc or #yourdistro though
after a few debug I restarted apache but I got php warnings
can someone have a look to this please
http://pastebin.ca/613069
alexIdoia, reboot
Wolfpaws:
done that
so should i just comment out json.so here and what exactly will
I be missing if that is no longer in the php.ini?
Hi. I have situation where I have a big string that can
contain multiple hyper links. What approach could I go about URL
encoding the links to be valid links within the string without
altering the rest of the string?
the links would have to be encoded only once obviously and yes
there can be multiple links within the string.
preg_replace()
Does [[:alpha:]] check string only for lowercase characters in
EREG?
hmmmm/window new
that's what I figured but not that great at Regular
Expressions. I'll have to figure it out a good pattern to catch 'em
all.
why do you even think about ereg?
there is a #regex i think or #regexhelp, please let me know the
regex when you get it
hmmm
Ereg is nice and easy but preg... i have to learn
it
!ereg
!+ereg
Ereg should be avoided in favour of Perl-compatible regex.
PCRE functions support non-greedy matching, assertions, conditional
subpatterns, and a number of other features not supported by
POSIX-extended regex. Also, the PCRE functions are binary safe and
are often a faster alternative.
lol I'll be posting about this on my blog,
http:/www.adamsdesk.com/be/.
If I'm going to be nesting switches, should I be concerned
what's faster - switch or if?
no blog, here
no really
no
if you cared you wouldnt be using php
Because PHP isn't the quickest solution for the job?
uh because php isnt exaclty for things that require
performance down to that level
even the manuals tell you that PCRE is often faster solution.
Why do you hang on stupidity?
Gotcha, thanks
To make it clear, it's not that PHP isn't the quickest solutions
(I've heard tell that PHP with an opcode cache is not noticeably
slower than raw C), it's just that the typical use-case for PHP is
such that it doesn't matter. A simple DB connection will outweigh
the gains from choosing one language construct over
another.
yeah i was just giving a really plain answer yours is more
accurate
but god, dont optimize down to language constructs in php that
way
that's lame
make it readable
i used to work with a guy that all of his php looked like perl...he
won competitions for code efficiency and such but...reading it
sucked
Hello all
when you are doing a sequence diagram in uml, it says to "choose
the workflows to model" does that mean that any sequence diagram
can model multiple use cases?
hi
anyone setup phpbb on XAMPP b4?
I forget if I need to create a database
in mysql to start things off
i swear to god nobody on efnet or freenode knows uml
UM is for fags
UML
I have a problem. I have HTML being stored in a database. to
stop sql injections, I'm using mysql_real_escape_string() when
editing the html in the database using php. but then all the html
gets messed up with slashes. stripslashes() doesn't fix it - what
can I do?
yeah yeah
writing standardized design documentation is for fags, i know
when you insert the escaped html it doesnt save as escaped
so when you read it, it is not escaped
your problem could lie there
I'm inserting it using a html/php interface with tinyMCE
that or with magic quotes
been there, done that
so what do I need to do?
chcek if magic quotes is on before escaping
if not, escape manually
otherwise you are escaping it twice
php with magic quotes on (not reccomended) automatically escapes
your post data...or something
tag ?
I don't understand. what do you mean by escaping/escaping
manually? It's just sticking in \n which is a break, and \r, which
I don't want?
I mean, script_1.php send data with no user involve
huh?
\n and \r have nothing to do with escaping
ajax ?
what is escaping?
well not escaping against injection
no, I mean, script_1.php is not seen by any user, is a cron
job
use curl
ok
escaping is when you put a character such as \ before a
special character so that it is not interpreted in any special
way
usually it is a \ but sometimes in microsoft sql it is a
'
fucking microsoft
actually '' is a standard
and in sql based regex you need to double escape but thats
another story
\' is mysql's borkenness
well they should all use \
everyone else does
whew, I was hoping someone would say '' was the standard
I was about to hit someone
that's lame
'' is the sql standard, always has been
why the hell is ' the standard?
just because mysql is so fucked as to use \ doesn't mean the
rest of the world should
why not?
ask the guys who wrote the standard
ok I think I worked it out, thanks :-)
if sql is written in C they arep robably internally using \
anyways so why the hell would you cahnge it to '
sql isn't _written_ in a language
sql is a language
implementations of it are
you know what i mean
i just didnt want to type all that
many languages don't use \ as an escape
what's the difference between typeing \' and ''
they decided on '', I don't see a problem with this
it's the same number of characters
and '' is quicker to type anyway
you dont need to move your fingers
escaping one ' is ''' ?
no
nope, just one
oh ok
i am usually abstracted from this
Nitro tha CiMien
select * from lann where a = 'esc''ape';
anyway, I think you owe m$ an apology
how can I do to add data to oracle without autoincremnt field
using php?
so waht would be the proper way to check if magicquotes is
on...i mean some say check if it's on, if not escape. others say
fuck magicquotes and remove slashes then re-add them
yourself
okay...
well
is there something different about magicquotes escapes vs
mysql_real_escape ?
the first priciple you should know
is that you should do escaping as close to where you're gonna
use the data as possible
magic_quotes is doing it as far away as possible
this is true
it is best, imho, to remove them immediately if magic_quotes
is on
and then, through the life of the script, the values will be in
their correct form always
and then when putting the database, escape for the db
so maybe if you are using a fusebox approach, remove escaping
from magicquotes from any variable that goes into yoru
system?
I don't know what fusebox is, but basically yeah, remove
magic_quotes if it's on ASAP
I can link you to some code for this if you like
fusebox is when every page passes through a common php page
so that it becomes ...more application like and passes parameters
to determine page and such instead of the user going to x.php or
y.php
aah right, like drupal or dokuwiki
it probably has other names
but there is actually a...design pattern called fusebox
you don't _have_ to do it that way, but including a
common.php or similar in every script is a good idea
well yeah
i really like that method though
you can use that script to include common libs, handle
auth... fix magic
_quotes etc.
i tend to write most php sites using that method if it gets more
than trivial
I'm not saying it's a bad thing, it's just one way
but i'm starting to go more OO...but then i'll probably do
the same structure, just OO
Can someone help me, this code isnt working http://paste.lymas.com.br//?q=6465
Can someone help me, this code isnt working a href="http://paste.lymas.com.br//?q=6465"http://paste.lymas.com.br//?q=6465/a
i suppose it isnt very SEO friendly unless you combine it
with mod_rewrite
no sugar in the house!
Curious... Probably a simple answer but, does anyone know why
you can't throw an exception from the magic method
__toString()?
mod_rewrite is overrated for this purpose
what's wrong with it?
waawaamilk its don't work
how I get the path from my current script?
__FILE__
Method myClass::__toString() must not throw an exception...
doh!
obviously, that
's why you are here
can you use PEAR stuff when running under suPHP?
_how_ is it broken, what does it do and what do you want it
to do
I've seen brokenness like that before
like throwing an exception in a destructor
Heheh
i always wonder how overrated mod_rewrite is for SEO...it
probably isnt weighted THAT heavily
but you never know
for relevance and such
well, the most important bit is that you get the important
words in the url
if it's a page about ponies then /ponies and /ponies.php won't
make much difference
i tend to basically use the page title to form the file
name
i'd assume that's ideal
but then again, if it.s article.php?id=2 vs.
article/2-omg-ponies, the second one wins
but if you are using a fusebox method you'd get
index.php?p=Contact+Us maybe...and you'd have to mod_rewrite that
into something.com/contact_us/
which i'm farely certain can be done
indeed, one disadvantage of fusebox
but then you have to map page names to ids
how drupal does it
i've never seen anyone else's internal implementation of
that
is drupal.org/node/helloworld
i got lazy and really did use page names as indexes
which was wrong
goes to drupal.org/index.php?q=node/helloworld
just map anything after 'drupal.org' to index.php?q= or
similar
what happens when the name has characters that get urlencoded
then it gets ugly
well that's going to happen in any url
waawaamilk, with __FILE__ how I get just the dir ?
yeah a cms i wrote for a bank allowed anything into the
name
basename(__FILE__)
but the rewriting was out of scope so i never had to actually
deal with the regex
dirname(__FILE__)
but it did get ugly...they wanted some names to have even tags
liek superscript
yes, dirname, thanks!
whups!
that's about the time when you make the page url a separate
field
what u mean?
well rather than using the page title for the url, have another
field where they can put in the url
and be more strict about what you accept there
yeah i shoulda done that
live and learn
the problem with contract work is you cant always go back and
change things
unless all these business people agree on scope
actually i shouldnt have written a proprietary cms
actually you shouldn't have done something out of scope?
:p
hehe
when it comes to money, don't do more than what's in the
scope
i did so much that wasnt in scope
but...it is finished and working
and strangely enough, not one complaint
that's bad
It means no one is using your tool
hahaha
no but they are
i've seen updates on the site
they didnt even hammer me for not using a db abstraction layer
which i would do if i rewrote it
but the way they set it up you cant really inject
the public user has read only
the write user is intranet only
now an angry employee is another story alltogether
http://ejohn.org/blog/bringing-the-browser-to-the-server/
http://php.net/magic_quotes "#
magic_quotes_runtime is some retarded shit and could corrupt
data,"
that didnt get moderated out
why would it, he's right :p
hahaha
magic_quotes is pretty retarted
it's removed as of php6 it says
yay
It did now
wtf why?
Because ""# magic_quotes_runtime could corrupt data" makes
the same point without being offensive?
its still there
mirror propagation
ftl
It takes a while for it to spread to the mirrors
oh, php.net is on a load balancer?
Yes, "us2.php.net" etc...
neat
i wonder if i could put any of my code in the forums hehehe
nobody would want any of my php
Why is that
although i have been starting to build up an OO php library
...might post something from there if i find a place for
it
I've seen some real terrible code in there
yeah i've seen some downright broken stuff in there
people posting completely untested code like that damn codegurus
site
damn it someone needs to come take this job in sac
what's the function for showing the full structure of an
array? i can't seem to find it in the PHP documentation
print_r
thanks
echo "pre"; print_r($var); echo "/pre";
yeah, it doesn't show up on the list at http://www.php.net/array
var_dump() is more useful
I have a formmail script that's working fine in firefox, but
it's not working in internet explorer. does anyone know of any
online resources that address this?
How do I get the requested URL?
Look at phpinfo()
What exactly is it (not) doing in IE?
Hi for all!
Err...what?
It's REQUEST_URI, right, TML?
But how would I format that?
"format it"?
As in, what would be the correct code?
The correct code to do what?
it's not sending the e-mail
To "get" that information, as in, to put that info into a
variable.
It's already in a variable
What's the best PHP Framework?
RYO
Nice name you've got there
how can I write a single slash "\" in a file? when I use
fwrite they put two \\
wy is that?
TML What's URL?
John Jacob Jingleheimerschmidt
http://127.0.0.1 (RYO: Roll Your
Own)
still not getting it...
kkk
That is to say, "Your name is my name too"
great!
ah, you mean the Joseph Smith part
yes
I am make a researsh and select that the three php frameworks is
Symfony, CakePHP and Zend
ah. heh. i thought u meant solussd for a minute..
Someone suggest another?
and yes.. it is a nice name.
So you mean $_SERVER['REQUEST_URI'], right?
quincas-borba: Works fine here: php -r '$f = fopen("f",
"w+"); fwrite($f, "\\"); fclose($f);'
If $_SERVER['REQUEST_URI'] is the value you're looking for then
yes
I think so.
What framework you use?
can someone tell me what might cause a php script to work
with firefox but not with IE?
I just wasn't sure if it was $_SERVER, or
$(something_else)
I sincerely doubt anyone on Earth has compiled a comprehensive
list of all the millions of tiny ways Firefox and IE differ.
As for PHP not sending an email when you access a page with IE,
that simply doesn't make sense unless you done something horribly,
horribly wrong in your code.
Welp; So much about standards
ff-ie-diffs.diff
;-)
ha!
I thought that they interact with the server in the same way,
but I guess not
heh
A fair point
Anyone here have a smtp server working with IIS and php.ini
?
The browser has no impact on how mail() gets called, only on
what values might get passed into it
That'd be basically any SMTP server.
hi. how can i change the session timeout without access to
php.ini? i tried using ini_set('session.gc_maxlifetime', 30), but
the session persists beyond 30 seconds...
That question doesn't make much sense
I can't tell why mine isn't work
thanks. that's a start
!+doesn't work
Look buddy, doesn't work is a strong statement. Does it sit on
the couch all day? Does it want more money? Is it on IRC all the
time? Please be specific! Examples of what doesn't work tend to
help too. Finally, showing us the code is helpful (after you've
explained your problem). /msg php-bot pastebin for more
information
have you checked the ini parameters list to see whether
that's even possible?
One sec i'll explain.
what do you mean?
when i read that value after setting it, it has changed
I mean you're making the assumption that session.gc_maxlifetime
is available to PHP_INI_ALL
see also session.gc_probability
have you checked that?
Anyone know all there is to know about PCRE in PHP?
Who doesn't?
DShadow: i'll look at PHP_INI_ALL and gc_probability
Of course...
\(?([0-9]{2,4})\)?[- ]?([0-9]{3})[
-]?([0-9]{3,6})[x|ext]?([0-9]{2,5})?
What about it?
What does T_ENCAPSED_AND_WHITESPACE mean?
That should match and split phone numbers in any format
people here are likely to enter them.
And in The Regex Coach it does.
But in PHP it behaves quite differently.
How so?
"sting $array['blah']" usually
It's the name of a token in the parser
The error php gives me tells me that it finds unexpected
T_ENCAPSED_AND_WHITESPACE, and it is looking for a string or a var
or a ?numeric string?.
Well in the Regex Coach if I enter 09 303-3000 - I get [09]
[303] [3000] output
Right, I got the token part.
Wait... What?
In PHP I get [09] [30] [300]
?
Uhh
Actually, [09] [30] [330]
In Ungready mode.
that is insecure, just so you know
Upgrade your libpcre and your php5-pcre (or your os/distro
equivalent)
Failed to connect to mailserver at "localhost" port 25, verify
your "SMTP" and "smtp_port"
Why so?
That's likely to make a differentce?
because you're echoing $_SERVER['REQUEST_URI'] without any
escaping
I need to escape?
my request uri could be file.php?scriptalert('oops!')/script
yeah
with htmlspecialchars
string(2) "09" string(3) "303" string(3) "300"
Ohhhh.
Okay, now I know what you mean.
Which is correct by my reckoning
It's not what I want, or what other Regex tools are telling me I
should get.
TML, my text comes from a textarea with just one \ , but when
I get it with $_POST they put \\
Well, if you let it match greedily, you'll get what you're
expecting. But if you let it match non-greedily, it can stop at
"300" and satisfy your match
quincas-borba: Turn off magic_quotes
Hmm.
TML, how?
Because you said {3,6}
300 matches with a length of 3
IS there a way I send send something from within' the IIS to
make sure it is working (I know this isn't IIS support
but..)
Are you swedish?
NVM...
What do you mean "send send something from within the IIS"?
quincas-borba: php.net/configuration
TML, a test e-mail to make sure I have it set up
properly.
([0-9]{3,6})
You're right, I thought I'd tested it both ways, but I was
wrong.
If you use the global non-greedy flag, "300" will
successfully match at a length of three and then move
on
Thanks.
No, really, are you? @ waawaamilk
no, new zealander
You're using IIS as an SMTP server and want to send an
email?
If I set SMTP in php.ini i get the error as mentioned above,
and if i set SMTP to my local LAN ip I get no error and my function
if(mail()) appears to work but I get no e-mail.
TML, yes.
Kia Ora, Bro!
hello folks, ive been getting a lot of 302 HTTP response,
anyone knows why i fail?
ta'lofa
:P
'Failed to connect to mailserver at "localhost" port 25'
means you didn't tell IIS to bind its SMTP service to
127.0.0.1
Oh, well, you're an honorary Swede. Swedes are always
right... No, anyways, you seem to have fixed my problem with the
random tokens. @ waawaamilk
TML, I believe I have though Hmmm...
I've been getting a lot of 302 HTTP response, anyone knows
why i fail?
Telling it to listen to the default interface probably does
NOT include 127.0.0.1
KomodoKoffee:
302 isn't a fail
Thanks, man.
POST headers is the trouble, i can sure do get, no problem..
what is it then? and how do i work around it you
think?
Try using Fiddler HTTP Debugger.
http://www.fiddlertool.com/fiddler/
Anyone know how I would use pear? Im want to try to get to
use Open ID but im on a shared host so I cant run pear
installer
http://www.faqs.org/rfcs/rfc2616.html
8-O
the PEAR documentation talks about how to install PEAR on
remote shared hosts
'unassigned' or my '192...' lan ip, doesn't let me enter 127
for localhost
hold up hmm
Go to start
Negative can't manually assign
Hit run
type cmd, then type ipconfig
Take the IIS support into a private chat, maybe
cmd
LOL
I hate that stupid thing
What, command prompt?
KomodoKoffee, which ip?
cygwin takes cmd's candy and makes it cry
What are the options on the left side?
The windows default command shell.
TML, thanks!
It's pretty sorry
KomodoKoffee, what is it you want from ipconfig?
No, I know. But it's the best thing M$ has done for Windows
since they got rid of ME.
I want your local IP address.
192.168.1.100
So type that into the SMTP options.
i have
And it doesn't work?
well i can't type it in but
You presumably chose that option, right?
komo, so my php.ini shuld also be SMTP = 192.168.1.100 ?
Hahaha...End php code
If mail() returns true, that means PHP successfully delivered
the mail to your SMTP server. Whether or not your SMTP server can
correctly deliver it from there does not belong in
##PHP.
Presumably.
TML, gotcha
ok one more question from php.ini
Exactly, it's not a php problem.
MMhmm?
send_from = me@192.168.1.100 ?
I'm sure there's a windows based support channel on here that
can help you
That's the default from address, I think.
if a default value in a function is set to NULL, and its
value isn't given as an argument, it won't show up as isset
right?
What is "send_from"?
sendmail_from*
Heya gorgeous
typo
sendmail_from = me@192.168.1.100 ?
hey acushla
if SMTP = 192.168.1.100
how you doing to day TML?
sendmail_from will be what shows in up in the "From:" header
six on one. Yourself?
not to bad acushla..
so 302 is a redirect? or might it have something to do with
cross-domain .o.O i dont know
I had to bail on phpc for a bit, the pottymouths were running
rampant.
302 is a redirect
Hmm - got a log?
ok well thanks all, im off to search some iis suppot
support*
Nah. It wasn't a big deal, I just can't afford it at
work.
I didn't even say anything, just left...I figure it's social,
let them run free.
If you're getting 302s in response to pages that you believe
exist at the requested URI, ask your Apache admin why
understood TML - I just hate for anyone to not be able to
join in just because of something as simple as cleaning up
language
TML well i cant find out why the post issues a redirect...
could the referer have anything to say?
I'll come back. I just had people looking over my shoulder.
Hard to say without a fairly intimate understanding of your Apache
config
My first guess would be bad mod_rewrite rules.
hmm, suddenly my php stopped parsing
After that, I'd start to look at Limits
anyone know why ? (All it does is show a white screen)
[Ex0r]: view source?
[Ex0r]: What are you running on?
[Ex0r]: Is display_errors on and error_reporting at
E_ALL?
When there is php in the code, even the html doesn't
parse
[Ex0r]: As in, you're running your own server?
[Ex0r]: checked the server logs?
KomodoKoffee- yes'sir apache 2
with php 5
page?
[Ex0r]: Are you using short open tags and someone changed the
INI underneath you?
That's about all I can think of without more info
that page displays correctly
[Ex0r]: Which page?
A phpinfo() page?
Then there shouldn't be a problem.
and TML no, it's my personal computer and nobody else has
access to the ini file. (Short tags aren't active)
a phpinfo() page works
[Ex0r]: One of the options I just mentioned should lead you
to more information. Without that more information, I don't know
what else to tell you.
[Ex0r]: What pages aren't working?
Everything but phpinfo()?
yep
poke
[Ex0r]: php var_dump("A simple string"); ?
hey Wolfpaws darlin
What does that do?
pm for a tad?
Well, I sincerely doubt that his assertion is accurate, and that
confirms which of us is right
of course darlin
TML- it echo's back "a simplestring"
as soon as any page has html flags in it with php, it stops
working
[Ex0r]: You mean it echos string(15) "A simple string",
surely?
yep
[Ex0r]: php var_dump("A simple string"); ?htmlbodyA simple HTML
page inside/body/html
is there a function in php im not aware of that will search
and remove elements from an array based on a search
string/strings?
Blank whitepage
[Ex0r]: php var_dump("A simple string"); ?not php
string(15) "A simple string"notphp
php.net/array-walk, php.net/array-filter,
php.net/array-map
TML, thank you!
[Ex0r]: php var_dump("A simple string"); ?
err
[Ex0r]: php var_dump("A simple string"); ?
TML- White page
[Ex0r]: And you checked view source?
yep, blank
[Ex0r]: And you checked the server's error logs?
yep, nothing
[Ex0r]: Stop Apache. Unload PHP. Start Apache. Visit that same
page.
hmm, restarting apache fixed it..
That would.
Except I tried that before and it didn't, and I haven't
touched to config.
the*
darn..
but, it works now so it's all good
TML it has nothing to do with my own apache settings, even if
i telnet the header i get 302 (i send post to a remote
site)
(K.G. is a Japanese movie about two women with incompatible
personalities forming a relationship)
I'd like some advice.
Does anyone know of a good OO-php tutorial?
Yes, I checked google.
Trying to understand OO within the scope of PHP isn't a good
idea.
OO isn't php specific.
You suggest learning concepts first?
I suggest you learn what OO is, sure.
After knowing this, php.net/oop5 is all you need to learn how to
use OO features in PHP.
I suggest you start understanding OO to the point that you
aren't depending on PHP to do it, but rather you start asking
questions like "How do I make an abstract class in PHP?" rather
than asking a question like "What is an abstract
class?"
Ohhh. So you suggest that I get a better understanding of OOP
(not tying myself to any language), right?
Precisely.
What is an abstract class, anyways?
Look it up.
Mmkay.
wow i completely dont understand these functions TML
They're not complex at all.
The names of the functons really speak for themselves.
So an abstract class is a class that is used ONLY as a
parent? And can't be instantiated?
That is not the purpose of an abstract class.
Then what is?
An abstract class is used to provide a static (as in
non-changable) interface to your subclasses.
oh, sure. next you'll be giving away the 11 secret herbs and
spices
But CAN an abstract class be instantiated?
One of them is Vegeta
But I shouldn't be explaining this to you.. you should be
reading it from sites you find on Google.
No, it cannot.
Okay.
it's like a blueprint that subclasses are forced to follow.
it dictates that in order for a class to be subclassed, the
subcluss must include certain definitions in order to be
valid.
Anyone used Komodo Edit?
No, but I use KomodoKoffee(tm)
An abstract class could be a "Vehicle". The "Vehicle" is
telling the "Car" class: "If you extend me, you better provide a
method for starting your engine or else I'll go berserk on you and
fail"
Wow. I love examples. That made it a whole lot more clear,
thanks, kuja.
Those vehicles, so tempremental.
Hello everyone! I'm working on a server that someone else set
up in a really strange way ... and I can't find the php
interpreter. Any suggestions on how to find it? (I'm writing a
shell script in PHP, and I need to declare the path to the
interpreter.)
You're welcome.
Can abstract classes have absteact subclasses?
s/absteact/abstract
You can't find interpreter? As in CLI ?
Anyone know a channel that might have IIS support other than
#windows ?
Yes.
no
yes, the CLI. I think.
Well, then install CLI module :P
If you're using the PHP via Apache you don't really need the CLI
interface.
I know, it's a script I need to execute from the command line so
that I have the right permissions.
Depending on the OS and shell, you can find the path to the
interpreter in $_SERVER['_'] ... this seems to work under
bash.
did you installed PHP from packages?
I didn't install anything on this server.
It's someone else's.
Otherwise, you will probably have to locate the the binary
from $PATH or %PATH% (if on Windows)
talk to that someone, then
There's a good chance it doesn't have CLI interface. Many people
don't install it.
That someone no longer works at this company.
Then it's your server now, install whatever you want!
In all likelyhood, it's going to be /usr/local/bin/php or
/usr/bin/php
(if at all...)
Right. Is there an easy way to see if it's intstalled, and
was just put somewhere strange?
ls /usr/bin/php
I checked both of those locations, no luck.
By using your find command, sure.
You will also want to verify that it really is an executable
binary.
hello all
could someone tell me if there is a good HTML parser for
PHP?
But this is all basic shell stuff you shouldn't be asking in
##Php.
find / -name php
Ok. It's looking more and more like it's not installed.
Thanks for your help!
A good HTML parser won't parse broken HTML code, so it depends
on your definition of "good"
If your HTML isn't broken, or if you're using valid XHTML, you
should be using an XML parser.
I'm searching for a way to extract URLs from a HTML page
Well, a URL has nothing to do with HTML.
Maybe you should explain why you need an HTML parser.
I need to collect all URLs from a HTML page
and download all redirected pages
Well, use a regex that will extract URLs..
ok wtf that was just wrong
http://regexlib.com/Search.aspx?k=url
chick walks into my office ...nah i better not say on here
if you have a coworker that is pretty hot and she walks into
your office with ...indications that it is cold in the
building...how do you not look
Demonstrate some self control?
well i noticed but i didnt stare or anything
focus on the computer game you are playing?
lol
thanks
I'll try
but she may have noticed that i noticed
so its ...awkward
oh well
Be aware, none of those regexes are perfect.
It's hard to have a perfect regex.
i dunno you gotta have pretty good self control to not look at
all
I've played with this regular expression I found that appears
to provide me with what I require,
"a.+?href=(?link.+?)(?=[\s]).*?(?lnkText" however I keep getting
"Warning: preg_replace() [function.preg-replace]: Unknown modifier
'\'" message. I just don't see what the problem is
unfortunately...
do you know any code snippet using the URL regex?
You forgot to delimit your expression
I'm trying to extract the URL from an HTML anchor href tag
and then rawurlencode() then put it back into the string it was
taken from with the changes.
escape the regex in the php file
Learn how to use preg_match_all() --
php.net/preg-match-all
echo the regex before it is used and make sure it is as you want
it to be
Visit php.net/pcre and read the first paragraph
okay, reading it...
Although I don't think that regex does exactly what you want
it to, either
Oh really... damn it. It appeared to work on the tests I did,
http://regexlib.com/RETester.aspx?regexp_id=1701
thanks, I'll see
hi, can a constructor return a value ?
Well, try it. If it does what you want, ignore me.
It's not meaningful to return anything other than $this
oh... i'm stupid
or is there a way to do not create an object on failure and
return null ?
What do you mean "on failure"?
if for example something in the constructor does not work as
aspected
Your constructor should NEVER fail
uml hates me...help
um is a bitch
uml
its true
UML hates most of people
but i'm trying to learn it nonetheless
me2
my question is...you start with use cases ...in most
cases
!+typing english
##PHP does not allow aolbonics (or leetspeak) such as u for
you, r for are, ic for i see -- etc and typing like this will
result in you being silenced; furthermore, inability to adapt may
result in a ban.
when i am drilling down into activity or sequence diagrams,
is it ok to overlap use cases or use multiple use cases in one
activity or sequence diagram?
php -r 'var_dump(levenshtein("TML", "UML"));'
there is no real way around it if you want to manage bigger
projects, and sorry for the aolbonics
How big are we talking?
Because I have a PHP product that's ~ 500k SLOC and there's no UML
involved.
thanks for your help I'll keep trying to figure it out...
l8r
god damn it a meeting is pulling me from this conversation
brb
i started to get interested when i tried my hands on 3d
game/application stuff where i have toooo many functions
Please go easy on the profanity, guys
is there a way to get a non-multidimensional result in mysql
with php? I'm just trying to get an array of field names from mysql
with php
ok yay back
so when is it ok for diagrams to overlap?
is there a way to make a constructor of an object return null
and remove all used memory for that object ?
mysql doesn't return 'multidimensional' results.
caffinated, im probably using the wrong terminology, i can't
print_r the $result
one row is generally retrieved as a flat array.
it says resource id or something
http://php.net/mysql_fetch_assoc
I'm working with uploaded files in PHP, but some variants of UTF
aren't playing nicely. Is there a way to detect between them, or a
way to convert everything to plain UTF8 or iso88591?
mb_detect_encoding was as close as I could find, and it doesn't
really help
yo, what php accellerator do you recommend eaccellerator or
memcached? or something else? busy site
caffinated, yeah i dont really want just a row, like if the
query was SHOW COLUMNS FROM tablename; the result field named Field
has all the field names, how can i get an array just of the values
for $row['Field'] ?
.. which returns rows.
yeah so that would only give me one field at a time and id have
to do a foreach or something (which i can do if i have to)
look at the examples for the page i linked you to.
Hi, how can I check an image resource identifier to see if it's
still valid?
in what case do you think it would be invalid?
imagedelete
sorry I meant imagedestry
imagedestroy
i want to make something in php but don't know what to make. any
ideas/starting points/anything?
PHP is good for websites. Think of a concept for a website
first.
i
to be honest, i'm not too sure. i would unset() the resource
after destroy to make sure it's not available.
i've made little web games and other things that became
popular but can't think of anything else
In php, how would i validate a form so that it can only be letters
and numbers? Thanks. (have no idea how to write regex
expressions)
If possible, could you show me exactly how to do it in php so i
could return a message if it is not validated correctly?
thanks.
Right, but I have a case in which I'm not sure if it's been
destroyed yet, and I need to destroy it if it hasn't
been.
you could try is_resouce() on a resource which has been run
through imagedestroy() and see if it picks it up, but I really
don't know if that'll do it. you should run a test.
If you can't think of anything to make then why do you want
to make something?
sorry, is_resource()
That sounds like just what I was looking for. I'll give it a
try.
does anyone here know regex? can you please answer my
question?
Works perfectly. Thanks!
i need the function in php that will return false if the form
input contains anything but letters and numbers
There are lots of great websites on the internet about
regular expressions. They're worth taking the time to
learn.
http://us3.php.net/manual/en/function.ctype-alnum.php
What is the proper way of escaping the query SELECT * FROM
`table` WHERE `column` LIKE $var%.
There are several ways. I usually do
$mysqli-real_escape_string
Hey, anyone know any sqlite alternatives for php4?
I dont have access to install PECL extensions, so i cant use the
sqlite one
Ok I will try wiht that.
you should be quoting that as well: LIKE '$var%'
What do you mean "sqlite alternatives"?
There's MySQL, PgSQL, Oracle, Sybase, MSSQL,
Interbase/Firebird...
nothing is as much fun as training a spam filter for a language
you can't read
I mean something that saves database info in a flat file, and
doesnt require a connection
CSV or BDB?
can you guys test out my projects and stuff in php at http://speaker219.ath.cx:8080/
and try to find security holes and/or bugs?
and, ideally, uses an SQL-like syntax to select rows
Why can't you use sqlite again?
because i only have access to PHP4, and cant install PECL
extensions
Why can't you install PECL?
shared server
they don't provide you with a database server?
the idea of this script is that it wont require a database
server
uthe idea of this script is that it wont require a database
server/u
I can't think of anything I've ever heard of that fits your
requirements
then you probably want http://php.net/dba
so i should just whip up a CSV class for my needs?
Or bdb, as caffinated suggested
well, it's more than just bdb
dba is an abstraction, so it depends on the engine you use
They're far enough down the spectrum from me that they all
look alike
yeah it looks like i should just use my own CSV class, thanks
for the help!
It's all just a fuzzy bundle of ugly
heh, i'm looking for the appropriate word for 'racist where
database formats are concerned'
lol
flatfilist?
binary files of the world unite!
The southern most relational database providers will rise
again!
my php is not showing me any error messages, how do I turn
error messages on?
ask it nicely
set display_errors to ON and make sure error_reporting is set to
E_ALL
this can be done in your php.ini file, at runtime, in .htaccess
or in httpd.conf depending on what your provider
allows.
databasist?
thanks! that worked
RDBMSupremacist
there we go
RDBMS yoo premacist
I'm a bit lost as to what else I can do to get zip functions
working with 5.2.1. I have the libzzip-dev package installed, and I
included the --enable-zip on the end of the configure line. Still
not finding the ZipArchive classes
Any suggestions?
Debian?
zlib
ubuntu, close enough
apt-get build-dep php5
Tried that, it finds nothing
nothing?
0 upgraded, 0 newly installed, 0 to remove and 7 not
upgraded.
And you're satisified that it's none of those 7?
you have zlib installed?
Do you know by chance which package? I'm pretty sure I installed
a few I saw
not offhand, but let me check my ubuntu box for a sec
Thanks sir
And you installed zip 1.8.10 from PECL?
Skipping package "pecl/zip", already installed as version
1.8.10
Yup
does zip_close() exist?
hm, seems built in on this machine
Hm, yes, it does
I noticed I have a zip.so, but shouldn't there be a zip.ini file
for the configuration as well?
as does the zip extension, according to phpinfo()
Could someone kind please help me out with a Ajax script.
Have triet to solve it the whole day without success.
only if it came from a .deb
what error is the class throwing?
Class 'ZipAchive' not found
"help you find out with a Ajax script"?
uhh
I might really suck
Yes, I do
Took me copying/pasting to see I can't spell
Xandrew, ajax is my specialty! What do you need?
I've been chasing my tail on this for a good couple
hours
"yay!"
Thanks
I'll shut up now
I have this site www.barfly.se/paddit/add.php. I have put some
alerts in the code for troubleshooting purpus. the script is
located at www.barfly.se/paddit/test.js
When will I learn to get the error message FIRST?
rofl, i missed that too
The alert tells me that readystate is undefined.
about the same time you swear by MySQL for everything
caffinated:
Xandrew, when does the problem occur?
question, I've got a class in a separate file with say 2
functions, foo() and bar(), foo is defined first, can foo() use
bar() if this file is loaded on another page and foo() is called
after both have been defined?
readystate can be undefined in certain parts of the request
cycle, that's not unusual
order of definition is not significant
yay!
thank you
When I change the state in the dropdown menue I want the next
one to be populated but it isn't.
Good, I better be defined first
Although, if you're serious about JSON, use a library such as
extjs, prototype, or MochiKit
Xandrew, and how is that php?
foo, lol always
It makes no sense to roll your own
www.barfly.se/paddit/add.php
I tihnk the problem is your using "getElementByID", when it
should be "getElementById", notice the lowercase D
firebug is yelling at me when use the dropdown
www.getfirebug.com , You should get that and test in
firefox
yell back at it
I tried that, but it won the argument
tell it you ain't gonna take none of that jibba-jabba
if the default value of a variable in a function is defined
as NULL, if the variable is not set when the function is called,
will isset on that variable return true or false?
PHP is working, if you type
www.barfly.se/paddit/getSub.php?q=02&randInt=123 it will show
you a nice XML list of the option taggs that I want
one of the useful things firebug has is a debugging console,
so you dont need to use alerts, you can use
"console.log("AHHHHHH");"
did you try changing the "ID"s to "Id"?
aw, you mean you don't like to use alert('wtf?') inside a
long loop?
lol
i loooove that
i espeically love it on internet explorer.... damn
microsoft
yes, it's especially hot
hilton-hot
57.9mb of training data later, this filter is starting to get
crap right
TAKE THAT CHINESE SPAMMERS!
lol
Where exactly do you mean?
How about a central repository of spam e-mails
Your client would automatically remove your own e-mail address,
headers, etc. for privacy
that might be a concern if i were working with email
Yeah, just as an aside
Firebug complains that you are using "getElementByID" instead
of "getElementById", notice the last letter
getElementByID doesnt exist, getElementById does
Ok, I'll see if that will make it.
So you mark an e-mail as spam in your client, it goes to the
central database, which is more knowledgeable than any particular
client
You'll have a super spam db.
and i'm using a *cough* *cough* FLATFILE database to do
it
Wha?!
lol
yeah, 57.9mb sqlite3 database. average request time: 0.05
seconds
o.O
that includes the time it takes to run the lexer on the incoming
crap
as long as your flat file is wrapped in a well documented
API, it doesn't matter what the backend is
i'm not so worried about it, because it reads 1000x more than
it writes.
i don't see how read:write ratio impacts on the interface, do
explain
because sqlite locks the database on write
That did not change anything. How is it, should i ask for the
result or the option tags in the GetElementsByTagName?
the interface is to do with design, not implementation. locking
has nothing to do with function signatures, class names or return
codes from an interface
i need to host a large 22mb avi file. The problem is, when they
click on the link to that file, the browser attempts to play it in
the browser, when i really want them to download it. How can i
enforce this?
Xandrew, i suggest you stop trying to write this yourself,
and use an established library, like jQuery, it will make your job
alot easier
and this bothers me .. how? if there were problems to be had, it
would be because of the mechanics of the storage mechanism, not
it's interface.
ok i may be extremely confused is SOAP when you use wsdl, or
is SOAP when you post an xml request to a server and get a
response?
and changing the implementation without having to change all the
client code relies on your storage backends having the same
interface, doesn't it?
i'd call it wsdl and xml-http-request _
jQuery has plugins to allow what you are trying to do,
Xandrew
SOAP is a message format
stop making 100 names for the same thing
what i was talking about had nothing to do with the API
interface, so i'm not sure why you're even on about
it,.
its not ajax!
(the I stands for interface)
Ok, I'll have a look at that. But what does it mean that the
readystate is undefined? I thougt it should be a value
1-4
Ajax Spray and Wipe?
AJAX has become the general name for any site that uses
XMLHttpRequest
yes...spray and wipe
the point was that you can change the backend as much as you
like, if you have a consistant API to hide it behind
which had nothing to do with what i was talking about. at
all.
TehSausage, do you have any idea how to force the client to
download the file as oppose to attempt to play it in some plugin...
Or do you know a service that will allow them to download it
through a java applet or something?
sure it does.
no, it doesn't.
and i'm using a *cough* *cough* FLATFILE database to do
it
as long as your flat file is wrapped in a well documented API,
it doesn't matter what the backend is
Oh! Duh! Xandrew, it should be readyState, not 'readystate', i
should have looked at that closer
yes
header('Content-Disposition: attachment;
filename="'.$file.'"');
header("Content-Type: $type");
Xandrew, http.readyState gives me '4' in firebug, so thats what
your looking for
Ah, that might be something...
header might have to be application/octet-stream to get it to
download, don't remember
ok then. whatever.
sorry, this is more of a general question. Its not really
related to PHP. Although is the php method by changing the http
headers one of the few ways to do it?
yeah
are you sure?!
very sure
thanks!
i have the following line to stop text files trying to
download if ($type != 'text/plain') so it must work well
did Apache.exe change to httpd.exe in 2.2?
I believe so, TehSausage
I've just remembered. I mcould just zip it up, then they would
have to download it
well according to the wiki i am making a soap request when i
post an xml file to a script that responds with an xml file,
correcT?
no wonder my friend couldnt find "Apache.exe" +_+
application/force-download
when i upload a file in the $_FILES array error is set to 4,
where can i find out what that means?
what is that? a header?
yeah Content-Type
then you don't get to send a content-type
dont drop it!
sorry joined the conv late
Thanks for your help. Will look at JQuery to avoid theese
things in the future.
No problem! Any problems with jQuery, im your guy, I love
it!
Seventoes:what is that firebug that you are using?
its an extension for firefox, makes web development a hell of a
lot easier
http://www.getfirebug.com
there's a firebug light too, which is a script you put on the page,
to emulate the basic features of firebug in other browsers
Nice, then I have two new tools to dive in to.
Im trying to build a file upload page that doesn't wait for
the file to complete uploading before turning a response to the
browser. Anyone know a good way of doing this?
without javascript? not possible
with javascript
http://bluga.net/projects/uploadProgressMeter/
if you compiled your own php you could probably add that
feature in
hi
mysql_field_len is returning me 11 when i expected it to return 0,
and the table that i query onle has 1 line
does anyone have any experience using flash file uploads? Pros
and cons?
you might be looking for mysql_num_rows, XKpe
hum i think so :p
Related Topic:
If i setcookie to expire in the past the browser should kill the cookie well my script cant find the cookie anymore