Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 45
Search took 0.09 seconds.
Search: Posts Made By: Relish
Forum: PHP 06-07-2009, 04:28 AM
Replies: 8
Views: 831
Posted By Relish
Ahh, k, cool :) I need to refresh my...

Ahh, k, cool :)

I need to refresh my knowledge of regular expressions :/
Forum: PHP 06-07-2009, 04:25 AM
Replies: 8
Views: 810
Posted By Relish
Oh whoops, I forgot to change $str back to $view...

Oh whoops, I forgot to change $str back to $view haha :P
Forum: PHP 06-07-2009, 04:21 AM
Replies: 8
Views: 831
Posted By Relish
Okay, fine, for your sake. :D But what was...

Okay, fine, for your sake. :D

But what was wrong with the code I posted? :confused:
Forum: PHP 06-07-2009, 12:30 AM
Replies: 9
Views: 632
Posted By Relish
Encode the data being passed to $_GET with...

Encode the data being passed to $_GET with urlencode().
Forum: PHP 06-07-2009, 12:27 AM
Replies: 8
Views: 831
Posted By Relish
<?php $tweet = 'Hello there @gnomeontherun....

<?php
$tweet = 'Hello there @gnomeontherun. This is a test string!';

$exp = '/@([a-z0-9_]+)/i';
$tweet = preg_replace($exp, '<a href="http://twitter.com/$1">@$1</a>', $tweet);
Forum: PHP 06-06-2009, 08:25 PM
Replies: 1
Views: 748
Posted By Relish
Perhaps a modification of...

Perhaps a modification of http://www.codingforums.com/showthread.php?t=168322 would work?

It would not be very easy to search an entire site though, without making a bot to index it.
Forum: PHP 06-06-2009, 07:37 PM
Replies: 1
Views: 788
Posted By Relish
Hello, use <span style="color: #FFF;"></span>...

Hello, use <span style="color: #FFF;"></span> instead of <font>, as <font> is a deprecated tag.

But in this case, you can use the style attribute to change the color.


<?php include_once...
Forum: PHP 06-06-2009, 07:18 PM
Replies: 4
Views: 691
Posted By Relish
It's actually a good idea to use single quotes...

It's actually a good idea to use single quotes whenever possible, even with variables.

I know it takes a little longer to concatenate everything, but it's good coding practice and improves the...
Forum: PHP 06-06-2009, 07:12 PM
Replies: 8
Views: 810
Posted By Relish
Do not put lone variables in quotes! <?php ...

Do not put lone variables in quotes!

<?php
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $websiteurl);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);...
Forum: HTML & CSS 06-06-2009, 03:44 PM
Replies: 1
Views: 647
Posted By Relish
Friggin spam. Anyway, this might be of...

Friggin spam.


Anyway, this might be of use to you: http://www.weberdev.com/get_example-4182.html

This is more of a php thing than html/css.
Forum: PHP 06-05-2009, 08:26 PM
Replies: 3
Views: 561
Posted By Relish
Ahhh, that makes a lot more sense. Don't put...

Ahhh, that makes a lot more sense.

Don't put quotes around variables :mad:

:)

<?php
$no_attributes = array();

$attributes = array(
Forum: PHP 06-05-2009, 01:46 PM
Replies: 1
Views: 514
Posted By Relish
If you want someone to do this for you, post this...

If you want someone to do this for you, post this in the small jobs forum.

If you want to do it yourself, use MySQLi in conjunction with PHP readdir().

http://us.php.net/readdir
Forum: PHP 06-05-2009, 01:42 PM
Replies: 3
Views: 561
Posted By Relish
<?php $no_attributes = array(); ...

<?php
$no_attributes = array();

$attributes = array(
'href' => 'Href',
'title' => 'Title',
'name' => 'Name',
'class' => 'Class',
'id' => 'Id',
'width' => 'Width',
Forum: PHP 06-05-2009, 01:15 PM
Replies: 5
Views: 636
Posted By Relish
Why are you putting quotes around a variable like...

Why are you putting quotes around a variable like that? All that does is slow the script down.


$l = (int)$_GET['l'];
${'1'} = 'http://google.com';
${'2'} = 'http://yahoo.com';
$link = ${$l};...
Forum: PHP 06-02-2009, 01:59 AM
Replies: 9
Views: 4,307
Posted By Relish
Mind pasting the code you are using?

Mind pasting the code you are using?
Forum: PHP 05-31-2009, 09:39 PM
Replies: 7
Views: 670
Posted By Relish
Glad I could help :)

Glad I could help :)
Forum: HTML & CSS 05-31-2009, 09:33 PM
Replies: 10
Views: 1,027
Posted By Relish
Not trying to be impolite, just wondering how I...

Not trying to be impolite, just wondering how I was off track..

And Happy Birthday Aerospace :)
Forum: HTML & CSS 05-31-2009, 09:28 PM
Replies: 12
Views: 987
Posted By Relish
Why do you not want to use images?

Why do you not want to use images?
Forum: PHP 05-31-2009, 09:27 PM
Replies: 42
Views: 1,730
Posted By Relish
You should learn it. I love it, and it makes so...

You should learn it. I love it, and it makes so much more sense :)

I am going to be back later tomorrow, I will check over it once more if you still cant figure it out.
Forum: PHP 05-31-2009, 09:20 PM
Replies: 42
Views: 1,730
Posted By Relish
Can you post the code you have as of now? Thanks...

Can you post the code you have as of now? Thanks :)
Forum: PHP 05-31-2009, 09:12 PM
Replies: 7
Views: 670
Posted By Relish
For each page, just use include() to include the...

For each page, just use include() to include the headers/everything else.

<?php include 'header.php' ?>
Content for this page.
<?php include 'footer.php' ?>

If you change header.php or...
Forum: PHP 05-31-2009, 09:07 PM
Replies: 42
Views: 1,730
Posted By Relish
$path = pathinfo($_FILES['upload']['name']); ...

$path = pathinfo($_FILES['upload']['name']);
$extension = $path['extension'];

Much more secure and reliable.

And no, you do not need a blob for what you are trying to do. Just store the image...
Forum: PHP 05-31-2009, 08:02 PM
Replies: 42
Views: 1,730
Posted By Relish
Hmm, if I remember right, I don't believe that...

Hmm, if I remember right, I don't believe that you can select the database with mysql_connect. I believe you need mysql_select_db.

But if he did not have mysqli, wouldn't it throw an error?

And...
Forum: PHP 05-31-2009, 07:58 PM
Replies: 7
Views: 670
Posted By Relish
It's as simple as: <!-- Insert Doctype,...

It's as simple as:


<!-- Insert Doctype, head, etc here -->
<?php include 'included_page.php'; ?>
<!-- Close body, html here -->


Is that what you mean? Or do you want to include the header...
Forum: PHP 05-31-2009, 07:49 PM
Replies: 42
Views: 1,730
Posted By Relish
Just wondering, real quickly, why are you storing...

Just wondering, real quickly, why are you storing a blob?
Showing results 1 to 25 of 45

 
Forum Jump

All times are GMT +1. The time now is 09:23 AM.