Thanks Frin. I ended up deleting the lot and starting over. I did get it working, and I have a feeling it had something to do with the order I did the base64 encoding. It's spread over several files now, and don't have time to post, but it was not very different to the above.
** I also just noticed that the default blocksize for the PHP pad function did not match that of C#, which would have also prevented it from functioning properly.
User Profile
Collapse
-
-
Encrypt entire $_POST array
Hi all,
Does anyone know if you can encrypt an array (like $_POST with the AES algorithm) and decrypt it back to a functional array?
I have a C# application sending a $_POST array to a PHP script which works fine, but I was thinking it'd be simpler code to encrypt the entire array while in transit instead of each key/val.
Kinda like HTTPS but using my own encryption. -
PHP <--> .NET Encryption
Hi all,
I am really struggling with this and I have tried so many things I feel like I'm just chasing my tail.
Trying to have a matching encryption service in my .NET application and a PHP server, but no matter what I do, I can't seem to get these to agree, even when I use the same Key and IV. Any help would be greatly appreciated I you can see the inconsistency!
PHP
Code:function pad($string, $blocksize
-
Nevermind, gave up and spoke to IT. They did what I thought and said I wasn't allowed to do that. Thanks anyway.Leave a comment:
-
Calling Javascript from WinForms WebBrowser
Hi all,
I have read a few articles on the subject, but I can't get this one to work. I am trying to automate a simple program to press a couple buttons on a webpage. The webpage however has everything in Javascript, so the button I am trying to press has the html tag:
Code:<a href="#" class="send_button" onclick="w(this).call('sendLoad', '27196', 'normal', 5);">Send</a>
-
Still a little unclear...
I think that the upload will depend on server/user traffic, so this would a be a very big estimate.
Your main goal would be to determine current upload speed when requested.
I am sorry, but I really must get to bed, but I found some pages which you may not have seen:
http://www.brandonchecketts.com/open-source-speedtest
http://www.emanuelefer onato.com/2006/05/31/determine-conn...Leave a comment:
-
Either edit the index file to point to the splash view, or yes, replace the index file. If you are keeping CI on there, I would make a splash view and point the index to that, but if you are going to try without a framework to start with, then, just get rid of all CI files and have your own index file.
There are lots of good editors to make PHP writing easier, like:
Notepad++ (free)
PHPDesigner (~approx. 45 USD - I use this...Leave a comment:
-
Please ask Drupal questions on the Drupal Forum.
A very easy Google search came up with:
http://api.drupal.org/api/function/drupal_bootstrap/7 which will get you started.Leave a comment:
-
Hi Omar,
Have you looked at microtime()?
Here's a random article of how you can use it in measuring code execution time:
http://www.phpjabbers.com/measuring-...ime-php17.html...Leave a comment:
-
A framework like CI should be entirely uploaded to your server directory. So where you would normally have your index.php and all that, you can put the contents of the CI file (which includes an index.php) there.
Then, you would simply edit/update/upload into your MVC folders.
While a framework is great for bigger projects, if you are only starting to learn PHP you may be getting in a car before you understand the wheel......Leave a comment:
-
So I think that you're wanting to dynamically create an image of a page to show in another page using an <img /> tag?
This is possible using PHP GD Library, although I have never tried. I don't have much time at the moment to research this, but I have given you a few key words to google with. Also read a bit of what the GD Library can do here.Leave a comment:
-
Well you see it's the browser that controls the back button, so it cannot be controlled by script/code. When you press back, the browser can either request that page again (probably what you would like), or display a cached version (which again you cannot stop). So what you want to look at is Website Cache Control.
Alternatively you can look at hiding or making it difficult to use the back button.
Ultimately as I say,...Leave a comment:
-
Welcome to Bytes. Please use [code ][/code] tags around your code.
If I understand correctly you can do this several different ways. I would guess that seeing as you're only doing one record at a time, you want to use mysql_fetch_row () instead of mysql_fetch_arr ay(). Also, you want to look into using LIMIT in your query statements to save your server processor time. So you would do something like:
Code:$getcat = mysql_query("SELECT
Leave a comment:
-
Hmmm, it will be complicated. I have only seen image recognition on MATLAB which is a C++ type language, but I don't see why you can't use any other language.
If I were you I would spend some time researching what software is already available for fingerprint identification. Re-inventing it could be a mammoth task, and I doubt it would be worth the time you spend developing it.
Most businesses selling the equipment provide...Leave a comment:
-
Well it looks like your SMTP settings in your php.ini that may not be working. What do you have in your php.ini? Also bear in mind that when you change something in php.ini, you should check that it has taken effect by running a script with:
Code:<?php phpinfo(); ?>
It's probably worth googling:
Code:Warning: Failed to connect to mailserver, verify
Leave a comment:
-
Please use [code][/ code] tags for when you post code.
PHP can pass variables to Javascript like this:
Code:<?php $id = "color"; ?> <html>... function color_out() { document.getElementById(<?php echo $id; ?>).styl... = "#FFFFFF"; }...
Leave a comment:
-
There is, but it is a bit of fiddling. Basically you want to write some javascript which will do that as it populates the select box.
I recommend what you do is print out a javascript array using PHP, and then have the javascript use that array to check if it needs to add HTML to say selected to the select box.Leave a comment:
-
Two things:
Put:Code:ini_set('display_errors',1); error_reporting(E_ALL);
Then change your mail() to exclude headers by changing line 39 to:
Code:if (mail($email_to, $email_subject, $email_message))
Leave a comment:
-
Sorry, I should have made this clearer.
Put in a page:
Code:error_reporting(E_ALL); ini_set('display_errors', 'on'); mysql_connect('localhost', '****', '****') or die("Could not connect: ".mysql_error()); mysql_select_db('ecole') or die("Could not select ecole: ".mysql_error());
Leave a comment:
No activity results to display
Show More
Leave a comment: