IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1952.35 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-07
Pages: 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
35
36
37
38
39
40
41
42
43
44
Next >
[00:00]<dzzznzdjusn>+linux3: for ($x = 0, $s = count($menu_item)-1; $x <= $s; $x++) { echo '<a href="' . $menu_item[$x] . '">' . $menu_item[$x+1] . '</a>'; ?>
[00:00]<wsxrm>+Elazar I'm not sure, but I don't know if you'll get some pecl support here
[00:00]<dzzznzdjusn>+Or something like that
[00:00]<wsxrm>+you'd try #pecl
[00:00]<ffdyrrrur>+It's definitely Firefox ... Safari is working as well ...
[00:00]<dzzznzdjusn>+Maybe $x += 2 instead
[00:01]<zddzz>+ChrisC35: yes, but depending on your mail server config, you might also need to provide a username and password to authenticate and allow sending.
[00:01]<vfnv>+FlyingNun: It's not the browsers job to tell the server to parse anything. If it was, that would be a huge security problem
[00:01]<wsxrm>+ACTION waves at Wolfpaws
[00:01]<vfnv>+FlyingNun: are you sure firefox isn't just showing you a cached version?
[00:01]<ajfmnz>-ehy there
[00:02]<zddzz>+ChrisC35: why not use sendmail, though?
[00:02]<efzezz>+#pecl appears to be specifically for developers. It's not granting me access.
[00:02]<ffdyrrrur>+Vlet: that's what I believe, from when the problem started, but I can't get Firefox to "forget"
[00:03]<dzzznzdjusn>+FlyingNun: Clear the cache? Do a ctrl+f5?
[00:03]<vfnv>+maybe try telnet-ing into the http server and typing out the http request
[00:04]<ffdyrrrur>+Dangermouse: can't do it ... can't get to that page without it prompting to download the PHP file
[00:04]<ffdyrrrur>+Can access other sites on that server that I didn't access before and it processes properly
[00:04]<2jzfrgm>+hey, is there a 'dump all variables' function?
[00:05]<vfnv>+FlyingNun: Is this server open to the world?
[00:05]<ffdyrrrur>+still, the two sites I had problems with, it wants me to download the index.php file
[00:05]<2jzfrgm>+or can one be written?
[00:05]<ffdyrrrur>+Vlet: yes
[00:05]<vfnv>+care for us to try?
[00:05]<||aw>+borland: $GLOBALS
[00:05]<2jzfrgm>+FlyingNun: your content types and handlers are not right then
[00:05]<efzezz>+Not seeing any other channels on the room list that appear to be PECL-related, either.
[00:05]<ffdyrrrur>+It's a Firefx problem ...
[00:06]<||aw>+FlyingNun: it can't be. the SERVER tells firefox what to do
[00:06]<wjlllrws>+FlyingNun: Clear cache
[00:06]<fyguw1>+http://pastebin.com/763424
[00:06]<fyguw1>+that is what i was able to come up with
[00:06]<ffdyrrrur>+Bah ... Here is a site using PHP on the server: http://www.octanecrew.com
[00:07]<ffdyrrrur>+It will parse for you fine ...
[00:07]<fyguw1>+only problem is is that it only shows one menu item
[00:07]<ffdyrrrur>+I have tested in MSIE, Safari and Firefox running on a BSD machine
[00:07]<2jzfrgm>+seems to work fine in both FF and IE for me
[00:07]<ffdyrrrur>+It is the firefox that I was using when I got the original error that won't snap out of it ..
[00:07]<ffdyrrrur>+I have determined this is a Firefox problm
[00:07]<dzzcd2j2>+having a hard time here. following the example in http://us2.php.net/manual/en/function.echo.php, but it's not outputting in multiple lines as it should. code: echo "This spans\nmultiple lines. The newlines will be\noutput as well."; why would that all be on one line even though \n is being used?
[00:07]<2jzfrgm>+I have determined that firefox works fine, therefore it is not a firefox problem
[00:08]<ffdyrrrur>+Here is the Firefox problem: Not being able to clear this error from my cache
[00:08]<zddzz>+linux3: you are looping over the first row only,
[00:08]<vxnzzrxrd>+markybob: take a look at the source its just not wrapping the lines because you don't have <br />'s
[00:08]<2jzfrgm>+clear your FF cache then
[00:08]<||aw>+FlyingNun: ctrl-f5
[00:08]<vxnzzrxrd>+markybob: try nl2br()
[00:08]<2jzfrgm>+tools/clear private data
[00:08]<gjd2ygrgrrrg>+can someone tell me how to get the return variable from a method, ie the second part of this doesn't work if (parent::__construct($server, $username, $password, $type, $database) and $this->setTable($table)) where $this->setTable is supposed to return a true or false but always returns true
[00:08]<ffdyrrrur>+Whenever I go to load octanecrew, I am prompted for the index.php download
[00:08]<dzzcd2j2>+thegraham, i see. thanks
[00:08]<fyguwq>+ammar: ok, hang on one sec. i shall attempt to fix it (reading how to do this is a really bda book)
[00:09]<vfnv>+linux2: try this: http://pastebin.com/763431
[00:09]<2jzfrgm>+shouldn't you use && not 'and'??
[00:09]<gjd2ygrgrrrg>+i don't believe it matters
[00:09]<ffdyrrrur>+borland: Thank you very much ... that solved everything ...
[00:09]<2jzfrgm>+FlyingNun: no worries
[00:10]<||aw>+zombieReagan: that's the exact line of code? constructors don't return anything so that's not really a valid line of code
[00:10]<zddzz>+linux2: move the call to fetch row inside the for loop
[00:10]<fyguwq>+ok, hang on one sec. i gotta just check something in the database
[00:10]<2jzfrgm>+zombieReagan: it seems that the error is probably inside your setTable function.
[00:10]<gjd2ygrgrrrg>+hmmm, lemme try something brb
[00:11]<ffdyrrrur>+The original problem was with the PHP reinstall (had to do a new make config to build the Apache module) but Firefox was caching my bad data, that's what further confused me when I thought I had configured it correctly ...
[00:13]<zdz2jd>+hi
[00:13]<zdz2jd>+webhost sends me
[00:13]<zdz2jd>+Your database was disabled due server overload.
[00:13]<zdz2jd>+Time: 75% (53468 sec) Amount: 67% (1601 queries) Rows Examined/Sent: 7342810 / 1598 Avg. Query Exec/Lock Time: 33 / 5 sec.
[00:13]<zdz2jd>+Please, reconfigure your script and decrease number of connections to mysql server, then database will be unchmoded.
[00:13]<zdz2jd>+can anybody tell me how do i fix my script what function of php or ?
[00:14]<fyguwq>+Vlet: ok it works great
[00:14]<fyguwq>+thanks :-)
[00:14]<vfnv>+np
[00:14]<zddzz>+airboy: are you properly closing your db cnxns
[00:14]<zdz2jd>+yes
[00:14]<zdz2jd>+in footer file
[00:14]<zdz2jd>+mysql_close;
[00:15]<vfnv>+are you querying the database inside a loop?
[00:15]<gjd2ygrgrrrg>+alright, better question. when I make a new instance of an object, how should I inform the calling program whether or not the object setup correctly (say in the case where I have a mysql connection)
[00:15]<zddzz>+airboy: are you in charge of the my.ini config
[00:15]<zdz2jd>+yes in loops
[00:15]<gjd2ygrgrrrg>+since can't seem to return anything from the constructor
[00:15]<zdz2jd>+i dont have access to my.ini
[00:15]<zddzz>+airboy: what about php.ini
[00:15]<zdz2jd>+yes i can with .htaccess
[00:15]<zdz2jd>+?
[00:16]<vfnv>+it's a bad idea to query the database in loops. look into crafting a more clever query which can return all the data you need in one resultset
[00:16]<zdz2jd>+vlet i try this allrady but then its used system resouce to manage
[00:17]<zdz2jd>+that's why i use directly mysql power
[00:17]<zdz2jd>+but i have to use limit
[00:17]<vfnv>+can you paste code to pastebin.com?
[00:17]<zdz2jd>+yes sure wait
[00:17]<zddzz>+airboy: you can limit the number of connection made by mysql through ini, but what Vlet is saying is very true.
[00:19]<zdz2jd>+http://pastebin.com/763452
[00:19]<zdz2jd>+i have only 50,000
[00:19]<zdz2jd>+rows
[00:19]<zdz2jd>+yet
[00:19]<zddzz>+airboy: anyway, besides reworking your code for better resource usage, check if persistent connections to mysql are enabled.
[00:20]<zdz2jd>+i can check by phpmyadmin or phpinfo();
[00:20]<zdz2jd>+?
[00:21]<zddzz>+airboy: phpinfo... mysql section







