parse error occured in my php script. this is the line in which the error was occured.
photos[$i]="base_url().'uploads/'.$productdata2[$i]->image";
help me please......
Hello,
I'm trying to learn to use PHP with an object oriented scheme. I think I understand the concept but I need real example, a forum exactly (the closest to what I want to do).
I know PhpBB but it's maybe too complicated to fully understand it so I'm looking for something simpler but still in object oriented.
Do you know any ?
Thank you
Hai,
I need a system that automatically transfer funds from one paypal account to another paypal account when i click on a button. Is there any paypal API with PHP to perform this task.
thanks
i want to display the results of students scores in a multi-vertical bar chart (red bar for correct , green bar for false) for each question,,
i already tried Google chart, but it gives me result in this way:link text
note: the bars that reached the top , should not be at top ,, only because they have the highest value (75%), Google chart makes it at top which i don't want..
any suggestions about how to draw simple vertical bar chart with php
Im trying to achieve an output like this
{"status":"ok","0":{"id":"11","title":"digg","url":"http://www.digg.com"}}
but instead i am getting this
{"status":"ok","0":{"id":"11","title":"digg","url":"http:\/\/www.digg.com"}}
this is the php code im using to generate the json
$links = array('id'=>'11','title'=>'digg','url'=>"http://www.digg.com");
$msg = array('status'=>'ok',$links);
echo json_encode($msg);
any idea what is causing this?
How I can create a crystal report in php kindly guide me so that I can make it possible. I have tried a lot of code and tutorials but un-usefull for me.
I have this function in .net code:
public class StringGenerator
{
public static string GenerateString(string hash)
{
return hash.GetHashCode();
}
}
I want to be able to call this from PHP page. Any idea how?
Hello,
I have an array in PHP which looks like that:
$test = array('3' => 5);
How could I replace the stringed array key 3?
I tried:
$test['3'] = "New value"
but it don't work, it look like that after that:
array('3' => 5, 3 => "New value")
Ok, I guess I got crazy, but really. How phpmyadmin works? Does it have his own phpmyadmin or what? And how php works? Why writing echo 'hello'; it returns hello in the browser? I am really interested on how these things really works, maybe you know any books or smth to figure it out?
Thank you.
<?php
$console = new DOTNET("ProjectX.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=KeyTokenHere-i used a real value here", "ProjectX.Core.Services.ServicX");
echo '1';
?>
The error message:
Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070002] The system cannot find the file specified.
What's the problem can be?
Hello Everyone,
I am trying to build a dynamically generated unordered list in the following format using PHP. I am using CodeIgniter but it can just be normal php.
This is the end output I need to achieve.
<ul id="categories" class="menu">
<li rel="1">
Arts & Humanities
<ul>
<li rel="2">
Photography
<ul>
<li rel="3">
3D
</li>
<li rel="4">
Digital
</li>
</ul>
</li>
<li rel="5">
History
</li>
<li rel="6">
Literature
</li>
</ul>
</li>
<li rel="7">
Business & Economy
</li>
<li rel="8">
Computers & Internet
</li>
<li rel="9">
Education
</li>
<li rel="11">
Entertainment
<ul>
<li rel="12">
Movies
</li>
<li rel="13">
TV Shows
</li>
<li rel="14">
Music
</li>
<li rel="15">
Humor
</li>
</ul>
</li>
<li rel="10">
Health
</li>
And here is my SQL that I have to work with.
--
-- Table structure for table `categories`
--
CREATE TABLE IF NOT EXISTS `categories` (
`id` mediumint(8) NOT NULL auto_increment,
`dd_id` mediumint(8) NOT NULL,
`parent_id` mediumint(8) NOT NULL,
`cat_name` varchar(256) NOT NULL,
`cat_order` smallint(4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
So I know that I am going to need at least 1 foreach loop to generate the first level of categories.
What I don't know is how to iterate inside each loop and check for parents and do that in a dynamic way so that there could be an endless tree of children.
Thanks for any help you can offer.
Tim
Can someone help me complete this PHP function? I want to take a string like this: 'this-is-a-string' and convert it to this: 'thisIsAString':
function dashesToCamelCase($string, $capitalizeFirstCharacter = false) {
// Do stuff
return $string;
}
Hello,
I would like to integrate the jQuery fullcalendar into my PHP website, but I don't know how to handle the event and how to use the JSON data from MySQL.
Any advice would be appreciated.
Hello,
I need to write a proxy script to log into secure servers without ever revealing an administrative password.
Can someone recommend some proxy scripts (written in PHP preferably) that I can look into?
Thanks!
Edit: I would be most interested in well documented scripts... if that matters.
Hi I know about several PDF Generators for php (fpdf, dompdf, etc.)
What I want to know is about a parser.
For reasons beyond my control, certain information I need is only in a table inside a pdf
and I need to extract that table and convert it to an array.
Any suggestions?
I am currently using fgetcsv in php to get rows in CSV file. For each row, I need it's 3 previous rows and 3 next rows for some requirement.
while(($data = fgetcsv($handle, 5000, ",")) !== FALSE) {
//$data is current row data
//I need previous rows and next rows data
}
I don't know how to try this, as each while iterate will be having the current row's information.
Is there anything we can achieve this within the fgetcsv loop? I am also open for other alternatives for this problem.
Which technology is better to use in terms of performance for high performance scalable web application? PHP or Python?
The project is going to involve database.
I have a pre-existing user database on my site.
Now, I want to install a PHP-Based Forum on my site
which works with already existing user table.
Also, I would like it to be as lightweight
as possible -- in terms of features as well as
bandwidth consumption
Please suggest some..
Thanks.
Is there anyway to use atrm command to remove queue job from PHP web application?
I wrote a shell script to remove the queue job but it doesn't work well.
#! /bin/sh
export PATH=/usr/local/bin:$PATH
echo atrm 3700 2>&1
I'm creating something where users can upload an xml and data get's imported to the database.
Now I'm building some kind of a preview page where users will get to see how their input will look once it's stored.
What would be the fastest (in execution time), using XSL to transform the xml to a html page, or using php to render the output?
My guess is XSL is far more suitable (+ faster) for this (and by using a DTD there's no need for code written validation, right?)
I'm currently using Vim as a lightweight IDE. I have NERDTree, bufexplorer, supertab, and ctags plugins which do almost everything I want. Only big thing missing for me is auto code formatting.
I'm working with some messy PHP code which has inconsistent indenting and code formatting, ideally I could highlight the code I want formatted (whole files would be fine too) and run a command to tidy it.
Does anybody have a nice solution for this working in Vim?
Need to create a php file so I can send data to an sql server and get data from the server. There must also be a json support because I am doing this for an iphone app. Could you please help me and give me a source code example.
Thanks in advance.