Search found 1716 matches

by gesf
Sun Aug 10, 2008 1:31 pm
Forum: News and Announcements
Topic: Help the poor gesf!
Replies: 9
Views: 12765

Re: Help the poor gesf!

Hey guys! Almost 3 years since i've posted this :) Just to let you know that's this "project" will not happen. I found myself frustrated by reinventing the wheel and i decided to stop it. I think i'm asking myself now, what project really makes sense this days :) All the code and even the site still...
by gesf
Sun Aug 10, 2008 12:54 pm
Forum: PHP coding => Mail
Topic: Email Attachments
Replies: 1
Views: 1439

Re: Email Attachments

Yes, it should be in that part of the code.
Example:

Code: Select all

$attachment = $_FILES['attachment']['tmp_name'];
$attachment_name = $_FILES['attachment']['name'];
$attachment_type = $_FILES['attachment']['type'];
by gesf
Sun Aug 10, 2008 11:47 am
Forum: PHP coding => Mail
Topic: Email Attachments
Replies: 1
Views: 1439

Re: Email Attachments

Hey 2nejunkie, I think this is happening because you're not sending the file's mime type. Try this out: // Add this next line where you're "getting" the file data: $attachment_type = $_FILES['attachment']['type']; // Replace $message .= "Content-Type: application/octet-stream;\n\tname=\"" . $attachm...
by gesf
Sat Aug 09, 2008 4:28 pm
Forum: Free time
Topic: Current Projects (what are you up to?)
Replies: 36
Views: 37019

Re: Current Projects (what are you up to?)

Hey guys!
Swirlee... long time huh ?

Talking about projects, well... my work takes all my time and patience for this things.
I've been playing with AppleScript, Cocoa and i've started a simple ssh tunnel manager.
Like Swirlee said... let's see how far i can get :P
by gesf
Sat Aug 09, 2008 3:56 pm
Forum: CSS
Topic: Dropdown box with pictures ...
Replies: 7
Views: 6845

Re: Dropdown box with pictures ...

Damn! Am i blind ? I can't see any dropboxes with background images in that pages :$
by gesf
Thu Jan 31, 2008 5:45 am
Forum: PHP coding => General
Topic: Saving data for 1 column of records in 1 time
Replies: 0
Views: 948

Re: Saving data for 1 column of records in 1 time

Hey Leedahae, I'm not sure about what you're trying to accomplish. How is your data generated and how is it stored... can you be more expecific !? Anyways... i'll give you a simple example. In this one i assume that data is in array and the pipe is our field data delimiter: <?php $a = array("1|Ali|2...
by gesf
Thu Jan 31, 2008 4:50 am
Forum: PHP coding => General
Topic: I am so friggin lost... help with echo command
Replies: 1
Views: 1093

Re: I am so friggin lost... help with echo command

Hey Archmaille,

Put this next code at the very top of your script:

Code: Select all

<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);

?>
I bet you'll know why it's getting blank :)
by gesf
Thu Jan 31, 2008 4:41 am
Forum: PHP coding => Mail
Topic: CREATING NEW E-MAIL ACCOUNT OUTSIDE C-PANEL USING IMAP
Replies: 0
Views: 1077

Re: CREATING NEW E-MAIL ACCOUNT OUTSIDE C-PANEL USING IMAP

Hey amaa,

Use PHP's IMAP specific functions.
Check the example on the imap_createmailbox manual page.

Hope it helps!
by gesf
Thu Jan 31, 2008 4:26 am
Forum: PHP General
Topic: How to make php site in secure?
Replies: 1
Views: 1312

Re: How to make php site in secure?

Hey sereypong, can you be more specific !?
by gesf
Thu Jan 31, 2008 4:19 am
Forum: PHP coding => General
Topic: make persistent connections to the mysql database
Replies: 1
Views: 1237

Re: make persistent connections to the mysql database

Hey red fox, Just use PHP's mysql_pconnect() function. It may require some Apache and MySQL configurations to ensure that you do not exceed the number of connections allowed by MySQL. I suggest you to take a look at the comments on the above manual page... there are a few important things you should...
by gesf
Sat Jan 05, 2008 12:15 pm
Forum: mySQL & php coding
Topic: INSERT not working?
Replies: 0
Views: 811

Re: INSERT not working?

Hey TimUSA, The problems is in your query strings ... Example: <?php // wrong "INSERT INTO ... VALUES ('$_POST['name'][$x]' .. " // right (recommended) "INSERT INTO ... VALUES ('" . $_POST['name'][$x] . "' .. " // not that right, but... works sometimes :P "INSERT INTO ... VALUES ('$_POST[name][$x]' ...
by gesf
Mon Oct 22, 2007 3:09 am
Forum: PHP coding => General
Topic: File upload
Replies: 11
Views: 2931

That's defined in the php.ini under upload_max_filesize.
You should change this value...
by gesf
Mon Oct 22, 2007 3:02 am
Forum: PHP coding => General
Topic: problem with sessions
Replies: 2
Views: 1524

Yeh StevieB... snsanju is right :D
by gesf
Mon Oct 22, 2007 2:55 am
Forum: PHP coding => General
Topic: Table not found in databate
Replies: 0
Views: 1001

Hello Bryan! First of all, make sure how/where your guestbook script stores the data (database/flat file). - If it works with flat files that meens your guestbook13.gb is where the data will be stored, so you must give the full server path to the file in your script. - If working with a database, yo...
by gesf
Mon Oct 22, 2007 2:10 am
Forum: PHP coding => General
Topic: Problem with str_pad() function
Replies: 1
Views: 1355

Hello FreeGeezer and welcome to our forum! Thanks for providing a sample code. Well, i've tested it and the only solution i found was converting the space to its html code when echo(ing)... So you can replace your first echo with this next line (the decimal code seems not to work withing this code t...
by gesf
Mon Sep 24, 2007 7:40 am
Forum: Free time
Topic: Which Do You Think Is Best?
Replies: 5
Views: 5161

Client-side languages like html, xml and so on... we all use inevitably and independently of the server-side language.
But of course i'll also vote for PHP as the most exciting programming language....
by gesf
Mon Sep 24, 2007 7:27 am
Forum: PHP coding => General
Topic: problem with sessions
Replies: 2
Views: 1524

Check your session array using:

Code: Select all

<?php

print_r($_SESSION);

?>
by gesf
Mon Sep 24, 2007 7:25 am
Forum: PHP coding => General
Topic: VB Dir like command
Replies: 0
Views: 937

You need the PHP dirname() function!
by gesf
Mon Sep 24, 2007 7:20 am
Forum: PHP coding => General
Topic: User Online
Replies: 3
Views: 1828

Please search the forum, i bet you'll find a few related posts ;)
by gesf
Mon Sep 17, 2007 7:39 am
Forum: Free time
Topic: Wizard's Birthday!
Replies: 4
Views: 5172

Happy Birthday mate!!
;)
by gesf
Fri Aug 31, 2007 2:24 am
Forum: PHP coding => General
Topic: Retrieving cookies with php same as in java
Replies: 0
Views: 1150

Hello chrishawkins,

Yes, you can handle cookies with php if that's what you want to know.
In the setcookie() page of the manual, you can find how to create/read a cookies.

Hope it help ;)
Note: Please don't cross posts!
by gesf
Fri Aug 24, 2007 6:22 am
Forum: PHP coding => General
Topic: 301 Redirect With PHP
Replies: 2
Views: 1578

Create an .htaccess file in the root folder of your site and put this code:

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_HOST} ^([^.]+)\.
RewriteCond %1 !^www$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com%{REQUEST_URI} [R=301,L]
by gesf
Fri Aug 24, 2007 6:01 am
Forum: PHP coding => General
Topic: Problem on retrieving values from the database
Replies: 1
Views: 1077

That could happen if you were loading content with line breaks into a 1 row text field.
Can you show us the code.. or how are you loading/retrieving the data from database ?
by gesf
Mon Jun 25, 2007 1:39 am
Forum: mySQL & php coding
Topic: What is this mean & uses
Replies: 3
Views: 2209

That's it!
by gesf
Sat Jun 23, 2007 11:26 am
Forum: PHP coding => General
Topic: category visitor report query
Replies: 2
Views: 1343

Try something like:

Code: Select all

SELECT COUNT(hits_field), date_field FROM table GROUP BY category;