logs archiveIRC Archive / Freenode / #php / 2006 / March / 6 / 1
eIf
hi
OrbX
hello eIf
eIf
print_r (setlocale (LC_ALL, 'ro_RO')); will output FALSE. can you tell why or how can i fix the issue?
anyone familiar with setlocale?
RichG
eeek! how come PATH_SEPARATOR is set to a colon (":") on Mac OS? it breaks things
OrbX
RichG: I'm sure it can be changed in the php.ini file
sal
hello
eIf
does somebody know how can i found out wether i have locale setup or not?
Shaba1
Hey sal
sal
need to write a copy of an order to an email. so i'm writing down strings. do i just need to put a \n at the end of the line to have a newline or is there another way?
also, will that method work for all e-mail clients, even windows ones?
         

Jymmm
RFC821 and RFC822
if plain text, yes.
sal
ok, thanks
Jymmm
MIME (html) email is another story
sal
no, plain text
Jymmm
and... there plaintext + mime
!+nl
php-bot
Newlines are hidden (not normally visible) control characters that distinguish the end-of-a-line of text and are different for each platform as follows: [Windows=\r\n] [*nix=\n] [Mac=\r] And can be seen as: [LF (linefeed) = \n, 10d, 0x0A, 0001010b] [CR (carriage return) = \r, 13d, 0x0D, 0001101b]
sal
so? what shoul i use?
\r\n, \n or \r?
RichG
I'll check. it's odd because software which only uses the Darwin (the core of Mac OS, which is based on FreeBSD) libraries doesn't support colons as path separators& as far as I know
Jymmm
sal: http://www.faqs.org/rfcs/rfc822.html
macOnki
guys, anyone familiar with the internals of sessions? I would like to know more about the performance once you store huge amounts of data in it
serialized objects, arrays, etc....
sal
a have to read all that stuff just to get 2 character answer!!!!!!!
thats crazy
Jymmm
sal: Why? we had to, so should you since you're writing somehting based upon a standard, you should understnad the stardard.
http://www.faqs.org/rfcs/rfc2822.html
atealtha
I have sablotron 1.0.2 installed but ./configure wants "0.96 or greater." What gives
sal
jymmm: i just need to know if to use \n or \r or both. so you know what i'm gonna do... simnple.. just try it. i'm not stupid like you are to read all that stuff just to send an e-mail!! i'm not building and e-mail server or client application.
atealtha
this is for php 4.4.2
RichG
sal, you can't just send some text and hope that e-mail clients parse it, because computers only usually understand data when it's in a standardised format
sal
thanks, RichG
bye
Mutalisk
if you include a file with in a class... How do you call one of the include file's functions?
if (function_exists('index')) { index(); } // I get Fatal error: Call to a member function on a non-object in ...
RichG
I guess he reads "#php" as "#smtp"
Mutalisk
so the function exists but when I call it, it doesn't get called
I'm confussed about the scope I guess
         

Jymmm
RichG: I just hate lazy bastard that want us to wipre their asses for them.
macOnki
(Action) gives Jymmm a life and more beer :-)
Jymmm
RichG: He would have been fine till he got rude and called me stupid.
macOnki you're next bi**h
macOnki
hehe
Jymmm
!+fish
php-bot
Give a man a fish, you feed him for a day. Teach a man to fish, you feed him for a lifetime." The moral of this lil story is if you spoon feed someone information that's fairly obvious, you're not really helping them, just preventing them from growing/learning and being able to be resourceful for themselves.
RichG
I would have given him a direct answer if I knew what the answer was :)
Jymmm
RichG goes back to fish
Mutalisk
RichG: hope your not talking about me, I'll kick your ass! :)
Jymmm
first it's the newline, then it's the format, then it's something else. always is that way.
macOnkiBitch: what you doin?
RichG
Mutalisk, why would I insult your intelligence here when I can just insult you out loud and you'll never know? ;)
Mutalisk
(Action) respects boldness
Jymmm
RichG: That's nor nice, you're assuming Mutalisk has intelligence.
Mutalisk
RichG or Jymmm did you see my question
got any ideas by chance
RichG
:D
Mutalisk
help me instead of bi**h
:)
Jymmm
Mutalisk you're already bi**hing enough for all of us.
RichG
dynamically creating functions?
risky
Mutalisk
I include a file and then I want to run a function in file
I'm doing this in my Controller class
RichG
I'll use my 1337 Google skills
Mutalisk
RickG: You go girl
:)
Jymmm
lol
!Mutalisk++
Mrdini
hmm, anyone know a good primer/whatever for SOAP/WSDL? (in relation to PHP)
PHP 4 unfortunately :(
Super-Fly
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php503_cybersource.so' - /usr/lib/php/modules/php503_cybersource.so: cannot enable executable stack as shared object requires: Permission denied in Unknown on line 0
Anyone know why I'm getting that?
Mutalisk
*sigh* pulls out php manual
Mrdini
super-fly, dumb question, but checked permissions?
Super-Fly
yup
they're currently at 777
JustinS
Hiall .. I've been searching high and low and although I can see how to place a php include on a page, is there a way to position it, and create it from a link? (Click a link, and the php include appears on the same page in a predefined location) I currently use iFrames and don't like it, not one bit ...
RichG
I'm wary of answering because I haven't seriously coded in PHP for ages
Epilog
hi there
looking for a good class to do some AJAX
It should support FF, Opera and IE
Mrdini
RichG
JustinS, so, for example, you want an extra HTML section to be added to the page when the user clicks a link?
Epilog
is there something in php or do I need to do all in javascript?
Hydr0p0nX
anyone have any problems with php 5.1.2 giving compile errors when xml is enabled
Mrdini
Hydro, you using PHP's built in XML stuff, or external XML stuff?
(i.e. stablotron)
JustinS
RichG: Yeah .. right now if you go to justinsteiger.com .. every link simply pops open a new page in the iframe. I'm really trying to get away from iframes and using tables for layout. CSS has kicked my butt, so I'm focusing on getting the php include working from a link ..
Hydr0p0nX
using libxml2
ver 2.6.23
Mrdini
hydro, well, you're aware that PHP 5 onwards has XML built in?
dad
hey! how can i make my output page source look better? i have all these really really long lines...
html()
Mrdini
i.e. no need to compile libxml in
RichG
JustinS, wait, do you just want to add a header and footer to every page?
Hydr0p0nX
my compile just has --with-xml then tells me it needs libxml2 2.6.11 or better
JustinS
RichG: For now I simply want a link to open up w/out having to reload the entire page .. server side includes and php includes have been suggested to be as a best bet ..
Hydr0p0nX
so i got the latest version
JustinS
Once I figure out the mechanics of how it works, I can work on layout and such ..
RichG
JustinS, oh& I think you need to use DHTML for that
Mrdini
hydro, leave it out & see what happens
php.net/simplexml
istasi
Heya, having a bit of a problem with mail() ... trying to send a multipart mail however gmail just keeps seeing the content of the mail as an attached file >_< ... any common errors or is source code needed ? :)
JustinS
RichG: I'll go google that a little then too ..
sylowww
anyone can help me with how the parsing of <programlisting role="php"> works in the manual ?
Mrdini
ista, try a mailer framework - mail() is kinda basic
RichG
HTTP servers just listen for requests and answer them by sending entire documents (to simply the process somewhat). you can't make pages interactive just by using SSI or PHP
Wizz_Kidd
anyone knwo wherei can get my own branded atm debit cards
kinda like a paypal debit card only for my servvice
anyone know any suppliers
Mrdini
instasl, like http://www.phpguru.org/static/mime.mail.html
RichG
insin
istasi: are you using "Content-Type: multipart/alternative"?
istasi
insin, yes
have also set boundary
insin
was there some whitespace in your header before the boundary label?
JustinS
Thanks RichG.. off to look around .. appreciate your time ..
InKubus
is there any functions for generating 20 digit long strings?
istasi
insin, apart from the \n no
InKubus
random*
coca
hi
insin
could be it
kallei
if i make a private $var in a class, if i dont set it in the construct, what is the deafult value? is it null ? (PHP5)
coca
how can i show a loading page during a process whixh goes ca 30 seconds and then when its finished show the final page with some info
i jeust dont get it how to show this pages up
anbody a tip or al ink :) please
insin
istasi: "Content-Type: multipart/alternative;\n boundary=\"{$mimeBoundary}\"" works for me
(just implemented sending mixed messages too :))
istasi
mine's "Content-Type: multipart/alternative; boundary=\"---NextPart=' . $bId . "\"" atm
coca
;) ?
istasi
coca, think javascript would help you out some more than php can :)
RichG
coca, there's a sloppy but easy way, and a smart but trickier way
Jymmm
sloppy trick? Sounds like a hookers worse nightmare
RichG
an explanation of the the former: http://netobjects.com/en/nof/9/00/docs/help/auto-forwarding_from_a_transition_page.htm
haha
coca
RichG: tell mem
please ;)
RichG
like istasi said, you need to use JavaScript for the latter method
jonez
hi.. is anyone familiar with dhclient? I need to supercede some options and I want to make sure I have the syntax correct. the man page is lacking in examples
even if all I have is a scrip that checks the syntax of the file that will be enough
atealtha
can anyone help with my ./configure step? I have Sablotron 1.0.2 but it thinks it's not >= 0.96
coca
RichG: what should i use with javascript do you have a link or tip what to search for
dont know i verry well
Hydr0p0nX
samething
:/home/admin/server/php-5.1.2/ext/libxml/libxml.c:645: undefined reference to `xmlOutputBufferCreateFilenameDefault'
RichG
I tried searching Google for "javascript transition page", but all I see are instructions for using graphical transition effects
coca
hmm k now i knmow its called transition :)
RichG
Hydr0p0nX, did configure warn you that you had an insufficient version of anything?
Hydr0p0nX
nope
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 next »