Producing Catalogues On CD
I have produced an online catalogue using PHP. I want to do the same thing but have a complete application, database and all, on a CD. Presumably not possible with PHP, does anyone know of a way of doing this?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Parsing Catalogues
Im currently working on a script that parses .dbf files and put then into a mysql database, thats the first part of my script , now i have some .CAT files that i cannot understand I have a dbfviewer that opens this files and let me see them just like dbf's, but when i try to parse the .cat files with db***() functions, it says it cant find the index 0.
View Replies !
View Related
While Producing Duplicate Results
I'm trying to add the ability to attach categories and subcategories attributes to each post. I've created two tables (chap_category, and chap_sub_category) that stores the names and a unique id number for each. It's suppose to list the Categories that corresponds to the forum I'm adding a new post to. Under each of the Categories, its corresponding Sub-categories will be listed. But now it's listing the proper sub categories for the first category, for the second category it lists the first category's sub categories, for the third category it lists the first's sub-categories AND the second's subcategories...etc. PHP Code:
View Replies !
View Related
GD2 Producing Empty Images
I've found a problem with many of my PHP installations. I'm not sure whether it's a PHP problem, or an Apache problem, or something else again. The issue appears when we try to use the following snippet from the PHP docs for imagecreate(): <?php header("Content-type: image/png"); $im = @imagecreate(100, 50) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 255, 255, 255); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng($im); imagedestroy($im); ?> This brings up an empty page. FF Page Info shows a 0px x 0px png. I'm using Win2K on 2 of my 3 machines. On the 3rd, XP machine I'm using xampp which uses Apache 2, and it works on that one. Currently trying to install xampp on my main workstation (win2k), but can't get existing port 80 server cleared... That's another issue. Anyone have similar problems with GD2 in PHP?
View Replies !
View Related
Producing Snippets Of Text
I currently have the following code: $select = "SELECT * FROM text WHERE MATCH(content) AGAINST ('".$keyword."') LIMIT 0,50"; $query = mysql_query($select); while ($info = mysql_fetch_object($query)) { $results[] = $info->content; } foreach($results as $result) { echo $result."<br> "; };.
View Replies !
View Related
File_put_contents Producing Unusual Characters
I have a piece of code that goes through a list of words and places the word in a specific file, depending on the first letter of the word. For example, if the first letter were "A," then the word would be placed within the A.txt file. The problem is that output in the files is just a bunch of boxes, like the character encoding is somehow screwed up (which I don't understand how that could be possible). It's very strange. I can output the EXACT same info in an ECHO statement to the browser, and it appears just fine. I get no real errors. Here's the PHP code (every bit of it): ....
View Replies !
View Related
Imagerotate(), Producing A Black Background Color
I am having this Image, the background of the image is transparent But on rotation using imagerotate(), it is producing a black background color. This background color is coming on using any function on the original image ie, like imagecopy() etc . I have used imagecolortransparent() to suppress the color, but still the problem is coming.
View Replies !
View Related
Result Query - Producing Extra Results?
what am i doing wrong here? $startrow=0; $limit=20; $qry = mysql_query("SELECT bodycare.*, haircare.* FROM bodycare, haircare WHERE bodycare.avail='true' AND haircare.avail='true' LIMIT $startrow, $limit")or die(mysql_error()); it should return 6 results between bodycare and haircare. instead it returns 8, - 4 repeats of the first haircare product and 4 of the second haircare product. There are only 2 haircare products in total and 4 bodycare, but the bodycare aren't turning up at all why? can you help me fix it?
View Replies !
View Related
This Class Returns HTML Content But Fails In Producing Globals, Why?
The following class is supposed to produce a series of HTML dropdowns and HTML text fields based solely upon variable names for month, day and year passed into it. Those variable names will correspond to actual variables with values that are passed into the preSelect() function inside the methods (that function is called from an outside parent script included). However, upon careful inspection the global function does not globalize anything within any method. // USE THIS CLASS TO GENERATE A SERIES OF DROPDOWNS AND TEXT FIELDS PERTAINING TO MONTH / DAY / YEAR class DropdownGenerator { var $hasMonth, $hasDay, $hasYear, $monthVar, $dayVar, $yearVar, $yearFieldLength, $monthArray; function DropdownGenerator($monthVar = '', $dayVar = '', $yearVar = '', $yearFieldLength = 4) { $this->yearFieldLength = $yearFieldLength; foreach (array('month', 'day', 'year') as $key => $val) { $this->{$val . 'Var'} = ${$val . 'Var'}; $this->{'has' . ucfirst($val)} = (strlen($this->{$val . 'Var'}) > 0) ? 1 : 0; if (strlen($this->{$val . 'Var'}) > 0) global ${$this->{$val . 'Var'}}; } $this->monthArray = array(༽' => 'January', ༾' => 'February', ༿' => 'March', ཀ' => 'April', ཁ' => 'May', ག' => 'June', གྷ' => 'July', ང' => 'August', ཅ' => 'September', ཆ' => 'October', ཇ' => 'November', ཈' => 'December' );
View Replies !
View Related
Producing Strange Characters, ""...?
I've got a couple strange characters showing up at the top of a few of my PHP pages, but I'm not sure what's causing them. Have anyone seen something like this?  It's being outputed before any of my HTML. I've got all kinds of library/class files loaded, session management and a load of setup vars/constants. I can't seem to figure out what is causing it.
View Replies !
View Related
|