logs archiveIRC Archive / Freenode / #php / 2006 / February / 26 / 1
PktLoss
when i try to make php 5.1.2 I get "collect2: ld returned 1 exit status \n make: *** [sapi/cli/php] Error 1"
Does anyone know what might cause this?
Coeus82
http://ca3.php.net/simplexml
Myconid
PktLoss: This isnt exactly the place to diagnose compile problems..
PktLoss: check the mailinglists.. etc
itrebal
its not? i coulda sworn it was a good place
Myconid
PktLoss: then answer his question.
erm..
itrebal: ..
itrebal
is it or is it not a good place to diagnose PHP compilation issues, in a PHP channel?
PktLoss
I kinda thought it was, i've helped people before
Artnez
anyone know if google/yahoo homepages get real time info or cached info?
itrebal
Artnez: like what?
         

Artnez
i'd think the sites they were hitting would have bandwidth concerns
you know, headlines ... sh*t like that
Myconid
itrebal: whatever dude.. my statement was regarding the fact he probably wouldnt get an answer. and I think that was a correct assertion.
itrebal
they probably get chached info, but that is kept fresh often
Myconid
Artnez: they are cached..
Artnez: any major site is fully cached
Artnez
Myconid: this was my assumption
Myconid
Its trivial to invalidate the frontend cache servers when content changes..
itrebal
doesnt matter if he gets an answer or not, this is a channel to ask about php compilation issues
Myconid
itrebal: who cares?
Artnez
though i wonder if it's plausible to get fresh results with a cron job or every page load
Myconid
itrebal: i was asserting the fact he probably wouldnt get a reply.
itrebal: deal with it and move on
Artnez: in what sense?
Artnez
well, if you're using the XmlHttpRequest() object or doing a page load, the content could be updated based on a timestamp
which is, i'm sure, how most small time sites do it
but i'm thinking that it may be a better solution to have a cron job run through periodically and update expired feeds
itrebal
Artnez: the information on google homepage is not cached
Artnez: i just tested it
Artnez
itrebal: how did you test it?
itrebal
Artnez: well, i guess i have to ask exactly what you're wondering is cached
Artnez
itrebal: say, the first 5 results from People Magazine
updated every 20 minutes or so
itrebal
Artnez: so the RSS feeds?
Artnez
yes, of course
redalpha
Hi
Myconid
news.google.com ?
itrebal
no, the google homepage
         

Artnez
http://www.google.com/ig
redalpha
How can i share vars between classes at php4 ?
itrebal
they are not cached, i just tested it with my RSS feed 3 times, i completly changed it 3 times and every time i refreshed google homepage it was up to date
Myconid
itrebal: that doesnt mean it isnt cached.
Artnez
redalpha: I'm assuming you're referring to inheritence, in which case ... class2 extends class1 :)
itrebal
Myconid: how so?
redalpha
Artnez i dont want to extend since i got a hundred classes
Myconid
itrebal: just because you see frequent changes on one part of the site doesnt mean the other parts, or the entire thing isnt cached.
Artnez
itrebal: but maybe it doesnt cache your RSS feed
Myconid
itrebal: but neither of us is a google developer, so neither of us really know.
itrebal
that is correct
Artnez
i'm just thinking whta the better solution is
Myconid
itrebal: ive noticed you like to start argumetns for arguments sake alot.. hows that working out for you.
Artnez
imagine the hits that Google and Yahoo get
itrebal
Myconid: i'm just having a really bad idea
Artnez
so that means that all the hits they get, all of their feeds get
which is HUGE
itrebal
day*
Myconid
Artnez: you really need to define what 'cached' is..
Artnez
thus google would be ripping up the feeders server load
Myconid
Artnez: is getting the weather every 15 minutes and storing it in a local database 'caching'
Artnez
Myconid: keeping, say, the last 5 articles from People magazine
_StarScream
with this pattern on a preg_replace i'm getting a Unknown modifier '|' error $pattern = '/( \.|/|\\|(_){2,}|=|\(|\)|\?|\*|%|;|\s)*/';
Teolupus
c ya
itrebal
Myconid: i apologize for anything that might have portrayed me as a di*k..
Myconid
or is storing rendered html in a file (squid style) caching.
PktLoss
I might presume that there's an inflection point in the usefulness of caching data vs loading at pageload, for unpopular blogs/feeds it's better to load on pageload, for popular items, it's better to cache and update on a schedule
_StarScream
but this regexp works fine in kregexpeditor
Artnez
Myconid: the first one... the second one they do for sure
redalpha
I got several classes, and for every class i add a value in a array, and in my last class i want to gather these array values, but i cant see them from that class. i am using php4 so public is not an option
GarethAdams
_StarScream: you need to escape your / in a regex
Artnez
once the user makes a change, the HTML cache can be updated
redalpha
Anyone got an idea ?
GarethAdams
... '/( \.|/| PHP sees this / as the end of the regex and the | (and the rest of the string) as a modifier
Myconid
Sometimes when im bored I look at wikipedias engineer notes
itrebal
Myconid: link?
Myconid
itrebal: one sec.
_StarScream
GarethAdams: i'm only using / becuase thats what the example uses on php.net
itrebal
Myconid: i lied.. i'm not having a bad day, i'm having a bad few weeks
_StarScream
GarethAdams: i don't need to check for those, but it doesn't like it if i take out the / either
GarethAdams
no, I mean the / in your pattern
BigE
bleh!
heh.
_StarScream
GarethAdams: ah ok
GarethAdams
the second / in the bit I pasted
Artnez
itrebal: so goodbye to a few bad weeks http://www.albinoblacksheep.com/flash/badgerphone.php
itrebal
_StarScream: i would expect you to need to, but you might need to escape the |'s
_StarScream
itrebal: GarethAdams was correct. The | seem to be fine as they are operators in the regexp
GarethAdams
_StarScream: I think you're using far to long a regex
s/to/too/
itrebal
_StarScream: hehe
redalpha
I got several classes, and for every class i add a value in a array, and in my last class i want to gather these array values, but i cant see them from that class. i am using php4 so public is not an option help me please ?
Myconid
itrebal: http://meta.wikimedia.org/wiki/MediaWiki
itrebal: i forget where.. but theres all kinds of cool stuff out there.. realtime server utilization .. etc..
DogWater
if you have a form which allows people to continually update fields is there anyway to prevent it from displaying their "previous changes" when the user clicks on the browser's back button?
Artnez
redalpha: it seems you are not fully understand how OOP works. though your method is impractical... the only way I see to solve your problem is to use the Singleton pattern
google for it
itrebal
DogWater: not have it cache, beyond that - i dont thinks o
Artnez
DogWater: yes there is
haven't we already discussed this?
redalpha
a Singleton?
DogWater
i'd prefer it to go back to the first page, instead of going through 20 versions of the same page
Artnez
redalpha: yes, the singleton pattern. do a google search for it and you will see
eml
http://eml.nu/prof_class.phps <- would someone take a look at line 37? the query is right, but the result is wrong, I have to do the query (call the function) twice o.O don't mind missing ;s or }s, around 200 lines of code has been removed
Mike_
is it so hard for sites to use date('Y') for the copyright line? makes me want to punch a wall
DogWater
Artnez: Not really I think you and I were talking about getting internet Explorer errors when a user clicked the back button.
itrebal
eml: could you pastebin it? it adds linenumbers, and is terribly usefull
Artnez
DogWater: header( "cache-contro: private" ); will force the browser to refresh the page
eml
itrebal, there's nothing relevant in it, the lines that doesn't work is 37.
Artnez
eml: am i supposed to use my freakin finger?
itrebal
eml: what is on line 37?
eml
oh, haha
Artnez
:P
eml
http://pastebin.com/572414
sorry
=9
I thought you guys were talking about the rest of the class
Artnez
eml: why sprintf?
eml
Artnez, it's nicer than ".$." :P
Artnez
could just do
usr_id=$row[user_id]
but ayway
DogWater
Artnez: I'm probably not explaining this correctly. If a user is on "page2" and updates one of the form fields on "page2" and then clicks back, it shows them the old version of page2 instead of going to "page1".
Artnez
DogWater, i understand that
itrebal
eml: you may wnat to use single quotes, just for cleanlyness and speed
Artnez
which is why the only way to truly do that is to have 3 seperate pages
itrebal
though, its just a personal preference
eml
itrebal, 'SELECT ....'?
Guim
hi all, what would be the regular expresion to use if I want to catch all the occurences of substring starting with 'blah' and ending with 'blih' for example?
DogWater
Artnez: Thats what I'm trying to resolve.
itrebal
eml: yea
eml
itrebal, didn't know that speeded up, but it doesn't with my taste tho =)
Guim
would soemthing like : '^blah%blih$' work?
itrebal
eml: yea, PHP parses "" for escaped characters and variables, it doesnt for '' increasing speed
eml
itrebal, ok
Artnez
DogWater: step1.php, step2.php, step3.php ... when someone fills out a form on step1.php they are directed to step2.php ... when they are done with step2.php they are directed to step3.php ... when they hit the back button on step3.php they go back to step2.php
eml
well, does anyone of you find the problem? I have to make this query twice before it works o.O
Artnez
DogWater: You will need to use the header( "Location: step2.php" ); after the form processes on step2.php so that they wont get stuck in POST limbo
eml: make the query directly into MySQL and see if it works first
eml
Artnez, it does
Seadog
back
SexyKen
Hey guys -- I have two different databases. But I need to run queries that rely on results from tables from both..how would you recommend doing this?
Using mySQL btw.
Via PHP obviously.
Artnez
eml: try to print out the query and die();
instead of executing it
make sure the query is correct
Myconid
SexyKen: I would use mysql_query()
Artnez
(sorry, but its confusing code.. hard to decypher)
DogWater
Artnez: So only do a redirect after updating the array?
« 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 28 29 30 next »