 |

|
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|

|
Is it possible to read a word document using COM? How to enable com in php5.4.19
|
|
|
|

|
I got a PHP project - a big one...
My part is to add a SoapServer to it that enales pushing data to the site's db. Everything seems right, data flows from our application to the PHP one.
However there are - always there are - some circumstances when the result is not perfect. So I decided to debug the PHP.
After looking into Eclipse's abilities I was able to debug while browsing the site - I mean that breakpoints inside pages I'm visiting got hit as expected.
But. Breakpoints inside the SoapServer's implementation never got hit, even the calls are got answered...
There is any way to debug that SoapServer?
---
I'm using
Eclipse - Kepler SR1
PHP - 5.4
XDebug - 2.2.3
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|

|
I'm a relative new beginner to PHP installs. I have permissions set for the users and the directories and the temp directories. The PHP.ini file is set to use the ftproot directory as the temp directory instead of the windows temp as well.
My problem is I keep getting Error Code 6 on the ftp upload (no temp directory). This leads me back to something I did wrong with the permissions or the directories.
Can someone with greater knowledge of PHP setups help guide me to what to check again?
Thanks in advance.
Rottie
Update 2-25-14
In response to the message deleted:
The upload limit is set to 100M in both the POST_MAX_SIZE and the UPLOAD_MAX_FILESIZE. I'm getting the FILE(name) populated, but a blank FILE(tmp_name) with a FILE(error) code of 6. Did I miss a size setting?
I'll keep reading and trying things.
If anyone has any ideas, please let me know.
Thanks.
modified 25-Feb-14 5:56am.
|
|
|
|
 |
Message Automatically Removed
|
|
|
|

|
i need script that record audio and video of the user and give me the uploaded file link
any client side like flash or jquery is good even php script
|
|
|
|

|
Hi friends :
when I change alias and directoy in httpd.conf file in wampserver 2.4 as below and restart all services its Icon become yellow !
what should I do?
thanks.
Alias /myText/ "C:/myText/"
Alias /myText "C:/myText"
<Directory "C:/myText/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
|
|
|
|

|
Hi,
I'm creating a calendar linked with google. It’s only to view a club agenda.
The calendar itself works but the google part has not completely.
$link='https://www.google.com/calendar/feeds/amsacgent%40gmail.com/private-mijncode/basic?hl=nl';
$calendar = simplexml_load_file($link);
The hl=nl part is for my language.
Without additional parameters I have the recurrent items only once, the first time.
This is what I have tried
singleevents=true: I have some future items but they are in the far future 2027 but none for the current year.
start-min='.$j.'-01-01T00:00:00-00:00&start-max;='.($j+1).'-01-01T00:00:00-00:00': no recurrent items
$j this year. I can also add the month is necessarily
I found this link for the parameters.
Will someone help me
thx
Jan
Here you kan see a demo
|
|
|
|

|
Is there really nobody who can help?
|
|
|
|
 |
Message Automatically Removed
|
|
|
|

|
Hi,
thanks for that info, but how do I contact Atechnocrat.
Maybe you can tell me what was your solution; same problem ==> same solution I think
Jan
|
|
|
|

|
He's a spammer - ignore him, it'll be gone soon...as will his account.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|

|
<?php $f=ftp://username:[email protected]/filepath"; $f = fopen($f, 'r');
while($row = fgets($f)) { echo $row; }
|
|
|
|

|
how to insert excel data into phpmyadmin database using a query
|
|
|
|

|
Member 10551305 wrote: phpmyadmin database Never heard that kind of DB...
You talk about MySQL I assume. In phpmyadmin you can import only csv files - so you have to export your excel first t ocsv and than import using phpmyadmin into MySQL...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|

|
hi,
I read this article:
http://www.yorkstreetlabs.com/blog/Publish-to-Your-Facebook-Pages-Wall-with-PHP
I want to ask about step-1 (Request User Authorization Code From Facebook)
How can I do it the background so I can retrieve the code generated without showing the process and the header redirection to the user?
Thanks
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|

|
The point of that step is to ask the user if they want to allow access, so you really shouldn't try to hide it from them.
|
|
|
|

|
Hi,
I am using the following code to publish a post to Facebook using PHP. I only have one problem left... I want to know how can I obtain an access-token for my page before publishing the post as access-tokens are not permanent.
<?php
class PublishOnFacebook
{
function status_update($status_text)
{
require_once("facebook/facebook.php");
$config = array();
$config['pageId'] = 'xxxxxxxxxx';
$config['appId'] = 'yyyyyyyyyy';
$config['secret'] = 'zzzzzzzzzzzzz';
$config['fileUpload'] = false;
$fb = new Facebook($config);
$params = array(
"access_token" => $config['appId'] . "|" . $config['secret'],
"message" => $status_text,
"link" => "http://www.pontikis.net/blog/auto_post_on_facebook_with_php",
"picture" => "http://i.imgur.com/lHkOsiH.png",
"name" => "How to Auto Post on Facebook with PHP",
"caption" => "www.pontikis.net",
"description" => "Automatically post on Facebook with PHP using Facebook PHP SDK. How to create a Facebook app. Obtain and extend Facebook access tokens. Cron automation."
);
try
{
$ret = $fb->api('/xxxxxxxxxx/feed', 'POST', $params);
echo 'Successfully posted to Facebook';
}
catch(Exception $e)
{
echo $e->getMessage();
}
}
}
?>
Technology News @ www.JassimRahma.com
|
|
|
|

|
Why not ask at Facebook[^]?
Veni, vidi, abiit domum
|
|
|
|

|
Hi
I'm having a weird situation here.
I'm trying create a PDO object, like this:
$dbh = new PDO('mysql:host='.$hostname.';dbname='.$dbname,$username, $password);
I have rewriting ON in my .htaccess file. when I try to run the script using a URL that will trigger a rewrite rule, it shows me the following error:
Fatal error: Class 'PDO' not found
I have a exception rewrite rule for a directory where the script is, named PHP, like this:
RewriteRule ^(php)($|/) - [L]
if I run the scripting directly from the directory, it runs normally with no erros.
I don't know why this is happening. any clues?
Thank you
|
|
|
|

|
just adding some info:
the problem can be seen in the following URLs
the rewrited one (where the problem occur)
www.qualocep.com/dbc/
and the direct file, when it works
www.qualocep.com/php/dbc.php
I put a phpinfo() the to show more info about the server.
|
|
|
|

|
Solve it.
There was an empty php.ini in the public_html, I deleted it, and it worked.
thank u all
|
|
|
|

|
Hi,
I am using arabic web font and it's working perfect on Chrome and Safari but not in IE?
@font-face {font-family: "Kufi"; src: url('font/DroidKufi-Regular.ttf') ;}
How can I fix it please?
Thanks
Technology News @ www.JassimRahma.com
|
|
|
|
|

|
Hi,
I have a PHP page with cboindustry <select> item. I am doing the following to check if <select> has an entry then it will run the stored procedures:
if ($_POST['cboIndustry'])
{
foreach ( $_POST['cboIndustry'] as $key => $value )
{
$mysql_query = $mysql_connection->prepare('CALL sp_add_new_company_industry(:param_member_guid, :param_company_guid, :param_company_industry, :param_created_ip_address)');
$mysql_query->bindParam(':param_member_guid', $_SESSION["xoompage_member_guid"], PDO::PARAM_STR);
$mysql_query->bindParam(':param_company_guid', $company_guid, PDO::PARAM_STR);
$mysql_query->bindParam(':param_company_industry', $value, PDO::PARAM_STR);
$mysql_query->bindParam(':param_created_ip_address', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR);
$mysql_query->execute();
}
}
but I am getting the following error:
PDO Exception Caught. Error with the database:
SQL Query: Code: HY000 Error: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'param_company_industry' at row 1SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'param_company_industry' at row 1
here is my var_dump of the cboIndustry:
array(1) { [0]=> string(0) "" }
and here is the html:
<tr>
<td valign="middle">Industry</td>
<td valign="middle">:</td>
<td valign="middle">
<div id="container">
<select id="cboIndustry" name="cboIndustry[]" style="width: 80%" <?php if (!$_GET["id"]) { ?>required<?php } ?>>
<option value="" selected>[Industry..]</option>
<?php
$mysql_command = "CALL sp_populate_industry()";
$mysql_query = $mysql_connection->prepare($mysql_command);
$mysql_query->execute();
while($mysql_row = $mysql_query->fetch())
{
?>
<option value="<?php echo $mysql_row['industry_id']; ?>"><?php echo $mysql_row['industry_name']; ?></option>
<?php } ?>
</select>
<button id="btnAddIndustry" type="button" style="width:150px">Add More</button>
</div>
</td>
</tr>
Technology News @ www.JassimRahma.com
|
|
|
|
 |