| |
| |
| |
|
Page: 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 28 29 30 31 32 33 34
Comments:
<0> There's one in /usr/Zend/etc <1> anyone here familiar with e107? <0> Grr mail's not configured <2> blah, i literally get last minute changes. the site is being uploaded and she wants me to change it <0> And it's not my server so I can't do anything :-/ <3> Zakabog; ask the *admin* to do it for you. <0> Ratty_ my boss is like but I'm working from home so I copied his website to my home computer, and I make the changes on my end so he can see them <0> cy_ I don't think the admin wants to do it for me lol <0> I could ask but I dunno I think they have more important things to do <3> well, maybe a fugly system("echo test | mail to@you.com"); woul'd work ? <0> Before I was playing a nice game with my boss, he'd tell me to change something in a table, I'd change it and he'd say "Ok now make that other field smaller, ok now that that's smaller make that big text box shorter, ok now move that text into that box, ok now take that out and put it there" <0> haha I dunno I don't think so <0> I don't think they have a mailserver setup on this computer <4> I have created a custom debugging logging function, how can i automatically get the line number that the function was called from in the script? <0> Hmm I don't know what to do if this thing can't send e-mail <0> Tankshell one way would be to p*** it as an arg to the function although that'd be messy and annoying
<4> true, ideally like to automatically get it somehow.... <0> http://www.xdebug.org/docs-functions.php <0> Check how they did it <4> ta will have a look <5> can i use php to make an rss-feed ? <6> sure <7> Hi . for m*** hosting with fastcgi, the php interpreter should be own by the user. How can I handle this in a nice way ? (the only way I managed to make it work is create local copies for each user) <8> $kint = new Cl***; do I need to destroy $kint or it will be destroyed after exit; ? <9> Questutis: it will be destroyed automatically. <10> zamolxes: suexec, perhaps? <4> debug_backtrace() did the trick <0> hehe <9> Questutis: with destorying the object, __destruct() will be called for each instance of any cl*** <0> Ooooooooo ayreon you got served! <4> is it possible to re-route all standard php errors etc to a custom error function I have written myself? <8> ayreon: thanks <11> i have apache with php as a module <11> will php as a module log to a different log, then apache ?? <7> mst: well of course, but the CGI must be owned by the user. <7> mst: in this case, the php interpreter <4> regarding set_error_handler, "Instead of a function name, an array containing an object reference and a method name can also be supplied as the error_handler. " ... I can't seem to get this to work, anyone have an exmaple? <12> JAKEY <10> *FWAP* <12> JAKEY <12> [amsg] Sorry about the above, I didn't realise /amsg sent it to all servers. :< <4> anyone? <13> Tankshell reapeat your problem... <4> regarding set_error_handler, "Instead of a function name, an array containing an object reference and a method name can also be supplied as the error_handler. " ... I can't seem to get this to work, anyone have an exmaple? <0> http://us3.php.net/set_error_handler <0> There's an example there <2> i wish my boss would actully look at sites before telling us they're ok to go live <4> is the example in the user comments somewhere? <2> wouldn't have to spend the next 5 hrs after putting it live running around and bodging in changes <14> Hi I have 17 numbers, could anyone tell me how I would go about displaying the first 3 and last 3? <15> Hi. I am trying to create a debug function for my object so that my object can give more information on where this error occurs. set_error_handles() needs a 'handler', the function from within this object that needs to handle the error is MyObject::Problem(). When ***igning my error_handler from within the object it neither accepts self::Problem, self::Problem(), MyObject::Problem or MyObject::Problem() <15> Using a standalone function like MyObjectProblem DOES work and does it's thing like it should. But i want my problem function to belong to my object ! <16> is it possible to save a file from one external url onto a php site's folder? <17> curl? <17> sethuhdiah, http://ro2.php.net/curl <0> Morrye are the 17 numbers stored in an array? <4> can't log parse errors in a custom error handler...that ****s. <15> Tankshell, http://php.net/set-error-handler <15> Tankshell, i mean.. php.net/set_error_handler <4> Yeah I have read through that page...you can't log parse errors if using a set_error_handler apparently <15> what do you mean 'can't log' ? When recieving the parse error in the custom handler you can log it yourself, can't you ? <15> Tankshell, never mind.. just found out myself :-( jeesh.. php is starting to **** real bad :-( <18> if I got $var = "100", how can I make it $var = 100 so I can count with it? <0> I think it counts as both <19> $var++; <18> hm, but if I want to compare "100" < 150 can I do that to? <0> Yeah <0> Should be able to <19> if ($var < 150) { } <6> Diphilus_ or you can use intval() to be sure <14> Zakabog: No I could store them in a array though. <0> $i=count($array); for ($j=0,$j<3,$j++) { echo $array[$j]; } for ($k=($i - 3),$k<$i,$k++) { echo $array[$k]; } <0> That should work then if they're in an array <0> Well change $k=($i - 3) to something else <0> I think if you take out the parenthesis
<20> im trying to show in html an image. The image name inside the <img> is a php variable. It doesnt work though. Any ideas ? <0> Lemme see your code <0> pastebin it or something <20> http://pastebin.com/736880 <20> image is on the same level as php file <21> what's the result? <20> nothing <0> What is $res[0] set to? <21> in the html, <img...> = ? <20> $res[0] = tool.jpg <0> Yeah what does it say in the html <20> on source code i get this <p><img src=Tool.jpg" width="500" height="500"></p> <0> You have a quote missing after src= <20> still <0> Dunno if that's it, do you see a broken link when you view the page? <0> Like a red x or something? <20> nope <20> nothing <20> if i check the source code though i can see the <p><img src="Tool.jpg" width="500" height="500"></p> <21> what's the URL to the image, and the URL to the script? <20> both .php file and img are on the same folder. Is that what you ask Ciaran ? <0> Try to make a url directly to Tool.jpg <0> Like just take out the script.php part and put in Tool.jpg see if it works <20> it works <0> Is there anything else in the script? <20> no it doesnt <0> Oh hehe <0> Fix that first then <20> hmm i was pretty sure it worked. I used the design mode in dremweaver to insert the image and produced the same code and worked <20> now that i explicitly write the same code it doesnt <0> Hehe <0> I used to like dreamweaver a lot more <0> I dunno what happened to it, I remember it writing much cleaner HTML though <0> I'm glad I learned in notepad before anything else *shudders thinking what would of happened if he learned on frontpage* <22> hi <22> =) <23> how do I create images with php <23> ? <0> Apocs what do you mean? <23> well, if i have a picture, and would lige some text put on it, in the picture, how would i do that? <23> lige = like <0> You'd have to download a library that lets you do that <0> Or something like that <23> glib? <24> is this the channel to ask questions about problems compiling php itself or is there a better place? <0> What problem are you having compiling php <0> Apocs I don't know what library <23> ok <0> Look for a php image manipulation library <23> GD its called <24> Zakabog: last message before collect2: ld returned 1 exit status was /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(err_prn.o) definition of _ERR_print_errors_fp <24> Zakabog: plus lots of lines that look like this /usr/bin/ld: warning multiple definitions of symbol _EVP_BytesToKey <20> @Zakabog i still cant fixed. The wierd is that i make a simple html file with an image on it and cant make it display it. <0> Tyaneas do you have images blocked? <0> irob I dunno :-/ <0> Are you compiling with any args? <24> Zakabog: nope, just configure (with standard stuff), make and make install <25> anyone know about ioncube php enconder/loader? <20> no Zakabog. I dont even get the x sprite to show that is something wrong with the loading <25> i have some software i bought that is encoded with it. i get the loader install it, and how it says not permissioned for 10.0.0.1 :( <0> Tyaneas just make an html file that sayd <img src="Tool.jpg"> <0> See if that works <0> irob I don't know, i think it has something to do with SSL but I'm not sure <0> You're using a mac with an intel cpu? <24> yes <0> I dunno I read some stuff about that error message when dealing with other programs and most people disabled SSL and it worked <0> Heh try searching google I guess, and maybe e-mail a PHP dev or something <26> hi <0> Hi <26> i'm learning php, <26> i put this line in a php file >> print("Hello world!"); <27> congrats <0> haha <26> so when i execute the file, it should me entire line instead of only "Hello World!"
Return to
#php or Go to some related
logs:
libtool: link: cannot find the library `/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/ #centos #nvidia #css zope gc.collect SMBus: Intel Corp.: Unknown device 27da (rev 01) rapip problem #css ssh port webfusion mysql.user grant error 1146
|
|