Jump to content

abhishekphp6

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

abhishekphp6's Achievements

Member

Member (2/5)

0

Reputation

  1. I have the include statement. include('XMPPHP/XMPPHP/XMPP.php'); Here the file XMPP.php resides in a directory path XMPPHP/XMPPHP under the www directory where the XY.php file resides. I have also kept the case as-is
  2. Also, can you please download this library from here http://code.google.com/p/xmpphp/ and try to make this code work? for me it simply states that Fatal error: Class 'XMPP' not found in /var/www/XY.php on line 99 I am pretty sure that I have included the path to XMPP.php correctly.
  3. How to edit the message. I have copy pasted my email id and password. I have changed the password... but I want to remove it from here.
  4. I copy pasted the following php code <?php include('XMPPHP/XMPPHP/XMPP.php'); $conn = new XMPP('talk.google.com', 5222, 'bi.dw.architect@gmail.com', 'pappu617', 'xmpphp', 'gmail.com', printlog=False, $loglevel=LOGGING_INFO); $conn->connect(); $conn->processUntil('session_start'); $conn->message('abhishes@gmail.com', 'this is a test message'); $conn->disconnect(); ?> But it gives me error Parse error: syntax error, unexpected '=' in /var/www/foo.php on line 3 Do I need to install something before using new? I am using ubuntu linux 9.1.0 php 5.2.10-2ubuntu6.4
  5. My code is very simple but is not working. I am trying to post using javascript and then trying to detect if the value is available in the header using PHP. But event when I have set the value in javascript it is not found by the PHP code. <html> <head> <title>Instant Messaging Management Application</title> <script type='text/javascript'> function processEvent(eventName) { document.getElementById('eventName').value = eventName; alert(document.getElementById('eventName').value); document.form1.submit(); } </script> </head> <body> <?php echo $_REQUEST['eventName']; if ($_POST["eventName"]) { echo $_POST["eventName"]; } else { ?> <form id='form1' METHOD='POST' ACTION='IM.php'> <div style='width:500px'> <fieldset> <legend>Create Topic</legend> <input id='eventName' type='hidden' value='' /> <label id='lblTopicName'>Topic Name: </label><input type='text' id='txtNopicName' /> <input type='submit' onClick="javascript:processEvent('CreateTopic');" value='CreateTopic' /> </fieldset> </div> </form> <?php } ?> </body> </html>
  6. Hello, How can I send SMS to mobile phone using PHP? Please point me to a tutorial for achieving this. Also, what software will be needed to do this?
  7. I have a PHP site. Here I have a flat file which contains a list of Google Talk Ids of my customers. I need to send a IM alert to them on Gtalk. Can you tell me how can I do this in PHP?
  8. Hello, I have written the following PHP code <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://ice.auspost.com.au/display.asp?ShowFirstScreenOnly=FALSE&ShowFirstRecOnly=TRUE'); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,"txtItemNumber=EQ001125608AU"); $data = curl_exec ($ch); curl_close($ch); echo ' length of data: ' . strlen($data) . '<br/>'; ?> What I want is that the page should display the length of the output page which the script has created. Instead what is happening is that the contents are being displayed on my page and the length of the output string is 1. What I want is that the content of the resultant page is populated in my $data variable. And I don't want to display the resultant page (result of posting to the asp page) to be displayed directly on my PHP page. Can you please help!
  9. I am using the following function to get the contents of a URL function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1000); $data = curl_exec($ch); curl_close($ch); return $data; } However the problem is that if the request times out, the function doesn't return an error. If I call the same URL in browser, I can see error message ... but the function call to get_data returns nothing if the call times out.
  10. Hello, I am trying to install php 5.3.1 on windows xp. I have IIS 6 and I have already installed IIS Fast CGI. I am getting the following error Can you please help me out with the installation. Thanks in advance
  11. I have written a very simple HTML code <fieldset> <legend>FieldSet Test</legent> <table> <tr> <td> <table> <tr> <td>A1<td> </tr> <tr> <td>A2</td> </tr> <tr> <td>A3</td> </tr> <tr> <td>A4</td> </tr> </table> </td> <td> B1 </td> </tr> </table> </fieldset> crapIE 8 (Windows 7) is rendering it like this http://farm4.static.flickr.com/3517/4081119954_efce14dc9d_o.png (look at the border of the fieldset it is only half way.) Firefox is rendering it correctly ... but most of my customers only use crapIE. What change can i make so that both browsers render the field set correctly?
  12. Hello, I declared a variable like $password=”Pass@wordX”; I get an error on this line Parse error: syntax error, unexpected '@' in /var/www/mysql_up.php on line 7 I tried using escape sequence by $password=”Pass\@wordX”; but then I get the error Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/mysql_up.php on line 7 Parse error: syntax error, unexpected '@' in /var/www/mysql_up.php Can you please help. I am not able to assign a string which contains the character @ in it.
  13. Hello Everyone, This is my first question to this board. The only thing I know about PHP is that it has a framework to do everything in the world. So here is my question. My organization archives past 5 years of emails. (Emails are stored in outlook .pst format). However time and again users (and sometimes auditors) want to search old emails. So I want to implement a search system on historical emails. The email archive is terribly terribly large (10TB+). So we need a very robust and scalable infrastructure which can search data of this volume. Another requirement is around security. when I search for emails, I should be able to search only what I am allowed to see. (I should not be able to search in old mails of someone else -- unless I belong to the auditor role-- ). Please don't get angry if this is FAQ. I am ready to RTFM, if you tell me which M to R.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.