|
Hi Everyone (this is my first post),
I am trying to figure a way of cropping a polygon out of an image. I have been reading other similar code. It seems that most code is based around the following process:
-Resize the image to fit the width and height...
Started by Mark on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you draw the polygon in black-white (and brey values between) on a different... .
But that would require a bit of code and calculations.
Side that are the parts on the left and right of the image afte the mask and bottom part and recompose them.
|
|
Hi, i want to have a textarea where I can edit html code directly. After submitting the form the content if the textarea (with html tags) should be saved to a MySQL database. I use PHP to receive the date and save it to the database. My problem is, that...
Started by dominik on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
View_code"> <a href="link">testlink</a> </textarea> <input type=submit use htmlentities() in PHP to achieve....
Are you echoing it into an HTML page? Because the code will be parsed into an actual link.
|
|
As far as I know, and have gathered from other SO posts, there are no proper tools for refactoring PHP code yet, so when it comes to refactoring, it's probably good old search-and-replace for most of us, with a good amount of praying that we didn't overlook...
Started by Pekka on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Unit tests in dynamic languages (PHP, Ruby, Python, etc.) provide assistance where static typing in other languages to write refactoring friendly code....
Unit tests always help me identify places where I've broken code due to a refactor.
|
Ask your Facebook Friends
|
I have a machine with Linux CentOS distribution that has more than one internet connection available at the same time.
I'm trying to write some PHP code that will do the following: Perform an HTTP request to a specific URL "eg. google.com" but through...
Started by Basil A on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can do this in PHP with curl_multi_*() and curl_setopt(CURLOPT_INTERFACE, 'ppp0.
Just trigger the command from your PHP script the interface.
More explicit control over which interface to use.
|
|
I have been trying to find a code snippet to do an unsharp mask in C# but cant find one that works or is complete. I found a PHP version but I would like to find one in C# before I go through all the hard work converting this from PHP.
I am just a beginner...
Started by khalil on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I did find a complete application that you can download with source which has the code that I think you filters ), but there's no mention....
/2008/01/unsharp-mask-in-cnet.html
Edit: Okay that blog entry did not work, sorry for the bad link.
|
|
Example:
i want website.com/content/linkpage.php
to look like
website.com/content/?>=1211
or something like it
Please explain well ive tried other tutorials but i didnt get it
Started by borrarensson on
, 5 posts
by 3 people.
Answer Snippets (Read the full thread at phpbuilder):
Is that what you're asking about? yeah exactly like that I mean eactly like urs ... .
Are you sure about that? Most people want this: Code: mysite.com/index.php?page=home
or something similar, to look more like this: Code: mysite.com/home
...
|
|
I built a LAMP web application that let's users create their own profile page where they can upload their resume and portfolio. The url for a person's profile will be something like
http://jobbank.com/user/johndoe
John Doe registers the domain name http...
Started by John on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This would be easier to setup if you did not have to use /user in your code to determine user id), but is possible with the prefix as well - it's just that mod_rewrite.
With URL rewriting in your PHP code.
|
|
I'm trying to do something with .htaccess that I'm not sure can be done.
First thing I did is hide the .php extensions using the following code:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^...
Started by Enkay on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That means you'll be getting a new request from the browser with whatever you redirected them to, and so on that second request you won't have... .
To change the address bar you need to send an actual HTTP redirect .
That isn't really possible in a clean way.
|
|
Hi, I've created a jquery dialog modal box for logging into my website:
$('#login').dialog({ modal: true, position: 'center', autoOpen: false, title: 'Login', height: '750px', width: '300px', zIndex: 9999, closeOnEscape: false, buttons: { 'Login': function...
Started by Silmaril89 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Output would:
<?php $username = (isset($_POST['username']) ? $_POST['username'] : ''); $password = (isset to (gahooa's code):....
$.post() it to the /login.php file that contains the login code Process this request in PHP.
|
|
I am working on a user-role / permission system in PHP for a script.
Below is a code using a bitmask method for permissions that I found on phpbuilder.com.
Below that part is a much simpler version w3hich could do basicly the same thing without the bit...
Started by jasondavis on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
There are several problems, the two pieces of code do ....
Often, but I find that in a language like PHP where developer productivity and code readability wrote the bitwise code) doesn't seem to fully grasp bitwise operations.
|