Hey Guys I have a Problem with my PHP Script it doesn't work ...
I don't know why it doesn't work or which skills I have to improove.
I would be thankfull for help
The Code is here : http://pastebin.com/gkFBEJS0
Thanks a loot
Chris
Your first fatal error is easy, you are calling $db->query($db_var_one) and $db is not an object.
It looks like you need $db_cnct_one instead.
Related
I have installed League\Csv\Reader which uses SplTempFileObject and when run comes back with Error:
Class 'App\Controller\SplTempFileObject' not found
I cant seem to find a Use statement, any help appreciated code below:
$writer = Writer::createFromFileObject(new SplTempFileObject());
Thanks
Richard
PHP namespacing 101, you need to use \SplTempFileObject (backslash prefix) or add use SplTempFileObject; at top of file.
I have a little problem, I want to do accesible my webpage(with Moodle), I used http://jigsaw.w3.org/css-validator/ and I have a lot of errors, the uri is on: theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.css but I don't found it.
I look it the file(yui_combo.php) but I dont found anything, can anyone help me? thanks
Ok this file is generated automatically from files:
--versionyui--/widget-base/assets/skins/sam/widget-base.css
--versionyui--/widget-stack/assets/skins/sam/widget-stack.css
--versionyui--/overlay/assets/skins/sam/overlay.css
--versionyui--/widget-modality/assets/skins/sam/widget-modality.css
--versionyui--/panel/assets/skins/sam/panel.css
At least in my case
So I am trying to parse content from an infoboxe template in a wikipedia page. But I have to use PHP because I cannot configure my server alone and I haven't the permission to do that.
(So i cannot use the framework Dbpedia)
I need help because I am trying to understand how I can parse this object Infoboxe.
Example on this url : http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvsection=0&titles=Roger_Federer
Plz Don't tell me to look the documentation, it's boring and not very usefull.
I keep going trying to parse this content but I don't understand how I can do with PHP ?
THhhhhxxxx to help me !! :)))
You can call this python script using exec():
https://stackoverflow.com/a/9208881/956397
exec() manual: http://www.php.net/manual/en/function.exec.php
I'm working on some code written by another developer and it is written in PHP. There is a line of code that is causing an error. I'm thinking that it is something you have to enable for PHP because it works just fine in another environment but doesn't work on the new environment and I haven't changed the code yet. The line is:
$structure->parts
$structure is a variable I've passed in but from a search online parts is a property. The error I'm getting says:
Undefined property: stdClass::$parts
Thanks for any help or ideas anyone might have.
Looks like parts doesn't exist there. Try running var_dump($structure) to get a better picture of what you're really dealing with.
I am trying to use decodeURIComponent in a JS function inside Facebook instead of using urldecode in PHP. But I keep getting the following error :
Error: a194182563946198_decodeURIComponent is not defined
Can anyone kindly help ?
Thanks.
-
Ahsan
On a second thought, I am using a PHP intermediate file that does the work on ajax call. :)
-
ahsan