« first day (481 days earlier)      last day (4485 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
sigh I just wish centos had a GUI and drag and drop
 
so, shopping carts.. what do you fancy?
 
@CarrieKendall 90% of everything is crap.
 
Good evening
Could someone help me with a mod_rewrite ?
 
@Charles so the 10% then?
 
@Charles , you are way too optimistic
 
yesterday, by Charles
If it's a mod_rewrite question, use http://martinmelin.se/rewrite-rule-tester/ and turn RewriteLogLevel to 3 :p
 
Well it sort of involves PHP as I need the rewrite to pass a variable to a php script .
 
@CarrieKendall Eh. I've never used one I didn't write myself (because all the wheels I could find were octogons and needed to be reinvented). My dad's little side business has had luck with the Wordpress eCommerce plugin, though then you'd have to worry about, well, Wordpress.
 
@charles yeah wordpress is a no go
 
Kinda figured.
 
6:07 PM
@Charles i have played around with a few and felt the same way generally.. i am considering writing my own, but i am foggy on the merchant-side
 
@CarrieKendall Thanks for the link
 
@CarrieKendall Payment system integration is always the hardest part.
 
yw
@Charles yeah, i don't think i am skilled enough to venture there yet. how long did it take for your build? was the cart-side complex or did you stay simple?
 
@Charles 100% of everything is, or was at one point, crap. think about it
 
@CarrieKendall For work, because the things that are being ordered are complex, it ended up being more complex. Go fig. The one I'm doing for my own external thing is going to be pretty simple as well, but I have yet to decide on a payment method. Kind of leaning towards Stripe, as they seem nice and simple.
@rlemon This is indeed true.
 
6:14 PM
so when people say "You're a piece of crap!" I respond with "Thanks for noticing... you're looking rather shitty today as well, what a good time to be alive!".
 
@Charles I like the look of that.. plus 2.9% beats paypal
 
Hello All...
I have one problem with Ghost script...
Anyone have idea about it ?
please see my question at
http://stackoverflow.com/questions/9206587/ghost-script-not-working-in-on-windows-2003-using-php-script
 
@CarrieKendall And looks to be many times easier to integrate than Google Checkout or Amazon Payments.
 
anyone ?
 
@Charles I used Google Checkout just to learn more about it.. I didn't mind it.. but the whole third-party checkout deal is not worth the publicity they promise
 
6:21 PM
@Charles are you any good with rewrites / regex?
 
@Milap what is the PHP code you are using to run the shell script?
 
@knichol
exec (gs -sDEVICE=jpeg -dJPEGQ=100 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dDOINTERPOLATE -sOutputFile=".$SavedPath."_%d.jpg -dSAFER -dBATCH -dNOPAUSE -r72x72 ".$pdf_file)
 
@FrankAstin I dislike mod_rewrite with a burning fury of a thousand supernovas.
 
same written in My php file..
 
@Charles ah , why's that?
 
6:24 PM
@FrankAstin I can never at any point remember what any of the bracketed modifiers at the end of most lines do, and always end up stumbling my way through blindly until I give up and crank the debug level up to figure it out.
 
@Milap Is the GS /bin/ part of the windows system PATH?
 
@knichol Yes
 
Dan
@Milap exec offers two optional parameters for the output and return value. Have you checked those to see if they give any helpful information?
 
@Milap try using $output = shell_exec($cmd); echo "<pre>$output</pre>" - and see if an error is printed out.
 
@Dan Yes , i tried everything from PHP scripts , also tried using system function , but no luck
@knichol I will check your suggetion.. can you update your ans on my question ?
 
Dan
6:32 PM
@Milap What happens if you call that same command from the commandline?
 
@Dan It is working perefect..
 
Dan
@Milap even if you move the the folder your php script runs from?
 
@Dan I have created one folder in public_html and my php script runs from that folder
 
Dan
@Milap If you navigate there on the command line and it works from there then it might be a permission problem
 
@Dan I am not able to give permission on IIS server using my user..
@Dan I need root access to give permission ?
 
6:38 PM
@Milap did either the debug code we provided (either one) provide any more details?
 
Dan
@Milap I am not familiar with IIS. Can't help you with that, sorry. But it's only logical that the script will need permission to run gs
 
@NikiC @salathe is there any programmatic way to get the default values for the default http stream context?
 
@knichol No , I am not getting any error from the php script , thats y i am not able to go ahead with this..
@Dan Yah , i am also not aware how to set persmission in IIS ... but anyway thanks for sharing..
 
@Gordon stream_context_get_default + stream_context_get_options ?
 
@NikiC gives me an empty array
 
6:41 PM
@Gordon sounds reasonable ^^
 
@CarrieKendall Hello
 
@Milap ?
 
@CarrieKendall Did you edited my question ?
 
@Milap yes, you were explaining your problem within the code block.
 
6:43 PM
@CarrieKendall ok , what did you change ?
@CarrieKendall i am new to stackoverflw..
 
you had the following:
In phpinfo page, it shows installed. Also, i am able to generate .png file using Command line interface, but when i am trying to generate a .png file using PHP script it is not working.
 
@CarrieKendall I should put it out of code.. right ?
 
Yes, because you're EXPLAINING.. Therefore it is not CODE
 
@CarrieKendall Thanks..
 
@Milap check this out: myfaqbase.com/q0000843.html
 
Dan
6:46 PM
@Milap Carrie just corrected the formatting of your post.
 
@Dan Yah i know , i just wanted to know , what did she correct
 
Dan
@Milap You can review the edits when you click on the word 'edit'
 
@Dan Ok
@knichol Thanks .. i will check it
 
hey all
im having a weird mysli execute error
Data too long for column 'something' at row 1
the data is radial105 and the column is varchar(45)
    $prepareQuery = sprintf("
        UPDATE `%s`
        SET `%s` = ?
        WHERE idconnections = ?
        ", $this->modelTable, $this->posts->column);

    $statement = $this->dbHandle->prepare($prepareQuery);
    if($statement){
        if($statement->bind_param('si', $this->posts->value, $this->posts->id)) {
            if(!$statement->execute()){
                return "Execute error: ".$statement->error. "({$this->posts->value}, {$this->posts->id})";
            }
            else {
                return true;
^^ thats the code
what could the issue be? ...
:-(
 
@Charles thanks for showing me stripe, looks like a new personal project
 
6:58 PM
can anyone help? :-(
 
Can anyone tell me where to start to learn for building cms websites?
 
@CarrieKendall Glad to provide the pointer.
 
@Nebunel depends how you want to go about it, from scratch or using a framework?
 
@Nebunel youtube has some tutorials on how to start using PHP
 
Dan
@Neal Can you verify that the contents you are trying to write is what you expect it to be?
 
7:01 PM
@Frank Astin from scratch using an engine for templating
 
lol
 
@CarrieKendall i watched some but i don`t understand much of it.
 
hello all
wow crowdy in here. Are we on meta again? ;)
 
@Nebunel , you start by looking at other CMS systems
 
7:03 PM
@FrankAstin isn`t that for begginers?
 
@Nebunel nope
 
you could even create a mindmap , to illustrate features you find useful
 
@FrankAstin then i will try it.Thank you
 
@Dan hmmm for some reason my AJAX script was creating extra padding, and the string was MUCH longer...
odd
 
@Nebunel well the earlier chapters , but it has eveything you need
 
7:04 PM
@CarrieKendall thank you for the advice. I will try to look at other cms systems to
 
Dan
@Neal Well that seems the cause then ;)
 
@FrankAstin now i saw what the book is about in the contents pages. It has some good parts and very interisting. Thanks again.
 
@Nebunel No problem .
 
7:06 PM
@Nebunel you're welcome.. the youtube videos are about as basic as they get so, you might wanna learn more about what you are trying to build before you attempt the bear itself
 
@CarrieKendall i will remember that.
 
SO's first troll
 
7:12 PM
i have this problme my code dosent wurk. can u plz tall me y? i copyd it frum the internet so it shud wurk! plz help
 
@CarrieKendall It would even make it worse when they say: It's URGENT!!!!!1111
 
I like how broken English compounds the humour (or is that irritation) of the plain lack of trying in those questions.
 
@NikiC I thought I had favorited a nice reference question about not parsing HTML with regex, but I cannot find it anymore. Do you have a good one for me?
 
@CarrieKendall Urgent = "I told someone I can do something I really can't do, but the internet has all the answers. My lack of experience and knowledge will be absolved by people who have nothing better to do than solve my life's problems for me. All while I sit here and do nothing."
:)
 
my personal favorite is google translate quesitons: AHEM
I have am problems with code and worked since last the changes please review my answer the questions. ThanksQ!!!@!#!
 
7:19 PM
what's up y'all? i need you're help guys
0
Q: PHP: reverse able unique hash

Mor SelaI'm building a browser in PHP (browser in browser (: just for fun ) , and i have come across a major problem. I need to short a URL into something shorter (encoded) which can be reverse able. for example now i process the page like that : site.com/stackoverflow.com/questions/9217271/php-revers...

 
You are talking about a URL shortner, like bit.ly
 
@tereško how you doing my old helper
 
@MorSela, why don't you try with PHP mcrypt ?
 
@sh4nx0r manuall please?
 
7:21 PM
@knichol LOL if only they knew the true nature of a programmer.. they would stay away from SO
 
Hopefully not that dumb of a question but I'm brand new to php: I want to create a xml that retrieves strings from my mysql database. In order to create the xml file I'm using php (that one was obvious). When I click on the php file it gives me back the strings from my database, but I need the xml file in order to use it for something else. So... Am I overlooking something? I'm using DOM btw to create the xml file.
 
@MorSela basically its an encryption - decryption thing.
 
@sh4nx0r yeah im reading about it now my friend , be right with ya
 
@CarrieKendall laziest (and most efficient because of it) problem solvers on earth. We solve problems once so that we don't have to do it again :) So, naturally we hate solving peoples 'urgent / life' problems.. because they are always the same problem. Am I right? Haha.
 
in JavaScript, 21 hours ago, by Zirak
Pro-tip: If someone shows you a graph, and they didn't label the axes, shoot them before they reproduce.
... just wanted to share
 
7:28 PM
@Blade your explanation is lacking a lot.. click on the PHP file? also, if you're using the DOM to create the XML file then why did you say you're using PHP? derp..
 
@tereško pointing out Darwin award candidates is always appreciated!
 
@CarrieKendall I think that is DOMDocument
 
clarification is key.. you can't go throwing the DOM around like its some slutty model.. cwutididthar?
 
@CarrieKendall Yeah clicking on it is just giving me the strings back. And ye its DOMDocument, didnt know there was a difference, sorry.
But nevermind, I think I got the solution :)
 
lol.. i reframe from posting for the next 5 minutes.. i have to go cry in a corner. you should write a question and not explain your issues but just tell people to comment if they want to help.. it always works.
 
7:33 PM
My bad, I'm sorry, I did not want to lose your faith in humanity ;)
 
internet - best tool for shattering your last hopes for humanity since 1960s
4
followed closely by daytime tv
 
Ye sorry again, I will bang my head against a wall to punish myself...
 
you shouldnt even be allowed to eat cookies..
 
^^"
 
@sh4nx0r ohu man , i'm not familiar with this series of function , i may can get help over here?
 
7:39 PM
@tereško programming is like sex. One mistake and you have to support it for the rest of your life. hahaha
 
ehh .. yes , so it is
 
@MorSela This might get you started. itnewb.com/tutorial/… . Keep looking , meanwhile i find an easy tut for ya.
 
@sh4nx0r thanks brothr appreciate it
 
@MorSela, Yw mate. This is far more simpler. t4vn.net/tutorials/showtutorials/…
 
@sh4nx0r i think i found my function :) long stackoverflow link to iªÛlX_8ׁ{(ìE_xÿÒ h;ït.í;"d
 
7:49 PM
@MorSela, unable to click it.
 
@sh4nx0r it's just example of the output
is it legal chars to link?
 
@MorSela were you able to decrypt it ?
 
@sh4nx0r yeah
this messed up combination is about 0.3 of the size of the orginal link
 
@MorSela , fine then. you can go with it.
@MorSela , was the code from itnewb or t4vn ?
 
@sh4nx0r first one
i mean the first link you gave me
 
7:59 PM
@MorSela, line 75 is the PBKDF2 implementation , there you can specify the strength of the algorithm.
 
@sh4nx0r checking on that , right be with ya
@sh4nx0r from a brief look i think the pbkdf2 function can't be reverse able , am i right??
 
@MorSela , that function just generates the strength (complexity) of the plain text
 
this is annoying, sql works just fine in phpmyadmin, not on php page
 
8:16 PM
@JMRboosties, your connection string on PHP maybe wrong.
 
yea thats what im guessing but i cant figure out where i go wrong
gives : Array ( [0] => 00000 [1] => [2] => )
disregard that all
figured it out, one of the values wasnt being generated correctly
thanks anyways
 
@sh4nx0r yo tanks dude
leaving now :) lot of work waiting
 
@MorSela, tc mate
@JMRboosties, am glad you it working.
got it*
 
9:12 PM
i'm trying to implement a half assed HMVC.. but I don't get it :P I read about HMVC and i'm looking at the video tutorials for bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/…
but it seems like it is more than what I need...
paste.ubuntu.com/835761 here is a sample of how I was doing things before I read about HMVC
I obviously want each 'section' within the main controller to be separated... however i'm not 100% where to start with this..
ohh, I should mention the roadblock is because I still want the routing to be dashboard/information/some_method and not just information/some_method
hey @JohnMerlino
I hope this all makes sense.
the reroute function was my attempt to allow the 'subsections' to live within the top level controller... however i'm sure you can see the pitfalls of this.
 
hmmm
 
9:28 PM
@rlemon , you might find this useful
just keep in ming that it is from year 2010 , and code examples have had time to rot
 
yeah I saw thart article too
 
class Foo extends CI_Controller {

	public function __construct() {
		parent::__construct();
		if( /* no data is passed in the uri */ ) {
			// display landing page for this controller
		} else {
			// create new controller as passed n by the uri
			// all methods should be executed from this sub-controller
		}
	}

}
 
javaworld.com/javaworld/jw-07-2000/jw-0721-hmvc.html .. and this article too ( year 2000 ) ... it is kinda the definitive one for pattern
 
cool.
 
though .. emm .. why are you trying to do this in CodeIgniter ?
 
9:30 PM
what you can do is modify the routes
and create the new controller that way, codeigniter supports regular expresions in routing system
 
or are you using it just as an example ( if so , i would suggest to use something else , as it is quite bad codebase with fanatical userbase )
 
$url_parts_pi_ui = explode('/',$_SERVER['REQUEST_URI']);
$reserved_routes_pi_ui = array("a", "b");
if (!in_array($url_parts_pi_ui[1], $reserved_routes_pi_ui)) {
$route['([a-z_-]+)'] = "a/inded";
}
index
 
@tereško because after a first attempt and a failure at writing a mini framework to build the app on I decided to swallow my pride and use a big boy framework.. symfony2 and CI were what I narrowed it down to and CI had a shorter learning curve.
 
@JohnMerlino, please use for the code fragments
i wounder who suggested you to use CI ..
 
about 10 different SO questions about 'which php framework to use for X type application'
 
9:34 PM
lol
 
symfony2 > CI > Cake > Zend was the general consensus
 
CI is not bad, its pretty good, and much better than the laternatives
 
CI is extremely bad
 
with regards to php
 
for example , no components of it can be tested outside of framework
there is global state everywhere
 
9:36 PM
@tereško not like I can compare with anything.. however I have been reading that the newest versions of CI on github (which is what I have) are much improved over the last. (arch, code, ect..)
having never used a php framework before CI, I'm really not the person to comment on this. I was taking the word of the community.
@JohnMerlino this would basically be removing the dashboard controller and just routing /dashboard/X directly to the X controller?
I will tinker in the routing file.
 
@rlemon , so , you decide to go with one of worst ones ...
 
5 mins ago, by rlemon
symfony2 > CI > Cake > Zend was the general consensus
 
you basically need to use the routes to grab the information passed in the uri, and based on that information, you need to direct the user accordingly. I did this in codeigniter in order to build a CMS which allows people to create vanity urls.
 
the community sees it as the second best of the evils.
 
taking the word of same community which still uses mysql_query() and global variables
 
9:40 PM
dont even consider cakephp, that is crap
 
@tereško do you disagree with that assessment of good to bad frameworks?
 
kinda
 
@JohnMerlino I looked at them all... based my decision of stigma and learning curve.
 
custom solution > framework :)
 
@rlemon , you might not be aware of it ( as is "php community" ) that there are more then 4 frameworks for php
 
9:42 PM
@tereško assuming the app is nothing more than a glorified CRM what framework would you suggest.
 
and that php has had 5.3 version available for 3+ years
 
@tereško obviously, i'm not new to the internet. However these '4' seem to be the 'big players' which is to say there is a large community surrounding them.
 
Does anyone here have issues with Netbeans being REALLY slow when the GIT plugin is turned on?
 
@tereško what do you consider a good php framework?
 
@knichol custom solution == tried and failed. === would take too long to succeed without a framework. php is not my bag.
 
9:45 PM
@UmairAhmad , not "good" , but in "doesnt make your eyes bleed when you read the source" list would contain Symfony2 and Kohana3 + the "interesting" list with Larval and Lithium
 
@rlemon that does tend to be the reason frameworks exist! In all reality, yes most projects will require a framework for sake of 'speed of coding'. I think this is a case of pick a beast and attempt to master it.
Each framework has its faults. Cake and CI have smaller learning curves than the bigger symphony and Zend.
Symfony*
 
I do want to tackle Symfony at some point.
just not right now.
 
@rlemon the only "general consensus" I've ever seenin the php communit is that "everyone else is doing it wrong"
 
@edorian that is certainly true, and definitely not limited to PHP, or even programming.
 
my main problem here is the fact that someone who is regular visitor of this chat room went with "community recommendation"
 
9:48 PM
@knichol point taken :)
 
hoi @edorian
 
@tereško Perhaps community is out of context?
 
anyone try out Yii? looks promising
 
@edorian im not doing it wrong. you are doing it wrong!!!!11eleven
 
While we are talking about very sad things: asheepapart.blogspot.com/2012/02/…
 
9:50 PM
@UmairAhmad , i worked with it for ~4 month .. not good
 
@tereško what else can I go off. I am here talking to the 'community' looking for suggestions.
 
@tereško Laravel uses quite a few static functions. I don't like that very much. Looks very clean otherwise.
 
@edorian Why must people spend their time making it more work to write code ;)
 
@edorian more very sad things: w3.org/TR/2012/NOTE-html-xml-tf-report-20120209/#uc05 - even considering that as a resolution is heresy.
 
@rlemon , i would have asked edorian , Gordon and ircmaxell which framework they would use , if they HAD to choose one
 
9:51 PM
 
@Gordon That is sad!
 
@tereško I asked the latter two and they refused to answer unless I provided detailed requirements. (I only said, think CRM/CMS)
 
obviously
 
but with the understanding that php is not new to me... but all of the frameworks are.
 
"can make CRM" is not a requirement for a framework
 
9:53 PM
@rlemon +1 on smbc
 
no, but tbh I don't know all of the requirement. It is that type of "seat of your pants" projects with ever changing scope and requirements..
 
@Gordon I like the 'U MUST WORK ALWAYZ!' approach of XML.
 
so I was looking for a stable, clean, easy to use / understand framework to get my feet wet with.
 
Programmers are too lazy too much of the time.
 
I don't know my Pinto is a shitty car (compared to others) until I see a good car in action.. or someone tells me so.... then I can see the light.
 
9:55 PM
@rlemon I'll give it a try: Do you want a maintainable project? No: go with customizing wordpress; Yes: Use SF2, if you don't want use ZF and work around their controllers. There is no other option. All the static, scaffolding rapid development frameworks are just as unmaintainable pointless stuff so using it would be like wordpress with more work and lying to your self that you are actually creating value
 
@LeviMorrison draconian error handling is draconian
 
say you do a query and get 10 rows back, is there a more efficient way to tally up all the int values of a given column than iterating through the result set and adding manually? something like COUNT(*) in sql but different obviously
 
I think what would be more helpful if a suggestion of which to use could not be provided was a list of "OMG STAY AWAY FROM THESE!"
 
If it has to be something "done" and I'm not allowed to say "use components where needed"
 
OMG STAY AWAY FROM THESE! => *
 
9:58 PM
@edorian SF2 is on my list to learn ^(read up) however I don't have the resources / time to sit down and tackle that right now... CI seemed at the time to be the lesser of evils.
 
If you don't have time to build something use wordpress and crap into that. At least you are not wasting time buy building something that looks maintainable for 2 month
 
@JMRboosties , you should know that COUNT(*) and COUNT(user_id) are note the same
 
(but thats just my opinion on things bla bla disclaimer)
 
@edorian lol, so just say to hell with it all and cookie cutter the entire project...
 
0
Q: PHP REGEX: removing all href attributes

Mor Selai was trying to remove all href attributes from the A' tags from the HTML code source , for example : $site = file_get_contents('http://www.site.com/'); $site = preg_replace('~href="(.*)"~', '', $site); echo $site; kind of removing the whole site , what is wrong here?

 
10:00 PM
"I don't have time to do it right" => "Then don't" ; At least you have results very fast and you can see if the idea behind the project works
 
bueno
 
You need to throw it all away anyways so it doesn't matter how much you sacrifice along the way :)
 
@edorian i'm building a smart shipping/sales/inventory management system for a small company. I don't think I can do it all in WP
 
@rlemon , in this chat room two most hated frameworks are CodeIgniter and CakePHP ( opinions change on weekly basis ) , the ZF2 is usually left at piece, because it is library-like framework and despite all the flaws , it lets you dig your own hole
*peace
 
@tereško im actually looking for the literal total of ints in a column
 
10:02 PM
Well.. I think zend mvc is broken but I say that about every mvc component out there so .. yeah :)
 
COUNT(col) gives the # of non-null entries
 
@JMRboosties its SUM not COUNT then
 
well, it's too late to change the game now. I've spent two weeks working with CI trying to understand how it all functions. So new framework for version 2
 
you should not learn a framework which does not support php5.3
 
anyways 5pm
 
10:03 PM
not by your own choice , at least
 
@MorSela i've added the duplicate to solve it. delete question please. thanks.
 
I should not, but I will. Kicking this horse is not going to get you anywhere.. with that said I believe you all that it has it's issues and I will look at SF2 again and possibly ZF2..
but not for this project.
 
@Gordon just did
 
anyways.... bbl
 
cya
 
10:05 PM
@MorSela thank you :)
 
But the requirenment are interesting
"a smart shipping/sales/inventory management system for a small company"
 
and vague
 
I'm a big fan of "write your own tools" but that seems very interesting from a business standpoint :)
 
@tereško thank you
 
@Gordon just to let you know it wasnt the same question at all , it's like 80% difference
 
10:10 PM
@edorian , do you extend this to javascript too ?
 
I don't see how the language plays into that @tereško
 
@MorSela of course it's the same. you asked how to remove all href from a, which is the same as "how to remove attribute X from element Y". Once you understand that it is elements and attributes all these problems are the same. and once you understood that you dont want to do that with regex but a dom parser it gets ridiculously easy. check out my answer in the linked duplicate.
 
Tools in the "what we internally use to drive business" sense
 
@edorian , well there is a clear distinction between "javascript programmers" and "jquery programmers"
 
@Gordon he asked to remove ALL attributes from ALL elements , i asked to remove specific attribute from a specific tag.
 
10:14 PM
@MorSela no, he didnt
1
Q: php regexp: remove all attributes from an html tag

andufoi have this html code: <p style="padding:0px;"> <strong style="padding:0;margin:0;">hello</strong> </p> but it should become (for all possible html tags): <p> <strong>hello</strong> </p> this is driving me crazy, is there a regexp expert that ...

he asks how to the remove the style attribute from all elements
but whether you pick them from all elements or just the a element or whatever element is cake once you understood how it works
 
@Gordon can you help me customize you're code for a sec?
 
@MorSela customizing my answer to that is as easy as changing $nodes = $xpath->query('//*[@style]'); to $nodes = $xpath->query('//a[@href]');
 
@Gordon i have written this line $html = file_get_contents('http://www.fxp.co.il/'); and than you're code , thousands errors occurred ..
 
Hrm, that's a first. Found something that works in FF and IE, but not in Chrome.
 
10:18 PM
Hi folks. I'm building an application that, theoretically, sends hundreds of requests to a REST API (via a cURL-based libary). The problem is, it seems to be synchronous - I have to wait for a response from one request before I can send another.
Is there any way to offload this to another process or kill a cURL connection immediately after the request?
 
a sec
 
@MorSela you can find a very well written XPath tutorial at schlitt.info/opensource/blog/0704_xpath.html
 
@Gordon pastebin.com/hajVLtLk run this and see errors
 
@MorSela see mine please
 
10:23 PM
codepad.viper-7.com/gBdIu4 ?
 
yes
 
@Gordon the actuall meaning was to change the Href value to something like that:
href="...." to href="implants..." implants is something i put in there
 
15
A: Grabbing the href attribute of an A element

GordonReliable Regex for HTML are difficult. Here is how to do it with DOM: $dom = new DOMDocument; $dom->loadHTML($html); foreach( $dom->getElementsByTagName('a') as $node ) { echo $dom->saveXml($node), PHP_EOL; } The above would find and output the "outerHTML" of all A elements in the...

shows how to do that
 
dam you're good
 
@MorSela so, it is codepad.viper-7.com/7IE6zb
 
10:29 PM
@Gordon can you try it? it messing everything up
@Gordon wait a minute let me try handle this and if i can't i'll tell you ok?
 
@MorSela ok
 
@Gordon thanks broth
 
@MorSela I love stew related complements
 
@Gordon :D
let me tell you what the idea so you can help more specific
the whole idea is to make a "browser" in php which is means to replace all the current page links with like mysite.com/open.php?open=*site url*
@Gordon got it or need more explaining ?
 
> You've earned the "Enlightened" badge for Generate PHP Interfaces.
Enlightened PHP Interfaces. :P
 
10:40 PM
@MorSela yeah, got it. but the info I gave you already should be enough to get that working. dont know what else to explain about it.
@edorian my tool!!!11eleven ;)
 
@Gordon i got progress , soon i will show you results
@Gordon i have done it , here is the online version: browser.breet.co.il
and here is the code : pastebin.com/YH3RPVHY
my question is what happen to the page? where is the style?
 
@MorSela the stylesheet is likely referenced with a relative path. check with firebug net panel to see where it tries to load it from. if its relative, you have to change the url to be absolute.
 
@Gordon i kind of tried to understand this sentence but i couldn't , could you try to explain it widely?
@Gordon still alive my friend?
 
11:00 PM
@MorSela i dont know whats causing it. the stylesheet is referenced from the cdn but for some reason it wont load.
 
@Gordon than i may open a question if you don't mind ok?
 
@Gordon either way i challenge you to solve this :) for knowledge reasons ofc ;)
 
@MorSela nah, will go to bed soon.
 
@Gordon tomorow ;)
@Gordon thanks for everything so far , appreciate it!
 
11:06 PM
@MorSela your welcome
 
@Gordon maybe the href changes on other tags?
@Gordon here it is... if you want you can visit it tomorrow when you have time , i'll be appreciate it very much! stackoverflow.com/questions/9220428/…
0
Q: PHP DOM: doesnt load css stylies

Mor SelaI have this code which getting html code of page and than replace all the HREF attributes of the A' tag to redirect it to my site , than my site load the page and again redirect the links and so on... <?php libxml_use_internal_errors(true); // hide the parsing errors $dom = new D...

 
Is it possible to use HTTPS/SSL with fsockopen?
 
@MorSela no one can answer that without you giving either the sourcecode of the HTML returned by DOM and/or the link to your site.
 
Ooh, thanks for the link
 
@Gordon i don't really get what you trying to say , you may can edit it please?
 
11:21 PM
@MorSela put the link to browser.breet.co.il so people can see whats happening
 
@alright
 
nite nite
 
@Gordon someone solve it for me , it's working !
 
@MorSela great
 
@Gordon don't worry you still the master here
 
11:45 PM
Netbeans 7.1 is a memory hog.
Version 7.0.1 wasn't great either, but my average increase from 7.0.1 to 7.1 is 600Mb, and sometimes spikes to 1Gb.
 
00:00 - 18:0018:00 - 00:00

« first day (481 days earlier)      last day (4485 days later) »