php

My apostrophies look like small boxes

If you go to the page www.winteradagency.com/mrw/revitalization.php you see that within the text of the document, which is being generated from a database, the apostrophes look like small boxes. How do I fix that? ...

php class performance question...what should I do?

I'm building a webapp using php, ajax, javascript, mysql. I've been worring about something for a while, but not sure if it's really a problem or not. Here's the basic concept of how the code is working...I would like to know if I should change it now, or if it is o.k to use as is. Performance is important to me...over 5,000 users sho...

PHP / MySQL formatinng: An example of how this type of data is used?

Hey everyone, Sorry in advance for the kind of odd/vague question :). I've come across this kind of formatting stored in MySQL databases on several occasions now and I'm wondering how the data is used? For example, this line of code was from the bbPress forums plugin bb_message. a:8:{s:9:"max_inbox";i:50;s:13:"auto_add_link";b:1;s:9...

PHP mysql_query error

I'm trying to learn and I'm stuck. I don't understand why this doesn't work. If I just leave the include and remove the function call and don't wrap the database connection in a function it works properly. What is it that I'm missing here? Error Message: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource...

How to add spelling suggestions to PHP/SQL search script

Hey Guys, Creating a search function on my site using php/sql, simple enough - just using a SELECT ALL query on the database using the LIKE clause and echoing the result on the page. My question is, how can I add spelling suggestions in case the user mistyped their search query. Mysql doesn't return anything unless the search term match...

Zend Framework with PHP, changing class labels

I am using Zend Framework with Dojo to make tab containers. I need for the dt tags to be createEventForm-waiverDetail-addElement-label instead of addElement-label. However I cannot figure it out. You can see them as the id in the following code snippet http://pastie.org/780362 I have looked and looked for this. I think it may be so...

IE6 position fixed problem

Ok I am not trying to get an element to a fixed position, im trying to get a div tag out of fixed position. i have a header that is at the top position relative. below it is just another div tag with content in it. when i went to preview it in IE6, the header was positioned at the very top, and was fixed. it stayed at the top when i scro...

How to only show server directory list to a certain user in PHP?

I just finally after trying many time over the past few years, got my dev serer online. I put it online so I can show a couple friends progress on my work so I am not that worried about security because only a couple people will know the URL. One thing I would like to accomplish though it to have the default directory list hidden, I...

Is there a normalized form for representing several objects from different tables?

For a system I am currently building, the following two scenarios occur: My permissions system is the perennial favorite of attaching permissions to roles, and roles to users, but with a twist: permissions may be applied to any asset at any tier, and there are 4 "Tiers", numbered 0 through 3. As such, the role assignment table is 5 fi...

a break in a table

i need to break them up ||name || id || __________________ ||tab || 1|| ||ritchie|| 2|| __________________ _________________ ||apple|| 3 if i use tr td, it would end up as ||tab || 1|| ||ritchie|| 2|| __________________ _______||_________ ||apple|| 3 ther ewould be a line in the break too. how to achieve the one whole single ro...

using sleep(), I cannot get my values to echo.

I'm using a sleep function inside of a foreach loop and I'd like to echo the value inside the loop. Why isn't this working? The $test var inside the loop never changes from 0. foreach($test as $val){ ob_start(); echo $test++; sleep(1); ob_end_flush(); } ...

Outbound links and iFrame

I want to replicate how digg.com treats their outbound links. They generate a short link like this: http://digg.com/d31F24Q which loads the outbound link's web page in an iFrame with a bar on top of the frame. I think there's a page template with the bar and iframe for all outbound links point to there. So how would I make all links poin...

difference between php and php5

i want to study oops related php, mainly for mashups and some development. I started with php n mysql, whats main relation or difference b/w php and php5. Is there anything like different php for web development and other php for software development?? guide me some books with php oops examples and concepts......... ...

dynamic text change in a page using php

hi im new to PHP .. i want a script were i can change the text dynamically when the page is live from (Arial to Times) something like that.. can any one pls help me in dis.. or can anyone pls provide a script for dis..??? ...

How does wordpress password hash work?

I need to integrate a Django system with a Wordpress site, as in wordpress users should be able to log in the DJnago part and vice versa, For this I need to understand how the password hashing works in Wordpress. I can see the wp_users table which stores the username and password hashes. Looking through the wordpress code, I can see th...

Dynamically selecting colors and themes in a page

hi everyone im new to PHP, i want to create a page by using PHP in such a way that page should contains a few color change options and themes by selecting those colors or themes it should refelect in the same page. can anyone pls help me by giving sugessins or proving a script for that.. ...

how to hack this php class for parse ZIP file in random or specific order

My English is poor so I will make it short. Right now, I have imzip.zip which has three txt files: a.txt b.txt c.txt When I try to load imzip.zip using: http://pastebin.com/m1d974990 It loads the files alphabetically. In this case: a.txt b.txt c.txt However, I would like to be able to have the class load on different variables su...

want to show a time for the comment last posted through php

Hi, I want to show when the comment last posted in PHP. like 5 minutes ago, 2 days ago, 7 weeks ago. How to do this? ...

PHP SOAP server doesn't correctly process UTF-8 strings from a C# SOAP client

I have a PHP SOAP server (using nuSOAP) that I consume with a C#-based application. When the C# application submits a request, the strings are UTF-8 encoded. I verified using a network sniffer that the byte sequences are valid UTF-8. However, when PHP gets then and I post them to the database or send them by email, it appears to be pr...

Dynamically populating an UnOrdered List

I am attempting following code to populate an UnOrdered List dynamically. The same type of code I am successfully using to populate a DropDown. But when I changed the tags to UnOrdered List, it is not working. When run, it just displays some tags instead of the actual output. Where is the error: <?php require("dbconnection.php"); ...