No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
38 Posted Topics
I am using the [jQuery File Upload plugin by Blueimp](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads#cross-site-xmlhttprequest-file-uploads) to upload images to a server. The problem is, the sending server is `admin.example.com`, and the receiving server where the images are stored is on `www.example.com`. Same domain, different subdomain. I followed the [instructions here on setting up cross-domain uploads](http://blueimp.github.io/jQuery-File-Upload/), … | |
Re: I'm not sure if this would work, but try [code]<?php $now = time(); $original_tz = $_ENV["TZ"]; putenv("TZ=US/eastern"); if (Date("h:m", $now) == 12:30); { mail(me@example.com, "subject", "MESSAGE"); } ?> [/code] | |
Hi. I need to be able to display each day of the current month excluding Sunday in a format: month/day (eg. 11/11). So I want the output to be: [CODE]11/11 11/12 //excludes Sunday 11/14 11/15[/CODE] etc. Does anyone know how to do this? Thanks | |
I am using the [jQuery File Upload plugin by Blueimp](http://blueimp.github.io/jQuery-File-Upload/) to upload images to a server. The problem is, the sending server is `admin.example.com`, and the receiving server where the images are stored is on `www.example.com`. Same domain, different subdomain. I followed the [instructions here on setting up cross-domain uploads](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads#cross-site-xmlhttprequest-file-uploads), … | |
I'm using a plugin called [jQuery file upload](http://blueimp.github.io/jQuery-File-Upload/) to upload images to a page. Currently it uploads with the original image name as the file name (IMG_1234). I need a specific format for the image name on the server (eg 1.123456.jpg) I found this PHP code that works for changing … ![]() | |
Re: Try this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] | |
Hi. I'm trying to create a small editor for a website. One of the features is a drag and drop interface. I'd like for the user to be able to drag elements to another position in the page. I was thinking of having an iFrame of the site, and applying … | |
HI. I've tried other codes, but they don't seem to work. What I'm trying to do, is grab a result from google's shopping page, and display it on my page. I only want the title, which is in the tag:[CODE]<h3 class="result-title">TITLE</h3>[/CODE] How do I do that in PHP? Thanks! | |
Re: Just to see if you can use the mail() function, run this PHP: [code]<?php if(mail("me@example.com", "hello", "hello")) { //replace me@example.com with your email echo "Sent! Check your email to see if it went through"; } else { echo "ERROR"; } ?>[/code] | |
Hi. I have been working on a project that displays data in an XML file. (It's kind of like an API). I know how to parse XML with PHP, and how to make an XML file in PHP, but they don't work together. :) Basically, I have two files: `parse.php` … | |
Re: Well, you could just use PHP to display the message. [CODE]if($newpass == $newpass2) { //do the query } else { echo "Passwords do not match!"; }[/CODE] | |
Hi. I need to make a system where I can accept input from the audience, and it'll show live on a PowerPoint Slide. I can create the user input system, but I don't know how to make a PowerPoint macro that when run will either: [LIST=1] [*]Retrieve text from a … | |
I am trying to create a licensing system where you have a license key as a variable in a file. Then, it includes a file that's on an external server. The server then does all the validating, and returns whether the key is valid or not. The problem is, an … | |
Re: I would [B][I]definitely[/I][/B] master HTML, CSS, and probably JavaScript before moving to a programming language like PHP. Once you've learned those, I think that PHP is a great start. Also, you'd probably want to look at learning SQL. | |
Does anyone know of a way to encrypt a string and output it as x number of characters? I need it to always return the same number of characters. I know MD5 always returns it as 32 characters. I'd like for it to return less that that, maybe 20 or … | |
Hi. I'm trying to make a site where people can purchase zip files. The zip files will be made on-the-fly. My question is: [B]how do I restrict access to the files? I need to make it where the zip file can only be downloaded once, and it can only be … | |
Hi. I'm trying to create a function which connects to a database, and then displays rows in it. I'm trying to use a function to connect, but it's not working. Here's my first code: [CODE]<?php define("SERVER", "mysql.example.com"); define("USERNAME", "username"); define("PASSWORD", "********"); define("DATABASE", "db"); function displayFunction() { $dbc = @mysqli_connect(SERVER, USERNAME, … | |
Hi. I'm not sure if this is possible: I found out that Blogger allows you to email text, images, etc to a unique email address, and then it'll post the email as a blog post. I'm trying to create a system like that for my client. Is it possible to … | |
Hi. I'm trying to make a script which submits the form without refreshing the page. Also, I'd like to have it submit onkeyup. I can't figure out how to do that. Can anyone help me? My code is [CODE] <script type="text/javascript"> $(document).ready(function(){ var $form = $( '#myform' ), url = … | |
Hi. I'm looking for a script (in either JavaScript, PHP or both) where you enter the amount of servings you want for a recipe, and it'll calculate the recipe. I can't find a script anywhere! Can anyone help me? To see an example, go to [URL="http://tastykitchen.com/recipes/breads/plain-bagels/"]http://tastykitchen.com/recipes/breads/plain-bagels/[/URL] Thanks! | |
Hi. I'm trying to multiply fractions. How can I take '1 1/2' and multiply it to get 3? (is there some special format like '1-1/2' that I need to use to multiply it?) Thanks | |
Re: [CODE]$dbc = mysql_connect('host', 'user', 'pass', 'dbname') or die('Could not connect!!!!!'); $query = "SELECT * FROM `email_receipients` WHERE field != '' AND status != 'confirmed'"; $result = mysql_query($dbc, $query) or die('Error querying database!!!!!'); while($row = mysql_fetch_array($result)) { $sql = "SELECT * FROM `report` WHERE name = '" . $row['receipient_name'] . "' … | |
Hi. I need a function which will convert a decimal to a fraction, so that I can put in [CODE]echo dec2frac(1.75);[/CODE] and it'll output 1 3/4. Any suggestions? Thanks ![]() | |
Re: [QUOTE=;][/QUOTE] Try this: [CODE]if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = "0"; } $dbc = mysqli_connect('host', 'user', 'pass', 'dbname'); $query = "SELECT * FROM picture WHERE id = '" . $id . "'; $result = mysqli_query($dbc, $query); while($row = mysqli_fetch_array($result)) { echo "<img src='" . $row['image'] . … ![]() | |
Re: [CODE]header("Location: mypage.php?value=" . $_POST['value'] . ");[/CODE] | |
Hi. I have a system where a user fills out some information. There can be multiple answers, so I've made a script that adds a new text box if you click a button. My problem is, I don't know how to process it in PHP. The script will create a … | |
Re: [QUOTE=;][/QUOTE] [CODE]number_format("123456")[/CODE] | |
Hi. I’m creating a system for my client where he goes to a page where he types in a letter. The text is saved as a file (preferably PDF) and then sent as an email to a printing service. I’d prefer not to save multiple PDFs on my server, so … | |
Re: Put the time on a seperate column, and then run the following SQL code: [CODE]SELECT * FROM table WHERE date='$search'[/CODE] | |
I don't know if this is possible, but I want to submit information using POST with a link. I know I can use GET, and I know I can use a form with a hidden value and submit it with a link, but I don't want either of those. I … | |
I'm trying to create a message board where members can post messages to other members. I'd like to have a section where it says "4 posts since Jan 2011" just like DaniWeb does. How do I get the date from the [CODE]"first row WHERE user='username'"[/CODE] with PHP & MySQL? Also, … | |
Hi. I'm not sure if this is possible with PHP or not... I want to be able to have a user enter a phone number, and then the site will call the number with a message. For instance, it'll call them with their confirmation code. Is this possible? Thanks! | |
Hi. I'm not sure if this is possible or not, but I need to be able to SELECT * FROM all the tables in the database. Is this possible? Thanks! | |
Re: [QUOTE=simirnov;1579790]Hi, I am new to php development! I have email table in my database which has email records. On the page read_emails.php, i have two buttons, one is of Reply and second is of Delete. My delete button is not deleting the email record in the database.[B] Please help me … | |
Hi. I've created an email system where people can sign up and receive emails. I want to make a link that says: "Trouble viewing email? View online!" or something like that. I've made it so that the email sent to people is saved to a database, and then it will … | |
Hello! I want to create a script which mails emails to subscribers. I'm almost done, but I'd like it to say "Sent to # people". I've tried using: [CODE]<?php $dbc = mysqli_connect('localhost', 'username', 'password', 'database') or die('Error: Could not connect to database'); $query = mysql_query("SELECT * FROM table"); $number = … | |
Hello everyone! I've created a mailing list where users can subscribe with a form, and the results are added to a MySQL database. They can also unsubscribe. The subscribe/unsubscribe pages work GREAT, but the page where I send out the email is giving me some trouble. It says that the … |
The End.