it depends what you're using it for
nevermind, it's not necessary
simple example
swiergot, not really bugs, but lack of features
print(strip_tags('bla bla bla: "bugh ugh ugh/b"'));
right
gives: bla bla bla: "
well the best web
hosting way to do that
is http://htmlpurifier.org/
oops wait
ok, the closing tag is now ok, the result is unchanged
TehSausage, typecast.
strip_tags will remove the tags, but not the content within
them.
that's what i need, but look what i get
uhh.. yeah, okay
thanks for that random word
Sorry, I thought you wanted ugh ugh ugh stripped. Not sure
then, it works for me.
what's your php
version?
5.2.3.
TehSausage, not really, JavaBoy If you want to change the
type from string to float, you'll have to tell PHP.
There is not really a function (besides set_type()).
hm 5.2.0 here, maybe it has a bug
nope, php will convert it for maths operators
(3 . "something") + 4 = 7 with no error
if you're getting it prepared for database, or for basic integer
santizing, then you'd manually cast it
yeah, PHP is dynamically typed. That's what some people like
about it. It's something I hate actually
i can't program very well without it
hehe. Sorry for the mixup btw, I was answering the wrong
question, I was actually answering theSmiler's question.. Aaarghh..
need more sleep
XD
also getting slightly annoyed at having 2 constructor
functions
yeah, it's nearmost impossible to do decent overloading.
well most of my programs end up php5 web hosting only, no
matter how hard i try
TehSausage, was a retarded thing in php
hosting 4 that no one decided __construct was a good
idea
you can throw any type of parameter and then figure out what
to do with it.
manual type hinting and overloading = fail
it depends on how complicated the method is
having to check the type of every argument can lead to
impossible to maintain methods
there is no php.ini file in php configuration path
how can i get an example of it.. i compiled it from source
/usr/local/lib
http://sausage.no-ip.org:88/php.ini
steal mine and change it, rofl
if you can find php.ini-dist anywhere...
hey peeps im wanting to put a forum into my current site, i want
to keep the sites look and theme so i will be wanting to put the
sites template around the phpBB forum. currently the template is in
HTML. Should i change it to php so i dont have to have php webhosting
running in html files. Im a little bit stuck.
If anyone has a guide to installing phpbb
hosting into an existing site please let me know i will be
most grateful
you need to go and look up how to write themes for
phpBB
perhaps #phpbb can help
ahh cheers
will go there and ask
byee
SYSTEM on windows should have access to every folder
right?
``SYSTEM'' what?
or maybe apache just doesnt go that far into windows to find
a users real home directory
SYSTEM is like root
except nearly half of windows runs as it by default XD
it's not an actual privilege in the same sense as root is a
privilege
.. what? XD
Is there a string function will cut everything of the string
after the position given?
substr()
jeez, SYSTEM just got access denied +_+
what does this error from mysql_connect() mean? namely the 4
part: "Can't connect to mysql hosting server
on 'hostname' (4)"
a /clear
it's not an actual privilege in the same sense as root is a
privilege
once again.. what? XD
sigh
hey MikeSeth
hay hay
waawaamilk-bed()
man this is crazy
I need a joint
http://rafb.net/p/LqVekM22.html
Does anyone know how I can trap the segmentation fault?
I've tried using strace, but it doesn't help me much
Strace output from non working system - http://rafb.net/p/UEKoBy51.html
Strace output from working system - http://rafb.net/p/dy4nvB30.html
code is exactly the same
code - http://rafb.net/p/T8ioDk16.html
can you use gpg on both machines (without php being
involved)?
f00li5h, yes, forgot to mention that on both systems the
scripts run fine as apache user from cli
but not from browser on the non working system
i've checked permissions etc, but they are exactly the same as the
working system - even rebuild and reinstalled
apache/php/pgp
try making a shell script that runs as cgi, see if that can
use gpg
f00li5h, let me try that - brb
hey, a bit of a hard question here. I have a MySQL table with
UTF8 Unicode collation and I can input and read Japanese from
phpMyAdmin. However, I cannot read it from normal php, I get
??
f00li5h, yes, works fine
on both hosts?
with the exact same messages?
f00li5h, yes
ok, so diff the phpinfo() and var_export ($_ENV)'s from each
host
hi
can i change something that was already defined?
f00li5h, let me check
you mean a constant?
yes
oddly enough, you can't change constants
the define() thing
do you understand why its called "constant" ?
not even undef?
you can not change them
can i undefine them?
they are constant, they remain constant
constant, no changing
well, tht just sucks.
use a varaible if you want to change it
Constants may not be redefined or undefined once they have been
set
whats the point of changeable constant..?
variables are changable constants
in which way they are constants?
that was the point
ah
i went a little too far to semantics
s/to/with/
define('$foo', 'moose'); if( defined('$foo') ) echo "foo is a
constant and has the value [" . $foo . "]";
db_num_rows($value) ? db_result($value)
it's the ternary operator, it's like an if
can ? be used without :
if so that would return db_result if db_num_rows == true
it can't
hmm
http://no.php.net/manual/en/language.operators.php
so
php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary
PHP's behaviour when using more than one ternary operator within
a single statement is non-obvious
i noticed, my brain fizzled reading that example :P
I get it
The expression (expr1) ? (expr2) : (expr3) evaluates to expr2 if
expr1 evaluates to TRUE, and expr3 if expr1 evaluates to
FALSE.
fun
it's basically a advanced version of if else
or more complex if you like
actually, it's simpler
the code get's cleaner
php's version of ?: isn't all that useful
is it possibly to encrypt the contents of a file before
storing it?
what sort of fie?
text
how strong do you need to encrypt it
it's an expression (so you cant use it in references), it's
precidence is wierd, so you can't nest it
I don't know, really
whats in the file
why do you need to encrypt it?
if it needs encrypting probably shouldnt be in a file
I know I'm not going to be able to do it binarily with raw php,
so I'm looking for a function
where should O put it themn?
0] TehSausage whats in the
and why does it have to be encrypted
text is in the file
do you really need to encrypt it though?
-_- i mean what does the text represent
because the shared
host key is going to need to be available within the PHP
script
I want it to be encrypted so that if it leaks, noone can read
it
any encryption can be broken
Alanius, there's a compilation of php scripts ...
but php does have binary support, just have to work to use
it
what do you mean by " not going to be able to do it binarily
with raw php"?
the way I would attempt with C
can't remember the name but i know it exists, i will use it
...
Alanius, C is probably a better idea tbh
you mean xor'ing a character at a time?
if you think the file could "be leaked" then stop and fix
whatever exploits you think people are hitting you with
not via cgi ...
the file won't be leaked if you don't let it
just make sure permissions are set correctly
or xorring then shifting
or run Apache as your uid rather than nobody
http://www.php.documentation.givah.fr/?p=function.gnupg-encrypt.html
thanks swordon
if ("x"^"y")"z" doesnt work, it's not that hard to use
functions to change strings to character arrays
you're welcome ...
php does have an operator for both those things, ^ and
enjoy ...
you don't need to change strings to arrays... they work as
arrays anyway
yeah, but then you have to call ord(chr())
or the other way around XD
$foo = "bar baz"; $foo[4] = '-';
you'd still have to call ord and chr if you wanted to get the ascii
codes
arent you supposed to use braces in that situation
instead of brackets
no, thats deprecated
leaving it the same as arrays is irritating. you know right
awat wgat $foo['key1']['key2']{7} means, with [7] instead it just
looks like another dimension
away, what*
i'm sure C programmer never had a problem
what's the php command to change line breaks into
i've forgotten what it is called
nl2br
thanks
br /\n ?
might need to do it yourself then
nl2br
2 slow...
TehSausage, you mean nl2br will only replace "\n" by 'br /' instead
of 'br /'."\n" ...?
no, it will add linebreaks and keep newlines
excellent ....
i used to do it manualy ...
thx...
excuse this stupid question but the owner of a file can move it
in any directory he owns ...?
sounds logical
multiusers, add comments, follow bugs ...
we don't do that here, ask the internet
of course ... I just asked as there are devloppers on this
chanel Thanks anyway
make a bountysource clone
anyone knows what mean the "undefined offset" i get ...?
no such key in array
thnaks .. when I said "give" I mean a link to such a
soft
but it refers to the twos lasts parameters of substr ...
-s
SSL encrypted emails any one?
does substr care if the offsets are bigger than the string?
that might be it
What changes?
Mace[work], me, please ...
Mace[work]: you'd need each mail server along the delivery
path to support it, for one
TehSausage, right ...
no i wouldn't..
what a guru ...
SSL encryption takes place on the server and is decrypted at
it's destination..
Mace[work]: and delivered as a MIME part the rest of the
time?
well yeah i guess but that's what I'm asking, what changes in
them
'cause that's not SSL, since Secure Socket Layer has nothing
to do with it
http://www.thawte.com/secure-email/personal-email-certificates/index.html
That has nothing to do with SSL
lol
hiho
So, how to do it then?
I need to encrypt an email and send it, it contains sensitive
information
?
gpg
pretty sure theres a gpg extension for php
guys, i desesperatly try to move a file from a dir to another
and it still don't work, what can i test ...?
Is there a site that lists what needs to be changed for php4
apps to be compatible with php5?
many thanks
is safe mode on?
twos dirs are 777 chmoded and whole directories are apache owned
...
...
what's that ...?
rrrrhha ...
sounds like something i should know about from a long time
...
doesn't gpg hate when your keys are readable to non-you
users?
greetings
f00li5h, proqbably, but i don't have the time to try scripts i
talked about ...
just a project ...
but thx anyway, i'll see it ...
dioxide, safe mode is off ...
can you at least move it manually?
all unix based encryption software ignores keys that are (or
are in directories that are) publically writable
dioxide, yes, i can ..;
ssh does
f00bar2k, good to know ...
ie, $contents = file_get_contents(source_file);
file_put_contents(dest_file, $contents);
unlink(source_file);
lol@too many damn people in here
tab completion is useless when you end up typing half the name to
get the right one
it does
I have string with "de-HTMLized" code ("font-weight:
bold;">Quick</span>
span style="font-weight: bold;"Quick/span
htmlentitiesdecode or something
does exist eny function in PHP?
no, it isn't
html_entity_decode ?
obviously its not an ideal solution, but if that works, i cant
think of a reason why you cant move it normally.
?
that solves anything like this?
that looks closer
XD
dioxide, i try it and i come back ...
thx..
sure
i always remember that, because it's a prime example of php's
"naming conventions"
rofl
it works ... (
what works?
moving the file manually
if thats working, i dont know why the move function wont
dioxide, what do you use to move a file ..?
the only time i move files is when theyre fresh uploads, then
i use move_uploaded_file() or whatever its called
arf ...
How can I format a unix time stamp?
date
but i suggest you wrap it all in a class, and have methods for
formatting/comparison
cool ok so basically date("D M Y H:j", "1184066635");
not as a string, as an int
thanks
don't do dates that way though
why not?
because using dates as strings (or any primitive) makes them
very hard to use and manipulate
I have a tight deadline once it is running I will re do my
site with classes and restructure it
it just has to work for now
don't lie to me, you won't.
I use dates like that in customer code's
Mace[work]: as strings?
haha I'm not lieing mate, the deal is this. I have to turn over
a working site within the last 2 months lol and it's over run, once
its working and processesing some currancy. I can then redo my code
in classes. Development time is longer for me when I write classes
so I am saving that for a revision and then I can expand
again
Pritty much. strtoupper($login).date('dm').'...' that sort of
thing.
I also find it easy to see how it will work building like this,
primitive and then sort it
you can't use objects in the same places, you will have to
re-write every date operation you do, if you change from primitives
to objects
i'll be rewriting every php script
don't worry its the only way to do it the way i'm doing
it
Sounds icky, it is
but thats my headache
I disagree with you. ints are a primitive, and dates stored as
ints are not hard to work with at all
there is never exactly one way
yeh I dont find it hard.. just a bit long winded
sometimes
that's insane ...
No there is never one way
why can my scripts can't move a file ...
What do you mean?
because your permissions are wrong
my way that ive done things is first of all built a working
model, now redoing the asthetic looks and adding some
functionality, next step making it all classes and
optimizing
BTW, for anyone who has been having trouble with the hashphp
pastebin, it has been fixed
great
took long enough :x
ints work better than strings, i'll give you that
TML, f00li5h ...
Mace[work]: Took about a minute and a half once someone actually
*reported* it to me.
what?
twos dirs are 777 chmoded and whole directories are apache owned
...
dioxide, safe mode is off ...
3
are your scripts running as the user you think they're running
as?
ie, $contents = file_get_contents(source_file);
file_put_contents(dest_file, $contents);
unlink(source_file);
f00li5h, when it creates files, they are apache owned
...
duh.
wwhat ...?
!tell MikeSeth about meow
- evilmeow@....com
pwnd
What?
so, any idea ...?
What uid and gid does apache run as?
What OS/distro are you on?
TML, gentoo...
phpinfo() will provide the answer to the former
I dont know. People are saying random meaningless things, I
had a feeling that I need to join in
camel-steaks?
duh what?
TML, what do i search in a phpinfo() ...?
Function spl_autoload_call() hasn't defined the class it was
called for in Record.php on line 535?
"User/Group"
shouldnt matter, safemode is off and the directories are mode
777
sorry...
"shouldn't" isn't the same as "doesn't"
apache(81)/81
It means that you used SPL to attempt class autoloading, but
the file the autoloader found doesn't contain the class definition
the autoloader expected
are you able to get a shell as apache?
Do you have SELinux or any other "capability" based security
loaded/running?
f00li5h, i guess it will be /us/nologin ...
TML, 0x90...
http://rafb.net/p/DDeMOi87.html
hi, I have this little logis script that I have as an include.
Problem is, when I refresh the page it loggs me out! any
Ideas?
get a shell as apache, and try to do what your script does,
by hand
then you'll know if it's permission based, (the clue is the
"permission denied" message)
s/if//
why would php seg fault trying to odbc_connect
php 5.1.2
recompile the module
that'll fix it for sure.
which module?
HMM I WONDER
f00lish i'll try but i've already done what dioxide said, put
source file contents into a var, put the var in a file in the
destination directory and unlink the old file ...
and it works ...
I'm not using apache
...?
what else ...?
so, it fails when you move, but not when you copy?
and you have permission to remove...
that's it ...
the error occures when trying to unserialize an object the
was serialize with an older php version. any idea?
i have ....
apache has ...
If I'm not using apache, what modules are there to
recompile?
bom dia a todos
How would I find the difference between two dates in days with
php?
I've search google but cant get a straight answer
convert to unix timestamp
its not an apache module, its a php module.
and use - operator
it is a unix time stamp
can I have an example?
$difference = $end - $start;
find seconds in a day, divide and compare
how do I turn that into days?
echo $difference % ( 60 * 60 * 24 )
modulus
not mod, divide
day is 86400 seconds
do the math
http://rafb.net/p/DDeMOi87.html
Can anyone help me with my session variables? I have this login
script. when I refresh the page it logs me out.
not to good at math! lol
it's just division, divide by (60*60*24) and take the (int)
of the result
or floor()
ah you can (int) at the same place, doesnt matter
so basically $difference = $now - $then; then $difference % (
60 * 60 * 24 );
?
no, not $difference % ( 60 * 60 * 24 )
use / not %
so... $difference = $now - $then; then $difference / ( 60 *
60 * 24 );
that would do it.
httpd: Syntax error on line 983 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/httpd/modules/libphp5.so into server:
/usr/lib/httpd/modules/libphp5.so: undefined symbol: _efree
blah
but it's not obvious what that does, when you first look at
it
i'm confused to hell just trying to get through it!
right. it'd be easier to use known working code that someone
else had done, wouldn't it?
Hey there, when I try to install php 5.2.1, using the
following configure command (./configure
--with-config-file-path=/usr/local/lib --with-apxs2 --with-mysql
--with-zip --with-zlib --with-imap --with-kerberos --with-imap-ssl)
I get the following error when starting apache: Starting httpd:
httpd: Syntax error on line 983 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/httpd/modules/libphp5.so into server:
/usr/lib/httpd/modules/libphp5.so: un
Anyone have any ideas why that would happen?
$diff = (int) (($now-$then) / 86400); heheh.
for real
so, go and find a library to do it for you
I don't know where I would look or how to do that, if I did I
would of been doing that a long time ago!
i can think of even more confusing ways, if you want.
unfortunately that's not the goal here
'lo folks
is that date class yours, something standard, or just
somethin you found on the web
ok well save those but help me with this, I have set a
maximum of 3 days that a file can stay in the app now i have the
difference in days how can I say you have x amount of days
left?
Yes. Load the class definition before you try to
deserialize.
pear have one, but if i suggest it, i'll be trolled against (
http://pear.php.net/date
)
pears cool I just wish I had that dependency script
i'm sure there's one for $your_os
windows xp
(windows webserver)--
anyone using php adodb library with php5 ?
linux webserver
i'm writing the code on a windows machine
something like: abs($now-$then) / 86400
if (($origdate + (3 * 86400)) = $now) {its too old} else {its
still ok}
then install the pear packages on the webserver (they need to
be there, they don't need to be on your machine)
cool how could I say you have X amount of days left?
Ok but I need the dependency script to do that
you'll be able to get the script for your linux box
easily
how?
what distro?
don't know just a package I hire
what?
$daysLeft = floor((($origdate + (3*86400)) - $now) / 86400); or
something along those lines
or
BTW, an easy way to add/subtract days: strtotime("+3 days",
time());
well, you could break it further down into x days and y
hours, its up ti you
Easier to maintain perhaps than "time()+(86400*3)"
ah yeh good point
$expire = strtotime("+3 days", $origtime);
your compile is broken. Start over from a fresh tree.
you really didn't try that hard... http://pear.php.net/package/PEAR/
# it's linked to from the front page of pear.php.net
im an idiot
remembering that helps you to listen to what others say
hi
meow
definatly
httpd: Syntax error on line 983 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/httpd/modules/libphp5.so into server:
/usr/lib/httpd/modules/libphp5.so: undefined symbol: _efree
[FAILED]
is it possible to foreach through two arrays
simultaneous?
my bad
What do you mean?
not really, you can do it with a for( $i ... ) type loop
easily enough
so, what can i do for my rename story of the day
...?
i mean, get in the foreach in a variable the nth element of
array_A and also array_B
what happens if the arrays are different lengths?
yes, but i should keep the syntax as simple as possible?
foreach($array_A as $key=$value) { $array_B[$key],
$array_A[$key] }
f00li5h, it's guaranteed that they're not
i don't believe you.
f00li5h,
ok
TML, thx
Please dial the attitude back a notch
oh, you can use key and reset
there's no attitude here, it's just that your assumptions are
rarely true, and even less often are they documented
Find a more pleasant way to express your disagreement.
no.
now now boys
how about venting your frustrations on my little problem?
doesn't work, there seems to be something wrong with the
serialized string
while ( list( $first, $second ) = Array( current(
$first_array), current( $second_array) ) { stuff; next(
$first_array); next($second_array); }
the list won't flatten, and it won't become false. damn
What exactly is your problem?
hi
php.net/key current() and next(). you can use these for
iterating over as many arrays as you like at a time
f00li5h, that's niccccce :-D
thx
Do you have access to the string in its serialized form?
yes
can you pastebin it? if you need to scrub it first, be
careful not to remove any critical information.
hey swordon, have you tried exec("mv $src $dst", $output)? youd
have to clean your vars up for safety, and use absolute paths, but
its better than copy+erase
By "critical" I mean "important to reconstruction of the
object"
bleh, I need to rework my actions
dioxide, really good idea...
so my IRC client doesn't beep every time someone says
"nightfreak"
to test if it works, but it's heavier than a copy/erase, i
think ...
swordon, its best if you can make the internal function work,
because the exec() method makes your code a lot less portable, but
if this is just for you, its a viable option
What exactly is your problem?
heavier?
You never answered me earlier.
it has to communicate with the system ...
i believe the structure or some aggregated objects have
changed, i'll check this frist
wherehas a native php function will do it faster ...
whereas the builtin function will use the right calls for the OS
it's running on
sure of that ...?
exec() probably isn't as heavy as
file_get_contents()/unlink()/fopen()/fwrite()/fclose()
and, you don't risk shell injections ... (which you can't
avoid via any of php's system-interaction functions)
yes, however moving a file with mv doesnt need to open the file,
read it, or delete it. it just changes the filesystem, so it is
very efficient
what function were you trying to use that was giving you the
permission denied error?
http://rafb.net/p/DDeMOi87.html
why don't you just use rename() by the way?
he was getting permission errors
TML Can anyone help me with my session variables? I have this
login script. when I refresh the page it logs me out.
it has to do all of those things if the destination is on a
different file system though
god damn klipper
true true
but it still doesn't have to go through php ...
what function were you trying to use that was giving you the
permission denied error?
i bet its still more efficient than using php to
read/write
aucune ...
don't know how to say it in english ...
none ...
When you refresh the page, do you allow the browser to resend
the POST data?
if you get permissions errors with rename() you'll get them
with any other method
yeah, i'd say that doing it in the kernel would be faster
than pulling it through the kernel, into userspace, and
back
try shrikes idea, rename might be fine
why don't you just use rename() by the way?
that's exactly what i want to do ...
yeah, thats what kept throwing me off, he can create and
erase files in the respective directories
so the one in question was perhaps copied to the webserver
using a different account?
if (rename($oldLocation, $newLocation) !== FALSE) { echo
"file moved"; } else { echo "file not moved"; }
a shell_exec('mv src dest'); works ...
all the permissions were good. everything owned by the apache
user, directories world writable..
for the login
yeh, give rename a shot before you decide to stick with
mv
insane ...
That's not a valid answer to the question I asked.
When you refresh the page, do you allow the browser to resend
the POST data, yes or no?
dioxide, i don't understand what you've said ...
there is no post date
try rename($src, $dst);
data
Then you will always end up in the last block of your PHP
page.
The "else" section
dioxide, i retry ...
lines 29-38 or so
the point is exec() is subject to the same limitations as
rename() since they both run under the same user
how many different setting are there for Memory in the php.ini
file
define "settings for memory"
what's the function used to obtain absolute path...?
For example, do you consider "report_memleaks" a "settings for
memory"?
You mean realpath()?
thx ...
TML okay, I get you, I am still logged in per se, bu because
if (($_POST['username']=="admin") AND
($_POST['password']=="admin")) = no
it always runs the else?
Correct
TML thanks very muck
much :-)
dioxide, still don't works ...
need new fingers again
Or, rather, I make no statements about whether or not you're
"logged in", simply that you'll always end up in the
else
TML I need to nest this somehow then
There's nothing on that page that I can see that takes any
consideration of being "logged in"
$_SESSION['verified']="yes" $_SESSION['verified']="no"
I am getting a Fatal error that states PHP Fatal error: Allowed
memory size of 16777216 bytes exhausted
That's only SETTING a session variable. You never CHECKED
it.
memory_limit is the only setting that pertains to that
I have changed my memory_limit = 64M
it still shows the setting as
nope
shows 64mb
for both local and master?
I thought that too
If $var is int (without digits after comma), will (float)$var
convert it to e.g. 10.0?
memory_limit 64M 64M
ints don't have commas
What OS/distro?
(float)$var
I think its fc4... I need to check that out
might be 5 thou
Also find out which SAPI
"is int (without digits after comma)" doesn't make sense
var_dump((float)$var);
it works with absolute paths...
perhaps you want php.net/sprintf
exactly :-)
thanks
fc5 php 5.2.1 with apache 2.2.1
so you got rename() working?
dioxide, with absolute paths, yeah ...
You're using the apache2 SAPI?
oh
swordon, you might want to check getcwd() if your using relative
paths.
how can i make an array from the "indexes" of an other array? is
there a very simple solution for this?
turns out $foo{1} is deprecated syntax
awesome. you probably can get relative paths working also,
just gotta figure out where you are.
array_keys
*sigh* Indeed. Gotta love it...what else are you going to
do?
yes TML
And you put the phpinfo() file in the same directory as the
script that's erroring out?
no.. but i will do taht right now
swordon, you might want to check getcwd() if your using relative
paths.
I want PHP6 yesterday
my files won't move ...
Because .htaccess can change memory_limit
blocks in httpd.conf, etc.
no, but i'd hazard a guess that PHP's working directory when you
run your code is not what you think it is.
no, but i'd hazard a guess that PHP's working directory when you
run your code is not what you think it is.
ok ran from the exact path as the erroring file and get
64/64
And you checked the script itself, including any
include/require/autoload/etc. to make sure it doesn't call
memory_limit?
what's the best way to create an associative array from database
records?
a class name has changed, how can i adjust the serialized
string?
StylusEater_Work, most of PHP's database APIs have a
*_get_assoc() function for just that.
if your into PDO it has that feature too.
ae
Hello boys!
Who can help me ?
god, that is the only who know your question ...
thx
_4strO how can i do a form of many files ?
mysql_fetch_assoc() if you use that API
invalid question.
why?
uhhh
it doesn't make sense, that's why
ok
sorry
"Not very easily". Where is the string stored?
please explain in a bit more detail
what's a form? What many files?
DB? Session file?
db
no, but i'd hazard a guess that PHP's working directory when you
run your code is not what you think it is.
* ultra555 (n=ultra555@151.155.216.2) has joined ##php
* f00li5h wonders why it's so hard to use an absolute path
anyway
hrm?
mysql relative paths were right, i test it first dans i used
relative paths because i thinked php knows how to handle it ...
-sql
lol
absolute paths are far less likely to be thwarted by silly
mistakes
why is it silly ...?
do you cd ~ or cd /home/f00li5h ...?
Mez, you never mailed me
"~" is a special character to your shell, not a relative
dir
was waiting for this one...
hi
ScottMac, yeah been sorta busy
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?
ScottMac, and Evolution doesnt wanna play ball
babybo0m, good question ...
Mez, excuses I spoke to Mike about it and we should be able
to overrull both James and Kier
s/overrull/overrule/
ScottMac, assuming I get the job of course
well we should be able to make sure they don't throw it
straight out
my application ? : P
how do i span a string variable over several lines does that
work with "blablabla \RETURN blablabla \RETURN blablabla" or does
php parses the value automaticly over several lines of
code?
bhow do i span a string variable over several lines does that
work with "blablabla \RETURN blablabla \RETURN blablabla" or does
php parses the value automaticly over several lines of
code?/b
swordon you have any suggestions on it?
i use gd, but i'd like better quality, two ...
ok
i was thinking about writing something to blur ...
i have tried blurring, doesnt really help for my purpose. the
funny thing is that when i use MS word to draw a circle it prints
*perfectly*, i need the shapes to have that quality
you can do that, or you can use heredoc, or you can
concatenate.
the phrase "MS word to drawn a cirle" seems odd in
itself
aaand he left.
Shrike|work yeah i know but i know the people i am writing
the script for use it now to draw shapes in a document, thats why i
want to achieve the same quality
does GD have no anti-aliasing ability then?
kinda thought it would have
Shrike|work buggy, and still the same problem. imagemagick also
does not give high enough quality when using anti-aliasing
(http://www.collect4all.com/cp/geometry_imagick.gif)
does inner=rows cause html_table to print the headers down
the left column with the records horizontal too or what?
with smarty
ah well, i don't know either package well enough to comment.
and rats! my coffee went cold
Oo
how can you let your coffee go cold ...?
heretic ...
babybo0m, that's not so bad ....
whats wrong with imagick
?
-- Imagick + libgd developer
at least that's approximatively what i want ...
swordon no it's ok for web purposes, but when printed it just
shows that the image looks crappy
can you pastebin your code ...?
swordon its on
http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=9156
babybo0m, so that's maybe the print pilot ...
driver...
swordon not sure.. the print quality is the same as on the
screen (same 'blurred' parts)
and about your code ...?
swordon also not sure thats why i am trying to figure out
what could be causing it
and about pastebin it ...? )
http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=9156
excellent, thx ...
Hello there. I have some HTML that I need to keep intact, but to
avoid XSS vulnerabilities I need to strip all javascript. Does
anyone have any ideas for that?
and /script, and all event attributes on HTML elements
Got a good list of all the event attributes?
no, but you would see all of them in HTML specs.
Alrighty, thanks
I've been reading about how I can write some code involving =
for "is less than or equal to". But if I write != for "is not not
less than or equal to", then it doesn't work. Where am I going
wrong?
You don't use !=, instead you reverse the logic
does anyone have any recommendations for software for remote
debugging? Komodo isn't working for me because I'm unable to uri
map
if (!($var1 = $var2))
If you think about what is not less than or equal to, you get
bigger than, so you simply write
or what dioxide said
I don't want greater than, for sure.
Thanks, dioxide, I will play with that.
and what chippy said, not = is the same as
Hmm.
I'm too clever for my own good? Sounds like I miss the
obvious.
ioncube PHP Accelerator is discontinued... whats its natural
replacement?
is using backtick fully equivalent to shell_exec() ?
hi
why might someone use ltrim(rtrim($foo)) rather than trim($foo)
?
anyone using Cake + Drupal with Drake?
you should ask that someone i guess
that would be ideal, for sure.
Thanks, Ch1ppy and dioxide. With your help, I've pulled my
head out of the dark spot and go something operational.
You are quite welcome
This is a long shot, but is there any way to thread a call to
create a zip file (that part is done), where I can either have it
call back at a certain interval with some sort of a progress
status, or call to it for a progress status?
no one using Drupal?
I use drupal
APC
with CakePHP?
Not really a drupal support channel...
#drupal
I know, but it's a pHP problem, memory leak
i'll try there
#drupal-support
If you're certain it's actually a memory leak, open a real
bug: bugs.php.net
kk
i'm not experienced enough to know if it is or isn't, so,
probably not
What makes you think you have a memory leak, then?
how does one use drupal with cakephp?
Allowed memory size of 8388608 bytes exhausted (tried to
allocate 24576 bytes) in Ewebs\cake\cake\libs\view\view.php on line
662
on a program designed to run within the 8mb limit
It wouldn't suprise me to find that mixing CakePHP and Drupal
together exceeds 8M by themselves, before you even add your own
code.
That is why I am trying to use Drake, which is the bridge for
them
I don't ever use CMS systems, now I remember why, but I don't
really have a choice
Err...how is adding another layer supposed to REDUCE
memory?
No, believe me I understand
Well TML I still can't find and calls to a memory limit in any
of the includes or requires
*any
Make the first line of the PHP script in question: php
var_dump(ini_get('memory_limit')); ?
Or something to that effect
TML i take it you are not a CMS fan?
I use a number of CMSes to manage different sites, from
Drupal to s9y to Plone to RYO.
Do you use a framework like Cake?
No
any particular reason of using many different engines?
If I'm forced to choose a framework, I choose Rasmus'
"non-framework framework"
besdies "historical reasons"
Many different sites with many different voices contributing to
the decision
i see
i.e., it's not always up to me
anybody know why rename() or copy() will not work with
directories? I removed the trailing "/"'s from the
source/destination
I like Drupal, if I have to go with a CMS...but I'm perfectly
comfortable coding my own HTML, so I probably wouldn't even
*choose* a CMS for myself.
well, if it was up to me, i would rather write one from
scratch.. i always find some crap i hate in any of the existing
engines
I've always written my own too, but nowadays it's not even
worth it
copy() isn't recursive
ok rename
depends on what you want to achieve
Warning: rename(/tmp/dirname,tmp/foo/bar): Is a directory
in
`mv /tmp/dirname tmp/foo/bar`
woohoo
i think this is my proxt
err proxy
that works fine
but why does rename() not do it, when it is supposed to ?
As of... 4.3.3 rename() is now able to rename files across
partitions on *nix based systems.
nothing about moving directories
oops, thats only relevant if ... oh yeah, btw.. is /tmp a separate
mountpoint?
Ok i guess I took that a bit to far, Im reading comments of
other people doing it
yes it is
PHP 5.2.1-pl3-gentoo
plus it worked on an older freebsd box I had
Is it possible to use PHP5 without using the mysqli
library?
sure
How
?
By not compining tthe extension?
you use mysql(); :p
don't compile it with it or don't load the extension
ratonnn, old mysql is still available in php5
mysql
anyone using php adodb library with php5?
cyth why is that so?
faster, object oriented interface, more features.
I like that I can myDb extends mysqli
:p
It kinda seems weird to me to use oop with php
Advanced feature in a language that is forgiving :s
Hey, I installed php with imap a couple of days ago. All was
working fine but i added a virtual host to httpd and restarted
httpd and ever since then imap has dispappeared.
Anyone have any ideas why that would happen?
meh, is much better than alot of languages that have oop
hacked on as an afterthought.
php isn't as forgiving as you'd like to believe :p
it just has loose typing
and they're adding more features that you can optionally enforce
typing more.
and OOP isn't an advanced feature, it's a paradigm that a language
supports.
off the end of a script. they say that it's not needed, and that
leaving it off solves the problem of accidentally having a space
after it that throws off your ability to send headers. What do you
guys think on that?
aaroncampbell, I think it's good
lol I wouldn't mind getting rid of php as well
I've been saying that for years.
and templates would have to be in .phtml (which would use php
?
do you use any sort of PHP framework?
aaroncampbell, yeah
Zend?
yus
since 0.2 baby!
What are those php framework good for?
sbn, rapid development in OOP paradigm
patterns and shit :P
Nothing to good huh
nice. I've been coding PHP for years with no framework, but I
think I'm going to use Zend for our next release of our application
(a complete rewrite, so I think it's a perfect time)
they also help enforce best practices (something sorely missing
in most PHP projects out there)
*cough*
I'm actually quite excited about implementing Zend...especially
ACL... Our acl implementation in our app is pretty
cumbersome.
Is it true that regexps are slow?
nope
compared to what? Also depends a little on your definition of
slow
pcre are not alow
Well, I use them to ensure that my fields are safe
Well the input that is
what else would you use?
Dunno
There are certain times when something other than regexp
would be better in that situation, but often regexp is going to be
needed
Validating if the username is actualy build out of
letters
For example, you probably shouldn't check something like
"/[\d]*/" when you could use a ctype function instead
ctype?
sbn nothing good? rapid development isn't good?
pug
er puh
For username, you might try ctype_alnum or ctype_alpha
mvc ownz j00 m0m
is this channel open to me asking questions or is that in
another channel?
Hi. Shouldn't this find everything that begins with the word
"field" but DOES NOT contain "thumb"? if (ereg("^field", $filename)
&& !ereg("thumb",$filname))
Doesm't seem to work for me
second ereg() reads filname instead of filename
Haha! Thanks, Lowercases. I though I was going crazy
xD
if i setcookie to expire in the past, the browser should kill
the cookie, well my script cant find the cookie anymore but it
still appears in my Firefox's cookie window, until i close the
browser, any way to clear it entirely or is that just a browser
deal?
Those mistakes can kill a men
yep, those are the hard ones
raising error level to E_NOTICE should prevent it
thats just the way browsers work
Dang. still not working: if (ereg("^field", $filename)
&& !ereg("thumb",$filename)) { }
It doesn't seem like the second ereg has any effect
youre best off filling the cookie with trash before you set
it to expire, so that anything important wont be sitting around
until the browser is closed
I think it wont check the ereg
write an example of $filename for which it doesn't work
It is supposed to put the location of "field_photo01.jpg" but
NOT "field_photo01_thumb.jpg" , Lowercases
s/put/get
Trying to debug a problem I'm having with sscanf() function:
does it support positioned parameters?
e.g. sscanf('hello world', '%2$s %1$s')
'hello')
'world'
it works for me. check your code, bug is in another
place...
'world'
http://rafb.net/p/Ws1Jqx27.html,
Lowercases
The thumbnail (i.e. "thumb") images are being added to the
array
along with the regular ^field and ^pipeline images
The thumb images are supposed to be ruled out
that code lacks the ! before the second ereg() at line 8
D'oh! Let me try it now.
Weird. Still no luck with http://rafb.net/p/m7Uny749.html
print_r() the results and check it. it should work. btw,
$some_array[
$some_array[] .= something is weird, did you mean $some_array[] =
something?
Nope. It adds an item into the array (it works anyway, with
the first regular expression)
I mean, it works anyway. but $some_array[] = is more
natural
morning all,
Anyway, what happened is I uploaded the file into the wrong
directory (the php file), so it worked, I just didn't see a change.
Sorry, must be tired
So you are from Uruguay? Very cool. I haven't been there, but I
have been close to the border in Argentina. I have heard you guys
raise very delicious cattle and make great steaks (bistec en
espanol?), similar to Argentina in that respect.
ahhh, so many times I've done that KomodoKoffee =D
ok, good luck with that
Montevideo is the captial, right?
lol yes, I'm from Uruguay. Its almost the same to Argentina
(just the name changes :P).
yep, I live there
Cool.
do you travel to Argentina usually?
it's said that there are no other two countries as similar as
these two.
Only twice for backpacking in Patagonia. I stopped in Buenos
Aires as well as some city in the north near Uruguay
Didn't Uruguay use to be a part of Argentina?
several hundred years ago?
before independence of both (between 1811 and 1815), they
were part of a bigger country
when they gained independence, they sold us to Brazil
but it's the same culture
Yes. I have heard that at one time (perhaps 1850's) Argentina
was more wealthy and powerful than the United States
o.O
may have been, Argentina has many natural sources to
exploit
http://en.wikipedia.org/wiki/History_of_Argentina#The_emergence_of_modern_Argentina
the only problem with these (including Uruguay) countries is
the wrong options the lousy goverments have taken
oh and a large count of Civil wars :P
Most countries did in the 1930's and 40's, including Russia,
Germany, and, IMO, the United States. And in the 1830-1880 there
were lots of revolutions and wars, Crimean,Civil War in America,
Spain, etc.
Uruguay didn't pacified until 1904
World Wars in XX century actually benefited us -- we export
meat
actually 1940-1960 is now know as the "fat cattle" period
here known*
well, i'm back to studying good luck with that code
does anyone know a tutorial for using php to make a mass
mailer for HTML based emails
server side web programming, seems liek someone got the concept
right
avoid sugarcrm.com though its a hunk of s---t
Thank you
Does anyone know why mysql_fetch_row() returns an integer column
value as a string? Is this what MySQL returns or is this an effect
of the mysql_fetch_row function?
You failed to read the manuals.
please correct me if I'm wrong, but the PHP manual makes no
mention of this on the mysql_fetch_row page
"Returns an numerical array of strings that corresponds to the
fetched row, or FALSE if there are no more rows."
"mysql_fetch_row() fetches one row of data from the result
associated with the specified result identifier. The row is
returned as an array. Each result column is stored in an array
offset, starting at offset 0."
You're right. It doesn't say anything about it.
anyone familiar with the sscanf function?
thank you Wolfpaws
how do I enable cURL?
on which os?
linux
[fields], you add it in php.ini and you install libcurl
it's in php.ini
hm
how do you install libcurl ?
if you had to do heavy app dev, which language would you use?
C++, Java, or C# ?
[fields], ask #yourdistro
[fields], apt-get install libcurl probably
oh ok
seems like alot of projects still use C++
i used to be decent with it
lann, this is a php channel.. at least be kind enough to
include us in your list !
well i know it can do it but it isnt really that heavily used
for that sorta thing
also maybe it will be less biased to ask here
lol... true
i've been studying software design and still need to choose a
language heh
i'm at the point where i'd just as soon choose any
so pick one
maybe it's good for a programmer to beat himself over the head
with C++ every so often
im having fun learning c :p
you do know C# is Windows only, unless you use like Mono or
something
lann, i asked that very question once, the answer was
"experience isn't measured in what languages you know, it's
measured in how well you know your field"
agreed
networking, web, encryptiong, databases, real time
i'm just trying to choose an implementation language for
studying software design patterns
hi, how can i clean up the internet explorer cache?is there
any function for that?
and you'll pick up the language on the way
what is wrong with studying design patterns in php?
just go to Properties or something like that :P
try ctrl-f5
well nothing except it doesnt fully implement all OO
concepts
lann, if you want OO, then i'd suggest Java or Ruby
i was meaning by code...not manualy
OH!
why would you wanna do that?
alright this makes 0 sense at all- does anyone have any idea how
this is possible http://pastie.caboo.se/77698
(the lines in the output are 26 and 27) ShowPost.php just dumps out
the $_POST array
also i'm wanting to tinker with some round-trip dev tools and
php doesnt have many options other than enterprise
architect
lann, definitely go with c++ or java... my preference is
towards java, but to each his own
honestly i find java easier than C++
same here
less fighting with the linker
because i have a button that saves data...after the first
save when u click he's going to validate if its possible to save
again...but he always let's saving because of the temporary
files
i'm making this trought javascript + php
so you want to clear the users cache, on his browser -
without warning, to fix a flaw in your programs design?
but some part of me says that C++ is ...well basically it
forces you to understand more
if you want to do something to the browser itself, it's
definitly javascript.. not php
whether that is good or not i'm not sure
AlexC_:yes
stereotypes !!
hehe
then don't.
fix your programs design
well ok my official job title is web developer
maybe that should influence my choice languag
i want to get more involved in design so one day i can
advance
:-s....
can anyone help me?
AlexC_:what would be the problem of doing that?
that said...sometimes you need something a little heavier than
C++
what is the problem of clearing the users cache, on his browser
- without warning?
so i guess i'd be speaking java or asp.net
heavier than c++ ??????
err sorry
heavier than php
ASP OVER C++ ???
AlexC_:with mozilla this doesn't appen
AlexC_:only in IE
you just gave me a heart attack
like for this one web app i (may) need a socket server
pastebin the code
so that kinda leaves c++ out...as a web dev i can safely
assume i wont touch much C++
leaving us with only java and asp.net(which basically means C#)
really
you know what bugs me the most about programming
languages?
sholdn't your discussion be in #phpc not ##php
AlexC_:what do u need to know about the code?
does anyone know what error code 128 means when trying to
execute passthru() ?
They're not all as cool as INTERCAL?
paste2.org
why do you narrow the palying field so much?
i dunno, because it generally is that narrow
there are many advanced OO languages out there with decent
communities and tools
hehe =D no, how are they coded? I know PHP is coded in C or
C++ - but who 'coded' C++/C ... then who coded the language that
C/C++ is coded in? and who coded that language that that other
language is coded in?
i dont want to bother with some niche language
it doesn't make sense to me
can anyone help me?
a doctor perhaps
i have no idea what your problem even is
alright this makes 0 sense at all- does anyone have any idea how
this is possible http://pastie.caboo.se/77698
(the lines in the output are 26 and 27) ShowPost.php just dumps out
the $_POST array
we ignored you the first time
define niche!
i noticed
help me. How to can i block send email for apache__
?
or php
niche is the languages nobody gives a damn about like
coldfusion
google
if not php, how about python or ruby?
ecoleman
yes, I would agree on Python
because asp.net and java are the industry standards for this
sorta thing
Hello
says who?
statistics
hello
why don't you just learn them all
jack of all trades, master of none
and then use the right tool for the specific job :p
top 5 used languages in the world are (in order) Java, C++,
C, PHP, VB
yes, but 45% of statistics are made up on the spot, whilst
the other 62% make no sense
where is asp?
has anybody got any idea if there is a php class that will
allow me to convert from any M$ office format to a pdf?
LOL
(and if possible from a OOffice format as well)
where do those numbers come from and how the hell did java
beat C?
im not even sure what your problem is lookin @ that
java beat C almost 2 years ago
right on
wait.. let me get reference
is anyone here using php5 packages from dotdeb in debian
sarge?
what if they were, dippo
well my first "software design" project that i'm assigning
myself is an OO php5 ajax game, after that though i might translate
the server side of it into a socket server so i must
choose
well, i am trying to upgrade to the latest version they have,
and it's saying it requires libc6 = 2.3.6-6, which sarge doesn't
have
sorta negates the point of being a backport, you'd think
#debian ... maybe?
look at the var_dump on the output
or even #ubuntu
the variables don't match the var_dump of that variable before
the post is redirected
looks normal to me
ohh
still looks fine to me
oh god, my mind is stuck in a loop now - who coded C? who coded
what C is coded in? who coded what that other langauge is coded it
argh lol
sudo shutdown -r now
look closely man
i love you
if you scroll to the far right on the output you will see the
problem
i don't really wanna :p
thanx.. but what for?
that link owns
it looks like your pulling shit back from your post
and it's outputting it
oh my god!
Visual Basic about php?!
but your doing something different on that side
its the ampersand
i have "function foo($query) {" and want to pass as many
additional args to this function as i want, so that i can take them
and pass them to an sprintf inside the foo function... how can i do
that?
it pretty much answers my questions
the output cuts off at the ampersand
get_func_args()
php.net/func_get_args
or func_get_args() :P
i'm so freaked out heh, i start as web dev for cisco in 2
weeks
glad to be of assistance
just keep in mind that a programming language is a tool, not an
end
you can do what ecoleman and AlexC_ have suggested, or you
can just make a 2nd argument that is an associative array and use
that.
it's true
i find that i pickup languages nowadays ...i dunno a week tops
(libraries tend to take longer than the language
itself)
thanks
Lann, really? a week? takes me a couple hours
haha
i think func_get_args and a array_shift is cleaner than
passing an array in
well depends on the language
it took me awhile to figure out the .net framework even to a pretty
basic level
mm, Chinese Simplified would take a bit longer
most c based languages should be real easy to pickup... same
syntax and all
Lann, i mean to achieve fluency and mastery of something that's
different
but i did it the whole tiem without even knowing C#...in C#
heh
.Net is the work of the devil... you're advised to steer clear
from it
amen
Lann, i thought the .NET framework was pretty
straightforward, i mean it's ASP with a templating engine and you
can write it in C# instead of VBs
well...to do it "right" is very involved
making it work vs doing it right is a huge difference
good, thanks
faisal_d, i don't know about .NET being the devil... the .NET
framework for windows applications is great, i love C#.NET
channel topic says this is a PG channel... stop with the .Net
talk !!
faisal_d, ASP.NET isn't that great compared to say PHP or
Ruby
faisal_d, for web apps at least
agreed
it's odd to get used to how everything revolves around their
weird database abstraction stuff
Lann, you mean ActiveRecord?
I prefer to code in AAL for most web-dev
also i just cant accept how it doesnt generate standards
compliant markup
Lann, ActiveRecord is kinda lame but meh, it's just another way
of doing things
my beef is that they do stuff instead of the developer, and
most .Net dvelopers don't have a clue whta's going on.. just
pressing '.' and selecting a function name :-s
heh
faisal_d, same could easily be said about most PHP devs and
most RoR devs
i made a little chat app for work using C#.net and ajax
it was a huge pita
true.. but it's different
Lann, you mean webchat?
yeah yeah
i still wanna write myself a decent irc client in C#.NET
in php and xajax it woulda taken i dunno an hour
just being an open source developer gives you a different
perspective and experience
took me like 5 days
it gives you a different mind really!
Lann, yeah but you know PHP well already. i'm sure someone
with equivalent experience could have done it in "i dunno an
hour"
"Abstrakt IRC"
i've had like 7 Job interviews in the last 3 months, and they
all agreed that open source developers have something that closed
source developers don't
Lann, hellz yes
why 7?
the idea that standards = good
i always get hired after...well 1 hahaha
i have never done more than one interview before getting
hired
i already hold a job, those were people trying to steer me
away from my job
Lann, Yabirc "Yet A Better IRC"
what would cause the system() function to generate error code
128?
hehehe
why not call it what it's not?
cos I mean Wine Is Not Emulator, and GNU is Not Unix so
=D
i think i have the geek factor heh, not as much as some but
enough to get a job
the geek factor gets you hired
AlexC_, TinaIRC "This is not an IRC client"
true that!!
haha, that's good
hmmmm... i like it
their IT guy will pick up on it
it cant be faked
ROFL
hi how can i include variables from a file
include() the file
without include_once
include the file?
cause it doesnt seem to wor
when i do include_once($config)
my friend ...he has a masters degree in MIS, but he doesnt
have any interest at all in computers...just making money. He can't
find a job to save his life
pastebin the 2 codes
i can't emphasis enough how passion to what you do makes you
a real success
yeah...i've accepted my fate as a computer nerd
welcome to the cult!!
i can now do my 8 hour days without flinching ...i used to
sorta dislike it at first
Come to the dark side.... we have cookies!!
although the ass can still hurt ...sometimes i literally dont
stand up alld ay
that's a pretty bad thing to do
yeah i know
jobs are overrated
like wives
LOL
wives are so overrated
wives are rated?
ratemywife.com? j/k
yeah... 18 :-p
paradidactic, yeah, jobs give you like, money, and food, and
computers and stuff... and wives give you head... that sh*t is sooo
overrated man, screw that
Lann, i bet that site exists
yeah i'm not going there from work
wives give you head, haha hoho lolzor!!1!!1
lies
guys, PG channel!!
earmuffs!
you mean screenmuffs?
here's the code http://pastebin.com/d5a06b38f
holy crap
pastebin.com .... opened
i just cant access the variables
first time, in like ... 2 seconds
my god pastebin.com works!
get out of here you blasphemer!
What's wrong with pastebin.com?
it never works
because those other variables are not in the method scope
it does now!
i stopped even trying to use it years ago
same here,
pastebin.ca works more often
not in teh method scope?
it's included inside that function :|
oh yeah =D
testing you, ya see
!tell ionix about pastebin
ionix, there's more than one
are you sure they are both in the same direcotry?
or at least.. whatever path you pass is correct?
omg
do you have error reporting on and display errors?
i used somewhere else include("config.php") and there is
include_once
in the old version oh nevermind
error_reporting( E_ALL ); ini_set( 'display_errors', 'On' );
right, I'm off riding - tada
aaah i feel so accomplished i actually read 100 pages of this
uml book without getting bored
read and understand heh
how many technologies are you reading up on at the same
time?
you think you understand until you try to apply what you
learned you will feel stuck again
hehe
well i'm reading uml only right now
i'm trying to adopt some formal process to how i design things
so far it's working out quite well
so long guys..
laters
need to get my WoW fix !!
Hello guys, I am making a script to edit files and I need to
use the chmod() function but it says I'm not permitted. I have root
access, so access to php.ini What do I have to change in order for
chmod() to work?
Remember that php often runs as the apache user
Hm
Alright thanks :P
is there a function to limit the ammount of memory that php
uses ?
Related Topic:
Current app im working on has a MM relationship between sherpas and the territories they cover currently the app