array_map() on an in_array() maybe
Well that means (and I realize this might not be obvious),
you've tried to use too much memoty
Pollita - thanks that works
memory, too
thank you
Hey, so I need a little help...
details
Pollita:
i already increased to 16 and restarted apache but
nothing
Those who say so, quite often do
What would be the best
hosting way to detect blocks of text on a webpage?
lol
Romes, I think in_array() accepts arrays for both
parameters
It would seem that you did one or both of those steps
incorrectly
It would seem that you did one or both of those steps
incorrectly --- why ?
strpos($page, $blockoftext)
i increased the memory to 16
but nothig
um right....
Because that error is saying it's still 8
hey, anyone any idea why on the third call, this page replaces
the item at the end of the array rather than create a new element ?
http://pastebin.com/d5bdd663d
Yes, because you did one or both of those steps
incorrectly.
but what do I do to make it find $blockoftext
like if I wanted to find the largest block of text on a
website
That's what strpos() is for
let me check
Oh, this is some arbitrary block of text then?
Not a specific one?
right
like a string of words/sentences longer than 200 words
something like that
I suppose you could use preg_match_all() and walk the
resulting matches looking for the longest one
I would need a regex for that?
try ((\w+)\s+){200,}
sorry very much a newb
/(\w+\s+){200,}/
Allowed memory size of 8388608 bytes exhausted after update
the max memory to 100
I am going to set $text="Source of a website"
how did u update it
on the php.ini
max_execution_time = 100 ; Maximum execution time of each script,
in seconds
max_input_time = 100 ; Maximum amount of time each script may
spend parsing request data
memory_limit = 100M ; Maximum amount of memory a script may consume
(8MB)
then do $paragraph=preg_match_all(/(\w+\s+){200,}/,$text)
?
its that ok ?
yeah that should do it - did u bounce ur apache?
i have memory_limit = 256M
are you sure you changed the right php.ini file?
what is the best way to return the value of an object? $order_id
= (string)$xml-ORDER_ID; is what i have right now
Do you use Windows?
!+u
i'm not sure how simplexml works
hey abstrakt
yes
hi, liggy
the right php.ini
hm
yes i use windows
hello there. I've run into an interesting problem: I have
html host
that I need to stay intact, but I wish to safeguard against any and
all XSS attacks. Any suggestions?
Damn. No davey
clean $_POST Ch1ppy?
You around?
so ORDER_ID is a variable of $xml object, if i want to return
the value doing $xml-ORDER_ID it returns the object not the value,
how can i return value?
what's an XSS attack?
clean e.g. html special chars strip "javascript" etc.
clean it how?
http://en.wikipedia.org/wiki/XSS
thanks :-)
np
But html special chars will get rid of the html as well
preg_replace/ str_replace then Ch1ppy
or use bbcode etc.
hm, yeah
okay, thanks
basic validation of course to, is_numeric etc.
yeah
is_numeric should never be used for validation
anyone?
i was just providing an example, caffinated, i wouldnt use it
personally
nobody should use it for validation, at all, unless they are
prepared to deal with the plethora of valid input
formats.
I think phat is dead
generally I just escape it, throw it in mysql
or whatnot, and if there's a problem all that happens is you get
nothing back
yep. Figures.
what is phat?
grumble
Seen Davey recently?
not since yesteerday darlin
When you see him online, tell him that phat is dead.
k
- is this valid?
i doubt it
me 2
how would that work anyway, i dont believe you can nest php in
another php
webhosting or why would you want to
Can anyone tell me what I am doing wrong with this code?
http://pastebin.com/d6c5e2cc4
I am trying to detect any block of text greater than 200
words
single quotes for string literals for a start of
that regex looks a little weird
im not sure that's what you want
hey can someone help me out im having a brain fart.. how can
you set the php warning level on the fly?
hmm k
Extreme newb here
who's the newb?
emence error_reporting()
me
thats right.. thanks man
emence, you entered at the wrong point...jbp64=newb
Do you know, what fopen returns?
ahh k
I thought the source of the page
fopen returns a resource link number
err nm
Read the manuals
file_get_contents, JBP64
ah
and im having a little blank on how you'd match a 200 word
block
so I have to fopen then file_get_contents?
no, JBP64
is the PHP manual on php.net?
read php.net's entry on the function
k sorry
No. docs.python.org
probably something greedy with boundrys...
thx
heh
what's the official release date of php6?
srry
LDZ420 just type into your fav browser
www.php.net/whatyouliketosearch and it would work
*boundaries , sigh
In the timeframe of 50 years
hmm ok
if only they'd added namespaces to 5 sigh
now I just have to get the regex working
it would be so much easier to defend php
with namespaces
and threads and proper memory management,
etc.
how can I use fopen to get the header info from a website
like you would with curl?
and without the needless $ signs
well Wolfpaws, something would need to be left for 6
like?
i'd like to get rid of the function keyword too
threads, and a consistent API
well, PHP and consistacy aren't known to fit together
alas
they should create something .Net-ty put all the functions in
classes in namespaces
import PHP:tring etc.
$x = new Math(); $x-log(100, 10); etc.
That's fugly
Never mind. Phat is up again
php vs python for a web app ?
welllll.... i'd *prefer* string $x = 'hello world';
$x.toUpper(); etc.
I'd choose whatever fits the need
in most cases
which is best ?
I'd choose whatever fits the need
hmmmmm
"best" is conditional statement
hmmmm
elegant OO php 5
host i think would fit most quite well
i wonder which wil have better execution times
fiddling with Ruby much?
a little... it scares me
so... dynamic !
Ummm... Try it?
or "!!"
hmmmm
whitespace ought not to have any effect on the program
Whitespace is only for blocks
whats the best way to prevent a form being submitted from a
email hosting
bot?
CAPTCHA?
...still, Wolfpaws... i find ; soothing
I know people who can't survive without {}
well i prefer mainly {}, sometimes i think there a bit
much
captcha must use the verification image?
i wouldnt enclose a namespace in {} for example
yeah
how can I use curl to get a page's header info?
with audio assist sometimes
Well, Python has namespace.constructor.method
you can download free classes that well gen captcha stuff for
you
any other way of preventing spam in forms, that wouldn't tick
off government employees?
some advanced form of AI?
http://us.php.net/manual/en/function.curl-setopt.php
CURLOPT_HEADER set to true, CURLOPT_NOBODY set to true
webmasttroy, thx
php-bot: test
Yes, you're online, tml.
as are you, my friend
What happend?
Dunno, simpli dropped off the face of the earth for a
while
I thought that pat got rebooted or something
*phat
Nope
and it's Ptah
ah, oki
what i dont like is the my/our keywords of perl
It just... Died... Maybe some internal network problems?
Whatever it was, it took every simpli-based host offline
ThinkMedical, why?
Weird
they just seem childish, i know my opinion is itself a little
childish
id prefer a symbol
Maybe some ISP hiccup? But Davey should get a mail about
that, anyways
*shrug* I haven't gotten anything about my machines,
either
ThinkMedical, oh, a variable prefix as in ruby?
I think in a weird way, it compares to MySpace and Facebook. one
is totally open are requires you to lock it down while the other is
locked down and require you to open it
yes something like that simon
ThinkMedical, I find those more confusing.
hey acushla
perhaps, simon...
webmasttroy?
Perl makes it easy to be sloppy. you have to jump through some
hoops to make php
host sloppy
as far as variable scope goes
ThinkMedical, but it's probably one of those things taste alone
decides on.
oh, good addendum... about to enter into a state of
shock
webmasttroy, I can't spot the difference?
no, not really
indeed... and i prefer symbol-like syntax for small repetative
tasks, and keywords for larger and less frequent operations
webmasttroy, oh, you mean you can't call variables outside a
function scope without declaring 'global'?
in Perl, by default, you can use variables anywhere unless
you've specifically told it not to let you do that
You could. But that's automagically fugly
logik-bomb, don't you get an error message?
phpclasses.org sucks
?! simon
you cant put php code in as a key...
need braces around $row_Creative['Pic_ID']
logik-bomb: You mean besides broken while statement?
ThinkMedical, you can't?
what are you trying to do? logik-bomb
err
wtf
sorry wrong person simon... but no
$foo[$bar] = "then what's this?"
!tell logik-bomb about error reporting
i was more talking about things like $foo[echo $bar]
Wolfpaws, oh you can? I thought you couldn't. I like TCL for
its namespaces, always assumed all other languages behaved like
it.
ThinkMedical, seeing as echo doesn't really return anything useful,
maybe that's a bad example.
phpclasses.org has a bad design, they are about to improve
the design, jstarcher
I don't know TCL, so I can't judge
tcl? why would you *want* to know?
TCL is an awesome language.
ThinkMedical, god I hope so. WAAAAY to many ads, registration is
a PITA, and the overall usability is just terrible
well, I have this ( http://img410.imageshack.us/img410/320/untitledbg3.jpg
) And I want to post the voted radiobuttons value to another page.
Thats what I'm trying to do :X
true jstarcher, they are adding features to allow premium users
to customise the layout and the non-premium users will use a voted
template i think
you want to access the radio button value logik-bomb?
then use $_POST['field_name']
input name="username"... would be at $_POST['username']
im currently looking for something to occupy me for a couple of
months, before i start my next degree
ThinkMedical, the rubik's cube will probably keep you excited
for at least 36 hours. ;-)
Cube is overrated
paid project wise, simon... medium/small or large as part of a
team
a php shell type program would be useful.. i might write one in
c++
then again there is the play button on zend studio
you could write one in PHP
What's wrong with php -a?
It's not a repl
Not that I think a PHP repl would be all that useful
php-shell already exists
outside of php -a with readline support
Scary
im on windows Wolfpaws
how is that not useful?
why would you say that? I use it all the time. it works
well.
though i ought to be on ubuntu, i like that more i think...
but all my hardware and software just ... works...
handles parse errors too, even though the shell itself is
written in userland.
I'm submitting a form via curl and when i do it manually it
takes me to a page that says success, if i do it with curl and
FOLLOW_LOCATION,1 it still doesn't take me to the page even though
it is successfull... using live headers manually there is a 302,
but curl isn't getting it somehow...
You're on Windows.... So? What's the problem, then?
readline not avail. in windows Wolfpaws
I'm not a huge fan of repl's, since you end up writing the
code twice.
meh you don't necessarily have to be writing the code
twice
http://pear.php.net/package/PHP_Shell/
anyone?
what if you just wanted to test something right quick?
Then "php -r" suffices
on your access-restricted localhost
TML suffices... but sucks
same with -a...
cyth, he doesn't suck that much.
any reason why im not getting the page returned properly with
curl?
...the play button on an ide would be better, simon
*shrug* I find it no less "sucky" than any repl I've ever
used.
engaged, connection issues
ThinkMedical, if you've got an IDE, sure.
no, i dont think so
ruby irb kicks ass TML
i use Zend Studio which does everyting i want really,
simon
that's what I want for php
follow the link i posted for TML
that basicly does what irb does
ThinkMedical, you must be a very content person then.
i just prefer the commandline for quick things, rather than
loading up a full _java_ program
not really.. im just annoyed by ever more petty things
.3 alpha!
needs more cowbell
I disagree. irb isn't significantly better than "php -r"
i'll give it a shot though
it is.
Hmm...PHP_Shell fails here
TML, OMFG shoot yoruself now
ThinkMedical, well, if you're not content, you must be
unfulfilled?
php -r sucks ass when you start getting into multiline
statements with mixed quotes.
"multiline statements with mixed quotes" for "a quick
test"?
occasionally it's nice to be able to set a variable once, and
run multiple tests on it - i do this with regex a lot.
logically yes, simon
http://david.acz.org/phpa/
and I prefer to do this without having to worry about
escaping an extra layer because of the operating system parameter
quoting.
also line by line output is nice like in irb. works well for
light debugging.
"phpa uses the readline module "...sigh
All I can say is that the way I program doesn't fit the repl
model at all. Everything I type into a repl I'm going to have to
end up copying-and-pasting into a text editor anyway, so why not
just open your text editor in the first place?
Most of the repl implemenations these days use readline
because the changes made to something like a regex are
usually minimal. you paste it once, and then use the up arrow to
get the line for an incremental change.
ubecause the changes made to something like a regex are usually
minimal. you paste it once, and then use the up arrow to get the
line for an incremental change./u
What do you have against readline?
And is there even a useful alternative?
nothing... just that im on windows at the moment, TML
hello
So install cygwin
i need help with a regexp, the string is a repeated "crap
(/path/to/filename.aaa) crap (/path/to/another/filename.bbb) ...",
i want to grab all instances of /path/......filename.{3} and assign
to an array
it's also useful if i need to open a stream, and send it
arbitrary things to see what the responses are like immediately.
this is not a programming tool in the same sense you're thinking.
it's a fast way for me to put in and immediately execute snippits
which are generally only 1 - 3 lines in length.
the play button in zend 'll do
I can't think of a time I've written code in 1-3 line amounts
other than IRC.
how do you think i verify problems users have here?
Well, I use php -r, but clearly you use PHP_Shell
right, because i'd have to go over and modify the stuff i'm
grabbing in some cases to fit parameter quoting. it's a
hassle.
preg_match with #(/path[/\w+]+)# should work zoomzoom
* #(/path[/\w+/]+)#
http://pastebin.ca/625532
what could be wrong with that?
its always giving me error on line
6*
let me verify
why do you have a variable in double quotes, Sashi?
it might not work zoomzoom, just a very rough guess
what $_GET?
perhaps even put (int) trim($_GET['id'])
yes... "$variable" is pointless, Sashi
and im sure = is deprecated
o?
nah
Short tags (example three) are only available when they are
enabled via the short_open_tag php.ini configuration file
directive, or if php was configured with the --enable-short-tags
option.
creating an extra variable wouldnt kill you either, $id =
(int) trim($_GET['id']); (asssuming it may need trimed)...
$iniArray[$id]['name'] etc. Sashi
bcreating an extra variable wouldnt kill you either, $id = (int)
trim($_GET['id']); (asssuming it may need trimed)...
$iniArray[$id]['name'] etc. Sashi/b
yes but they were up for removal irzyxel in php6
is prefered and the rest deprecated - though i could be
wrong
I don't see how fixing the quotes would be any more or less
annoying than stripping the php/?
it works without the double quotes lol
1 - 3 lines of code is what i use it for. it's usually easy
enough to omit that from the initial copy/paste - if i'm copying
and pasting.
yes, you'd need to put {$_GET['id']['name']
* "{$_GET['id']['name']}
any larger than that, and it's better off in a file.
Hmm.. I uncommented mod_php.conf include line in
/etc/apache/httpd.conf and restarted apache, but when I try to run
a php file, it just shows the code?
Well, I still don't see it as a significant improvement over
"php -r", but *shrug*
in any event, i don't see anything wrong with php -r. I just
don't think it saves as much time in the end.
and if we're talking "proper" elegant practices Sashi, you
ought to only have display logic with html, parse_ini_file() should
not be mixed in... esp not db access expressions(!)
i've already given you two examples, but ok.
Good evening all.
thanks ThinkMedical
TML, How's things going, haven't seen you in a while, well I
havent been in #php in a while ;o).
slightly better, sure. significantly better, no.
i am always available for ranting Sashi
lol
are you trying to convince me, or yourself?
caffinated:
it's a point of preference, i certainly won't berate you if you
choose to use the CLI as is.
Sorry, I thought you were the one who told me to "shoot
myself now"...looking back, it was cyth
one more ThinkMedical
how would i use explode() to parse the value based on the
seperator.
The "one character mental hash" for IRC nicks strikes
again!
or is it even possible
you can do that too, but it requires a lot of tedious steps. in
the end, it's more enjoyable not to.
lol
nice
what do you mean Sashi? a string such as 'xxx:yyy:zzz' when
exploded on : would give an array of [0]=xxx, [1]=yyy,
[2]=zzz
can someone have a look at this, am getting an undefined user
and email on lines 40 and 51
http://sial.org/pbot/26389
well i wanna write a token-parsing code
PHP already does it.
http://sausage.no-ip.org:88/paste/dpp-rpn
you might be able to get something from that
you can access ini files oop-wise $iniFile-database-name; for
ini file of: database.name = db
first of all preg_* functions are preffered bru802, as they are
faster and more fully featured
your problem could be that $_POST['email'] should be
{$_POST['email']}
and that you havent escaped the " in the html
i use html loosly... font(!) in this day-and-age... sigh
oh hang on... you dont need to escape the " in the html.. you
just havent closed the " at the bottom
does PHP 5.0.4 come with a module for Apache 2.2?
people should get IDEs that highlight these basic
mistakes
it doesn't appear to, how can i get one?
5.04? by upgrading
ThinkMedical, people should get good editors isntead of
IDEs
people should just read the damn errors and think about
it
TehSausage, thanks a lot, genius but the site i'm dealing with
breaks on greater than 5.0.4 (don't ask me why, i don't
know)
php tells you what is wrong, every time.
Which are the popular Free PHP IDES used?
TehSausage, i.e. i need a specific version
how would i explode a file?
the problem is that people don't understand the errors.
!tell cstextiles about editors
certain strings in a file..
cstextiles, that's off topic here as it starts flame
wars
thats exactly why webhosts are still runnning php4
$string = file_get_contents($file) ... explode('sep', $string);
ish Sashi
abstrakt:Ok Got that I thik #phpc is a better option
because noone has time to upgrade their scripts
which line is the " not closed?
$body .= "http:
cstextiles, actually i think you doing your own research is a
better option, that info tidbit from PHP bot has *more* than enough
suggestions to keep you busy for a long time and you're just as
likely to start a flamewar with that question in #phpc as anywhere
else
ThinkMedical, what if its two strings?
so, anyone actually have a useful suggestion?
or you could just learn your PHP errors :P
do i do explode('foo','foo',$string)?
how/where can i get a module for Apache 2.2 for PHP 5.0.4
?
i can't count how many times i've had to show someone what a
parse error is, and how it's solved.
by god why
abstrakt even
...no Sashi, what do you want to do?
umm sperate two strings?
in a file
then explode on the seperator
seperate two strings in a file, then display it
irzyxel, A) project I'm working on breaks on PHP greater than
5.0.4 so i require that specific version B) the only apache build i
can find for windows that has SSL built into it is 2.2.4 so i've
got that specific version
?
irzyxel, don't ask me why apachelounge doesn't have an
apache-ssl build for 2.0 but they don't
$strings = explode('sep', $fileString); echo
$strings[0].$strings[1]; etc. Sashi
the correct return type of explode() is an array.. see
php.net/explode
sep = the strings?
or filestring?
is their any cherrypoy channel ?
sep = the seperator, Sashi.... take the string, 'xxx:yyy'
exploding where sep = : would give you an array of $a[0] = xxx and
[1] = yyy
irzyxel sweat jesus
http://pastebin.ca/625554
im a var_dump kinda guy usually, but recently ive been
converted
Am looking at the links given by php-bot
i want to.. explode strings in a file tho
ischerry template written in C ?
or in python ?
sound on nick ?
file_get_contents returns the contents of a file as a
string
I am still getting the same errors http://sial.org/pbot/26390 after
adding echo "/body/html";
{$_POST['email']}{
irzyxel no sound
sigh my irc is screwing up
brb
you havent closed the "
argh
and you need braces around that post var,
{$_POST['email']}
i still dont get it lolz
can you show me the file you are wanting to explode,
Sashi?
i bet its his tax return file right?
AMIRITE
ThinkMedical, http://pastebin.ca/625558
i want to explode the tags
as well.. there might be more than two tags..
you have $body .= "http: then no other " untill font
color="
is there a way to limit the return length with strstr?
hi, i wrote a script ... big whoop i know, however i have a
politcal side i've never had to really deal with. I want this to be
professional, i put a LOT of time in keeping everything idiot
proof, clean, cut and well commented. I also wanted to supply a
small document that discusses it in a little more detail how it
works, like a linux software's man page. My two questoins are this:
what is this document commonly called? manual page? and
tw
explode on "=" then trim and ltrim, done
you do know php all ready has an ini parser Sashi?
ThinkMedical tried that however it said unexpected '{'
?
because you havent closed the " brad
* bru802
no but i want to get the tags in the file then seperate
them
what value do you ultimatley want access to, Sashi?
~/values
the tags??
$body .= "http: ... you need to close the "
"linux, chat, test" you mean?
yea
ThinkMedical sorry it's updated on my local file
explode on "\n" and parse each element of the array untill
you get a match for 'tags' then str_replace out 'tags =' and
explode what is left on ','
what error do you get now, bru802?
i see no syntax errors
the same undefined index email and username on lines 39 and
50
using a pastebin with linenumbers/highlighter would be helpful
also, brad
ok $tagparse = explode(',', $ini_array[$_GET['id']]['tags']);
works
;P
ok so you dont have any value in the email input fileld,
bru802
uok so you dont have any value in the email input fileld,
bru802/u
is that all you wanted, Sashi?
yea lol
bueller? bueller? bueller? anyone? anyone?
now the only problem..
is that i want to display it non-arraied.. if thats even a
word
no it isnt?
well how would i display it not as an array
several ways... loop through the array and echo each element,
Sashi
$num = count($tagparse); for($i = 0; $i $num; $i++} { echo
$tagparse[$i]; }
or you could implode, or use the loop to build a string then
echo.. or if you know how many tags there will be simply use the
idex
*index
you can also use foreach()
foreach() is for pansies
on a numerically index array that isnt very efficiant,
tim177
*efficient
yes, you're right
well im hardly going to be wrong, am i?
and considering i count once outside the loop you can see i
consider efficiency by instinct
somebody ask me a question
nevermind i'm going to sleep.
how is sense found? is it intentionally? how does
intentionality related to functionalism... can there be a language
of thought, rolfen?
*relate
:-o
it's one of those wonders of the universe
what comes first, thought or language
man when it comes to a web language
http://pastebin.ca/625569 how does
an if() work to hide the last ,?
PHP is holding it down
python is a mess for web stuff
and if there was 4.. it would change dynamically.. no matter how
many tags there are
thought
lol slacker, where did that come from?
i think language, because language is nothing but a form of
interaction, and there can be no thought withough
interaction.
i have a pleasant surprise for you then, foreach is alot
faster than for with 100,000 iterations
for took 0.075 seconds foreach took 0.019
if($i != $num) { echo ', '; } Sashi
each accessing their value one time
hmmm, TehSausage, how are you timing?
hello can anyone help me figure out why this line of code
isn't working right
i'll paste my code
Sashi you want to hide the last "," ?
Romes, working with python with web stuff is crazy for one
theres no web stuff in the standard lib like PHp and theres like
500 frameworks and each one becomes its own language inside of a
languge
http://sausage.no-ip.org:88/paste/for-foreach
it is showing "Unknown" on the screen instead of the created
date
foreach is also 6x faster than while(each())
lol, just seemed like a random thing to say :P
if ($i != $num-1)
echo ',';
ah well TehSausage, you cant use microtime like that, doesnt
preserve correctly etc.
now i see why PHP is so much more popular
LookAgain79, it shows unknown because empty($row['created'])
returns true
see the comments @ php.net on microtime, TehSausage
i'm sure if i did 10,000,000 iterations with time() it would
work the same
out of memory :P
okay bye all have a nice day
ha!
BLOT LOL
yo
ok so how would i go about fixing that issue then
laol there is a social channel for ##php
figure out the logic
condition ? value if condition is true : value if condition is
false
so it would need to be an if statement
what comments am i looking for anyway?
that is a shorthand if statement basically
ok you lost me there lol
hi, all
http://en.wikipedia.org/wiki/%3F:
http://www.hudzilla.org/phpbook/read.php/3_12_4
i'm doing my own correct timing now, TehSausage
what comments am i looking for anyway?
and why was microtime(true) not accurate?
I have a problem about php generate file's owner in apache . in
normal, I know php generate a file , the file's owner is the
apache's user, but I found I create a file on dreamhost, the file's
owner is my account? who know how to do that?
thanks
who can give me a hand?
Hmm.. I uncommented mod_php.conf include line in
/etc/apache/httpd.conf and restarted apache, but when I try to run
a php file, it just shows the code?
hmmmm, TehSausage it seems than under php5 foreach runs...
faster
tests ive done under 4 showed the opposite, im sure
heh, what did you use to time it then?
a class ive written myself
since microtime(true) isnt valid in php4 either
i've never had php4 and i used explode on microtime one =\
never had php4?!
did i even read the manual back then XD
ive been using php for about 4.5 years now
maybe more
well 5 was a bigger number then :P
yes, 4.5 is about right
i've been using it maybe 2 years
im shocked that it's faster under 5
another reason for the damn webhosts to upgrade already
:P
how do sessions work ?
by defualt php stores session info in files, slacker403
huh?
though you can define your own session handling functions to
use
so who handles the session stuff php ?
what is the unique identifier with a session ?
the id that identifies which info belongs to which person,
slacker403
ikm saying
the fist site uses " for string literals ... /me
grumbles
can sessions be stored even if cookies are disabled ?
echo "literal" . $var; annoys me, esp
actualy "literal".$var; isnt much slower than 'literal'.$var;
:P
but "literal $var" is slower than 'literl'.$var
yes i know
i still don't see why though
im not talking about speed this time... rather purpose and
elegance
using the language as it was intended
They can, and there is a php setting to do so. You might
consider studying up on sessions; there are many tutorials and
texts which cover the topic in depth.
ThinkMedical - I've never understood people who use double
quotes for things that don't need it.
i still end up using " alot of useless things
because a string "..." needs parsed for $, and raw code is
automatically parsed for $ teds
* TehSausage
'literal' wont be parsed for $, TehSausage
Not that checking for interpolation within double quoted is
really that time consuming.
I just do it out of proper style.
indeed pqscvkrfet
Actually, it's also just cleaner. In a wrapping or long line,
if the developer sees single quotes, s/he knows immediately that
it's a literal.
the people developing ZendFramework set proper use of "/' as
a manditory coding style, pqscvkrfet
ah heres one, i use double quotes in strings, and single
quotes for filenames, array keys, page names
yes ive seen that TehSausage... bizzare
i have no i dea but thats the way i do it..
i also do if (statement)(no space){ then
}(space)else[if](space){
weeeird.
That is just plain inconsistent :p
probably because you see rational coders using '...' for keys
and other coders using "" for literals
im saying what connects your browser to a php session ?
i tried to break out of it once, it didnt work D:
slacker403 - cookie.
i ended up with even worse looking code
pqscvkrfet, what if cookies are diabled ?
A cookie containing the session ID.
^
Ugh, then php adds sessid to every url.
If cookies are disabled by the browser then PHP attempts to
transparently pass around the session ID in a GET variable.
So 'foo' doesn't do interpolation?
I kinda foigured that ws the case.
kuja - I don't think that's quite accurate.
so if cookies wont wor k
theres a php sid at the endo f ech url ?
PHP doesn't know if the browser accepts the cookie or not. It
won't just "guess" and start adding to the URLs.
If the appropriate php.ini directive is set, yes you can tell
PHP to do that.
It's one setting or the other, not a fallback.
kuja, so really if i don't want a pohp sid at the end of each
url and cookies are disabled then im fucked right ?
yes
up the ass.
unless your user is magical
lol
ok
Can't you assume cookies?
well i will just use a cookie then
while() is faster than for()
cookies are the best anyways
Users not permitting cookies cannot seriously expect to use the
internet.
There's nothing wrong with assuming the user has cookies
enabled.
http://cosminb.blogspot.com/2004/09/performance-tweaking-for-vs-while-vs.html
really? that's sad, i shall go time it D:
i think theyve been tweaking other loops because previously
they were much slower than for... and have ended up outdoing for
entirely... which is weird
not that big of a gap as foreach has over them
Users must make it easier for us because... we're lazy?
while = 0.19 for = 0.20
...
0.20 TehSausage, to 2sf
benching a for loop and a while loop sounds stupid.
Uh no, because cookies are damn well an essential
element.
0.21 and 0.20
oh yeah, 1 000 000 iterations
For what? mostly to carry state.
. is in the wrong place too
Try banking without them. Try checking your e-mail. Try
shopping. try anything.
That is the entire purpose of cookies.... so yes.
hmm... nothing.. seems.... to work?!
There are bound to be a few major sites that work without
cookies, but they care too much.
And you can carry state in ways other than cookies, but it's
more difficult. Thus, users must make it easier for us because...
we're lazy.
cookies are safer
If done right, they're fine.
even non-graphical browsers support cookies
fedya can you take a look at this and tell me if im on the
right line
http://paste2.org/p/4931
no, LookAgain79
what are you trying to do?
That's definitely not a valid line of PHP. :|
im trying to get the created date to show
1.
$row['created'] if (empty($row['created'])){"Unknown";} else{
date('M j Y',$row['created']);}
oops, sorry
when a team registers it will show the date they registered
their team
I read in a contribution of php that enumerating of a very
big array with while() + current() + next(), etc. was faster than
using a for or a foreach loop. Unfortunately I don't find the page
again.
$row['created'] = empty($row['created']) ? "Unknown" : date('M j
Y',$row['created']);
I think that's what you're going for
please don't use empty()
(ps. I only left the double quotes around Unknown because I
didn't notice it :p)
$date = (empty($row['created'])) ? 'Unknown' : date('M j
Y',$row['created']); echo $date;
hah
well it's nowhere near as slow as while(each())
how would i write an if statement saying that.. one of the
input boxes is left blank then it will not submit it into the
db.
Uh, you're using a temp variable for no reason though :p
I've never ever used 'empty' in any of my own code lol.
http://sausage.no-ip.org/~Sausage/benchmark/each_loop
if(isset($_POST[field']) { //submit } else { //tell user it was
blank etc. } soalf1
wow, pqscvkrfet?
??
its faster and cleaner than == '' etc.
no
Why not just if (! $foo);
and provides better checks
simple boolean comparison
that outputs an excception
first use isset()
missing a )
than check if the value was empty (with $value == '')
Because $foo might not be set.
This is particularly the case with values obtained by POST and
GET, when the browser isn't required to set these
fields.
if I want to share session data from say www.company.co.nz to
store.company.co.nz do i at the top of my php files add
ini_set("session.cookie_domain", ".company.co.nz"); ?
Ah, I have a POST/GET wrapper that deals with everything. Uses
settype and ==.
Oh and isset of course
hmm... well i always have a request class that cleans
$_REQUEST on construct too... but stilll... empty() is the best
choice speed and clarity wise
ive seen, if($x != null && $x != '') before
ive also seen ltrim(rtrim($x));...
Hahah, I've never done any of those.
hum well its npt showing the date at all now
meh
I probably wouldn't use a wrapper.
but at least its not showing "unknown" anymore
I'd probably use a validator.
kuja - mine is both.
Wrapper == validator for me
you use a validator after you have cleaned the array kuja
$validator-isValid($request-username)
is there a way to create some sort of template using variable
names? I have a m x n array and what goes in the array needs to be
easily configurable. so can i do something so that $template = "a
href=$page$name/a" but make it so that when i set $arr[whatever] =
$template, $page and $name are evaluated and go into the array?
(does what i'm trying to do make any sense?)
Erm... the validator validates the cleanliness.
no.. a validator checks the type/structure
to clean a var is to escape chars / remove tags etc.
etc.
A validator checks the validity of a form value based on a
set of validity rules the developer provides.
My calls are $var = CGI::param('varname',
'post|get|request|cookie',
'string|integer|boolean|array[type]*=type', 'default');
i have an auto-validator in my registration scripts that
forces afew values to be there (user/pass/email) but thats the only
manual validation i have i guess
yes... and a cleaner cleans... Kud
whats the best way to to multi languages ?
*kuja
ThinkMedical - Oh, I suppose my definition of validator is not
the one I'm thinking of
have a whole different static site ?
us.dd.com fr.dd.com etc or use a language file ?
My validation is all manual, but all done correctlu.
You don't need to do any escaping and whatnot before
validation...
The validator is meant to validate input as received.
what if it needs trimed, kuja?
or perhaps submitted to a db?
i see your point... but not all fields need validated
the site is going to be maintained by someone who will break the
code if he has to change $arr[$whatever] = "a href=$link$name/a";
to $arr[$whatever] = "$name"; for instance, so i'd really like to
have that in a separate config file...
Validate the contents, and THEN escape it. Obviously it doesn't
matter what the content is, it only matters to the DB how it goes
in.
any other idea there Think
guh... hard coded nightmare rewrite
cause the date isn't show but at least "Unknown" is gone
now
If somebody passes a string like 'foo' (with the quotes), it
doesn't matter to the validator that was expecting to receive any
string, but it matters to SQL that you need to escape that string.
Obviously this has nothing to do with the validator. (Unless you
were expecting the user to provide an escaped string which is
retarded)
SQL escaping should NOT be a problem in any project. You
should always be using a wrapper that automatically does that for
you.
Whether PDO or (like me), your own library with placeholder
replacing.
i think there may be a fundemental difference in the type of
programming we subscribe to, i assume you are
procedural?
I am OO.
about my language problem ?
holy crap, i forgot to escape backslashes
Anyone who's throwing mysql_real_escape_string()'s around in
regular code scares me.
Needs to be used a single time in a class, and that's it
but thats only a problem if someone manages to get a \ in
their deflated data right before a '
aren't there some good db libraries out there already?
is my question unclear or am i just being ignored?
$validator-validateByRegex('field_name', '/[^z]+/i'); // this
field will eventually be inserted into the MySQL database, and the
validator is saying that the field can be anything that doesn't
contain a 'z' character. What if it contained quotes? It wouldn't
make sense to escape the string before validating... it doesn't
make a difference. In this particular case (and in almost every
case) the result will be the same.
ryan-g2 - I don't trust other people's libraries, DB or
otherwise lol.
I've seen FAR too much broken, HORRIBLYYYY written code to be
capable of trusting someone else's code with something that
critical.
too bad you have to rewrite the same basic functions again
and again
Only once.
I use the same mysql and cgi classes in all my projects.
If you escaped the field by a mysql_real_escape_string(), for
example... that would just break the validator that was expecting
to handle the user input directly... why would you clean it before
the validator gets its hands on the original input? That doesn't
make sense.
Plus, I prefer using parsing of placeholders using
sprintf-able strings, rather than question marks for all
values.
i see what you mean now, kuja.. it depends how the request info
is being used... for some purposes it does need validated
sigh
validated in a strict way at least
That's how "form validation" should always work.
I like textareas of user input. Validation? What validation,
just shove it in the db, and output it escaped later
Anything else is half-assed.
My last job stored a lot of things in the db already html
escaped.
Pissed me off.
many people, frameworks etc. use a request class ... this
provides clean request data it doesnt know how to validate
a request class can be cheaper, and often is, depending on how
it is used
I guess I am not many people. I'm talking about form
validation.
I'm talking about Validator implementations.
im talking about handling request data
Well, it seems YOU jumped into the wrong discussion.
well there is an overlap... because the way you handle
request data defines how you validate
Like I was saying, a validator implementation is something
that allows you to validate form data by a set of predefined or
developer-defined rules.
yes...
I validate the input type through a request class, and then
validate the input itself manually.
Validating by regex, validaging by field length, validating by
field numericality, validating by field casing, validating by
anything else
you clean through a request class pqscvkrfet?
for SQL use prepared statements - no validation needed
Only the type and format itself.
If I want an array with string keys and integer values, my request
class ensures I get that.
Then I validate the actual _contents_ of the data manually.
I've written classes in the past that validate based on predefined
sets and whatnot, but for some reason abandoned that method quite a
long time ago.
$validator-validateFormatOf('name', '%s %s');
$validator-validateNumericalityOf('age'); $validator-validate(); if
($validator-hasErrors()) { foreach ($validator-errors as $error)
echo "$error\n"; }
yees?
That's what a validator is.
and that is roughly how i use it
I just regex and parse most things manually.
The difference between if (! validate($var, '%d')) {} and if
(preg_match('/\D/', $var)) {} doesn't harm me much.
Of course, I wouldn't use a global function validate :p
no, pqscvkrfet, you would have a validator base class and
decorate it to your needs
readng about those validator classes gave me an idea
Like I said, I don't use validator classes anymore
or perhaps a generic class may be more suitable, dending on
the no.rules
If I wrote my own validator implementation, I'd probably have it
initialize to work on an array.
make it out put input names like int_postcode email_email
string_firstname
$validator = new Validator($_GET);
TehSausage - ??
ah well i am sperating cleaning functions such as trim from
validating functions such as empty() preg_match etc.
then the class can auto validate by the prefixes of the
values
yes that is what i do, TehSausage, occasionally
Well, the more rules you have, the more you can define "what
is clean" and "what isn't clean"
For example, when you're telling the validator to validate the
numericality of a field, you can just strip all whitespace and
check for is_numeric() (because it doesn't matter if there's
whitespace)
The validator can do a lot of cleaning for you based on the
ruleset.
bThe validator can do a lot of cleaning for you based on the
ruleset./b
It's so VB-like.
frmThis, btnThat, txtName
tinystring_username?
value in an array and remove the tinystring_ part on validation,
so you woul just access as $request-username
i use validators - for numbers, strings (with or without
escaping, ...), dates, times, ... that return a value or an
instance of my Error classes - all work with single values
only
is there a way to check if an image is a broken link or
not?
and if it is, to output a different image instead?
does ini_set("session.cookie_domain", ".company.co.nz"); apply
to all subdomains eg site1.company.co.nz and
site2.company.co.nz?
could you help me figure out what wmfd_ could be as a prefix
to a legacy apps variables? ... I havent a clue.....
Delphinus - yes.
windows media file dir?
any idea why its clearing the session pqscvkrfet? there is just
nothing in the array on 2nd domain
No clue lumgwada.
session_set_cookie_params may be of use Delphinus
Delphinus - are you sure you can set session ini settings
during runtime?
I really don't know, just wondering.
if i view the cookie info on both domains they both have same
host and value
I know what this guy was on about http://thc.org/root/phun/unmaintain.html
Delphinus - yes, that "same host" should be
.company.co.nz.
correct
confirmed that is the case
".company.co.nz" simply means any subdomain can read those
cookies, not that the cookie will be set with the specific
subdomain.
If you want that, just don't set the host at all.
yeah for some reason the 2nd subdomain has nothing in the
$_session
which RSS parser would you guys recommend to parse invalid RSS
feeds?
Heh lumgwada, I'm going to skim that document later to see
how much I disagree with
does it apply across non-SSL and SSL as well?
*malformed RSS feeds
Delphinus - yes.
As long as you don't have the secure flag set (through set-cookie),
you're good.
Shit, I really need to go. I've gotta be somewhere in 15
minutes.
thanks for help pqscvkrfet
No prob, good luck with the rest.
http://www.pastebin.ca/625628
Warning: socket_getpeername():
is it possible to post the whole error message?
oh sorry it's already in the code
is theer Down on paste bin
you need to open a connection first
socket_getpeername(): unable to retrieve peer name [107]:
Transport endpoint is not connected in /home/dropclient.php on line
12
yes i am conected on webChat.
sorry I can't help you. you may look at google
any body can help me ?
socket_getpeername(): unable to retrieve peer name [107]:
Transport endpoint is not connected in /home/dropclient.php on line
12
http://www.pastebin.ca/625628
Warning: socket_getpeername():
do you use socket_create?
and socket_connect()?
yes
chk my http://www.pastebin.ca/625628
I don't see that in your code
hi,
does anyone know how could I call a externan application from
php?
i'm trying to use the move_uploaded_file function, but it's
returning false and i don't understand why. i used chmod 777 on the
tmp folder and the new folder. i checked out php.net's man pages,
but the only issue addressed is file permissions. here it is:
http://rafb.net/p/vVBzwy43.html
hi wfq
maybe with exec?
tim177 from the page too? as http://myearthdream.com/#root/tellAFriend
you want to fetch the response am i right?
yes
for IM the page lauchs you IM handle
system, exec, popen, proc_open
can you understand what this page really ask for? http://myearthdream.com/#root/tellAFriend
you can use file_get_contents
I have used system many times
can i do OCR in php?
fairly straight forward, no funky captcha-like bullshit
just text in an image
PokeyIndustries check $memorease exists... / echo it
there is a class on phpclasses.org which can do OCR i think
yeah, i saw it. it's slow.
and poorly programmed.
yes some of those classes are
yes it's possible you can use the gd library
is there no professionally made library?
how?
there is a profesionally made library...
i saw an example to crack the rapidshare captchas with the gd
lb
but like most professional stuff, it costs money
yes
tim177; now that you mention rapidshare, do you know how they
manage the downloads?
the thing is that i don't want to break captchas, my text is
plain
so reading it should be waay easier
it outputs "./test/s0001.jpg"
you mean a pdf reader?
*like a pdf rader
*reader
i guess, except my source is a png
what do you mean exactly by managing downloads?
downloading?
how they manage to limit the download speed and such, and
still be able to browse the website
ah
you mean, you're planning to create an own filehoster with
throtteling
it's actually done already :|
Fushuing = the Best. 1000 KB/s
but i'm just still camping with that one bug
i have a good php example to throttle the speed
1000KB/s kind of exceeds the server capabilities at the
moment
that don't kill the rest of the site?
no it reads out the data via fopen()
this one does too :|
nice
but the problem is that the browser is unable to visit the
website on the same domain as the download is being processed to
the user
i use megashare.com ;p
but somehow the user will still be able to visit the site on
different subdomains
I had the same problem with a website of mine. I think it's
because of the webserver configuration
do you use apache?
yes
i recommend using lighttpd for filehosters
:|
there must be a way to fix this in Apache
i spent too much time configuring it :|
http://www.pastebin.ca/625653
the code does also support resuming
Hi, i want to download php_curl.dll (only this file) of php
5.1.1; where i can get it? (i remember there is one php website
thats holds compiled dll)
pecl.php.net?
err... why no curl on pecl ?
line 113 is a bad idea
but... i beleive not pecl.php.net, since its only contain
compiled dll...
i beleive its something like php4win.php.net or
something...
it's not all my code. but you're right. it would have been
better, if set_time_limit was declared at the beginning of the
file. would be much faster
aha... found it... pecl4win.php.net
hi, please, does anyone know what this page is asking me about
my friend's IM. I mean, it is asking for what king of IM my friend
use (MSN, gaim, etc...) and afte what it is supposed to do?
guys how do i place in the results of the query into an a
href??
like this one? echo $record['idno'];
what type of query, and where do you want the link to point
to?
printf('a href="http://foods.com/item.php?id=%s"',
$row-item_id );
or you could do it with some kind of templating
f00li5h, is it documented somewhere in the manual?
can you give me a link
php.net/sprintf contains all the formats
f00li5h, http://pastebin.ca/625675 -- here
is i want to achieve
it just produces some html, you'd still have to write
item.php, ahd have it check $_GET[item_id] to get back the
resultset
anyone know how to add a tagging system?
php, it shows everything about php shows up
you have to add a table to the database to store the tags, and
some pages to display all the items that have tags
is there any other way other than sql?
Sashi, xml
sql is the best way
thats what i had it mind the first place
it doesn't matter where you store the data, but you have to
store it somewhere
you could store it in a var_exported array on disk if you wanted
to
why don't you answer me anymore
tim177, cuz your freaking slow
lol
SQL is the best way. There are others. All are varyingly
evil.
and you arent helping
f00li5h, where http://pastebin.ca/625675 -- this
is my form action
why?
having a link to another page, with the id in it, is the best
way to have a record list that links to a specific record
why would you send me the same link twice? pastebin is slow, and
evil horrid nasty pastebin
lol
ok ill try to check that one out and see what i can do
thanks mate
slow in what way? answering speedness?
yes, i believe he means slow, as in speed
okay
f00li5h, how would you tag the files?
or w/e lol
That's because you're not the only person I'm chatting
to!
Store the tags in sql, have a sql query to select the
tags
i don't know,
article.php?add_tag=foods&article_id=33
O.o?
you just stick a little form on the page with "type tags here
[_____________] [add]"
yes..?
then you do insert into item_tags(item, tag) values
($_GET[article_id], split(' ', $_GET[add_tags]))
being sure to use paramaterised queries, and to de-taint and clean
up all the data
but when you search a tag..
or click a tag
is there a way to set a value in php on one page and then
retrieve it multiple pages later?
how would i have all the files that have that tag
or file name
select item from item_tags where tag =
$_GET[show_me_tag]
Set a cookie or use a session.
you'd have to join that query to the list of items to get the
titles for the links
ahh this is complicated
lol
that's the same solution I proposed him but he's always
looking for alternatives which are easier to realize. I spent one
hour with him and he asks here for another better
solution?
Does anyone here to smarty?
no, it is not complicated
sure, bundles of people do
yes
Yes.
tim177, spent 20mins actually
i use a modified version of HSTemplate
other was waiting for you to reply
i cannot recommend smarty
it's not very fast
im trying to alter something thats already been created. t's
in php and smarty. i know neither . i need to set a hidden value on
one page and then call it later on. is it easier oing it in smarty
or php? any help i can get would be great as i know nothing about
this and am kind of in a rush )
what sort of metrics do you have to go with that statement?
pay a php programmer to do the work for you
If it's a hidden form element that will be submitted, you can
push it into a session and get it back out later.
with what statement?
i have a php programmer.
it's a waste of your time, that will lead to a faulty repair
to do anything else
then get him to do it
he's too expensive to use all the time.
ok, you pay him $50 to do the job, or you spend 15 hours of
your own time to do it ...
false economy, bigtime
i understand the logic in this. what i want is very, very
easy to do. i just don't know syntax and the such..
so it's so easy that you don't know how to do it?
f00lish. you're wasting my time here. either you can tell me
how to get/set a value or not.
http://us.php.net/manual/en/ref.session.php
i can.
The last few comments I've told you how to do it. You have the
tools. If you want me to do it for you fully, I charge by the hour.
:P
no, he doesn't what to pay anyone, he's made that very
clear
f00li5h,
semprix,
printf doesnt output something
ggrrr,,,
it does output things
ut i w for dev. thats not the
how do you call printf
otherwise it'd be called discard_output_f
You can lead a horse to water. You can't make it drink.
:P
you can lead a horse to water, but you can't make him ejoy
the view?
i pay or development all the time. but it kills me to pay for
this. I can spend an hour figuring it out and then i
rmember.
get the developer in, and buy a notepad
f00li5h, the printf statement i should include it on the while
right?
while ($record= $q-next()) {
NO PASTE IN CHANNEL, KPLS
i already give you an advice how to do it. why don't you
answer me?
its a single liner
he's too buisy trolling
f00lish. stfu. seriously. you're nothing but a waste of my
time and your flooding the chat.
that line has no meaning without the rest of the code, it is
natural to assume you were going to paste more
here's the deal, on 3, drop it.
3
lol
What are the prevailing feelings about Singletons here?
they have their place, just like every other design pattern,
but make sure you only use them when they actually solve the
problem
f00li5h, printf('%s', $record['idno']); -- this will out the
entry on idno
yes, that will print that column, assuming that's what it's
called
but if i state a a href statement on it it doesnt show
anything
printf('a href=index.php?xml_id=employee_rec=%s',
$record['idno']);
and some link text
printf('a href="foods.php?id=%s"%s/a', $record-id, $record-title
); # or similar
printf('a href="index.php?xml_id=employee_rec=%s"Some link text
here/a', $record['idno']);
got it guys
thanks amte
mate*
i'm trying to use the move_uploaded_file function, but it's
returning false and i don't understand why. i used chmod 777 (using
the command line) on the tmp folder and the new folder. i checked
out php.net's man pages, but the only issues addressed are file
permissions and upload size. here it is: http://rafb.net/p/vVBzwy43.html
check $_FILES to see if the upload failed or not
hi, can I ask here about cakephp?
you are unlikely to get useful answers
$_FILES['error'] outputs "0"
have you got error_reporting(E_ALL)?
err, $_FILES['pics']['error'] that is
f00li5h, but is it prohibited to ask about frameworks?
more or less
but the rules on that tend to be relaxed when there are many people
that know the framework
active
oh, i see
E_ALL in php.ini is off
you speak madness.
well so I'll ask only one questio, is there anybody that can
help me with cakePHP in the private?
i beleve there is a cakephp channel, i'm not sure if it's #cake
or #cakephp
or perhpas with more hashes...
f00li5h, none is answering there
oops, it actually is turned on!
ok ok, let's have it
but don't make it too cakey
f00li5h, I think none here knows about that framework, do
you?
say you got $_SESSION['foo'] = "bar"...and unserialize it...what
does that do to it?
no, i don't
i'd expect unserialize to fail
what it actually does is another story
...
if file permissions isn't a problem (they're set to 777) and
$_FILES says there are no errors, would do you imagine the problem
could be?
hey guys sorry quick question, i have a text field i am
retrieving from a mysql db, i am trying to place the story on the
page so it creates a new line every say 30 words, instead it is
just displaying the entire field as one line, is there some way I
can fix this with a php function ?
i'd imagine that the user your webserver is running as doesn't
have permisson to write to the place you're movoing the file to.
try moving the file to /tmp (which should be writable to
everyone).
check that you don't have safemode on, check that your webserver
is running as the user you think it is, check your umask (as it
changes the permissions secretly)
if you've got root, su to the webserver user, and go to the
directory and try adding a file there
but first, try using full paths
that's most likely the thing causing it
bingo! thank you so much!
You could probably do it with a regexp, but my regexp-fu is
weak.
do not add random tags to your article text, let the
container it's in do that
container with a set width, and when i echo the array value,
the browser is seeing it as one line
what i am trying to do, is VERY similar to the front page of
digg (at least the layout of the stories aspect), in that I need
the summary to automatically break once it reaches a certain
point
pastebin code, sample output, and what you want it to be
instead, try http://paste.css-standards.org/
that pastebin has oodles of css/html viewing&validation
goodness
thank you. im checking it out right now
you want to display a set number of words?
container box)
Related Topic:
Well you can choose to not authorize online but the auth code to put back in has to come from adobe yet one only