Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~43.4K People Reached
Favorite Tags

38 Posted Topics

Member Avatar for calebcook

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/), …

Member Avatar for Fyan Estu
0
19K
Member Avatar for solomonski

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]

Member Avatar for Ajaypal_1
0
261
Member Avatar for calebcook

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

Member Avatar for Adriano_1
0
4K
Member Avatar for calebcook

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), …

Member Avatar for calebcook
0
2K
Member Avatar for calebcook

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 …

Member Avatar for LastMitch
0
429
Member Avatar for vizz

Try this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA]

Member Avatar for vizz
0
439
Member Avatar for calebcook

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 …

Member Avatar for DarkMonarch
0
134
Member Avatar for calebcook

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!

Member Avatar for karlmarsh05
0
2K
Member Avatar for G_S

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]

Member Avatar for G_S
0
280
Member Avatar for calebcook

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` …

Member Avatar for Incognitus
0
237
Member Avatar for newbie26

Well, you could just use PHP to display the message. [CODE]if($newpass == $newpass2) { //do the query } else { echo "Passwords do not match!"; }[/CODE]

Member Avatar for newbie26
0
140
Member Avatar for calebcook

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 …

Member Avatar for StephNicolaou
0
378
Member Avatar for calebcook

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 …

Member Avatar for moneeshot
0
190
Member Avatar for grekos

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.

Member Avatar for grekos
0
177
Member Avatar for calebcook

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 …

Member Avatar for skraps
0
187
Member Avatar for calebcook
Member Avatar for calebcook

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 …

Member Avatar for calebcook
0
187
Member Avatar for calebcook

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, …

Member Avatar for calebcook
0
137
Member Avatar for calebcook

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 …

Member Avatar for mschroeder
0
183
Member Avatar for calebcook

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 = …

Member Avatar for bloodbender
0
121
Member Avatar for calebcook

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!

Member Avatar for calebcook
0
1K
Member Avatar for calebcook

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

Member Avatar for calebcook
0
317
Member Avatar for httpgal

[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'] . "' …

Member Avatar for calebcook
0
290
Member Avatar for calebcook

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

Member Avatar for diafol
0
3K
Member Avatar for maimihits

[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'] . …

Member Avatar for diafol
0
360
Member Avatar for mary_forum
Member Avatar for ddymacek
0
1K
Member Avatar for calebcook

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 …

Member Avatar for cereal
0
173
Member Avatar for Ingska
Member Avatar for Ingska
0
313
Member Avatar for calebcook

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 …

Member Avatar for tiggsy
0
1K
Member Avatar for uselessninja

Put the time on a seperate column, and then run the following SQL code: [CODE]SELECT * FROM table WHERE date='$search'[/CODE]

Member Avatar for calebcook
0
341
Member Avatar for calebcook

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 …

Member Avatar for calebcook
0
280
Member Avatar for calebcook

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, …

Member Avatar for calebcook
0
117
Member Avatar for calebcook

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!

Member Avatar for chrishea
0
2K
Member Avatar for calebcook

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!

Member Avatar for oab2003
0
1K
Member Avatar for simirnov

[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 …

Member Avatar for calebcook
0
420
Member Avatar for calebcook

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 …

Member Avatar for ko ko
0
215
Member Avatar for calebcook

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 = …

Member Avatar for klemme
0
184
Member Avatar for calebcook

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 …

Member Avatar for minitauros
0
184

The End.