39,316 Topics

Member Avatar for
Member Avatar for LONGWAY

I need a very big help and is urgent. I have a big "permission" problem when i run this module and I get ths errors: Warning: fopen(tmp/::name.hsh) [function.fopen]: failed to open stream: Invalid argument in ... Warning: fwrite() expects parameter 1 to be resource, boolean given in... Warning: fclose() expects …

Member Avatar for LONGWAY
0
238
Member Avatar for piyush.dwivedi.5

Hello Everyone, I have a log.txt file in the format: ================================================ [Jan 25 2012 11:26:03] - ID2PDF v.2.6 (ID2PDF.jsx) General options: [default] (ID2PDF_options.xml) ================================================ Loaded options from XML file: '/the/path/to/file/ID2PDF_options.xml extendedPrintPDF started Postfix '4.4' was append from file 'FNM040112ArtichokeHandbook_lo-metadata.xml' for file: /the/path/to/file/FNM040112ArtichokeHandbook_lo.indd printPDF started PDF Export Preset: Hearst PDF 1.6_1_16_08 …

Member Avatar for veedeoo
0
213
Member Avatar for selasedaniweb

Hi Good friends, I have an index page for my blog that pulls up all posts to the page. I have a group of posts i have assigned to a category named 'Diary'. I want to prevent posts in the 'Diary' category from showing up on the index(home) page. The …

Member Avatar for selasedaniweb
0
415
Member Avatar for persianprez

So here is my current code that doesn't work for what I'm trying to do: <?php $urlp1 = "members/"; $urlp2 = 0; $urlp3 = ".html"; $url = $urlp1.$urlp2.$urlp3; $data = file_get_contents($url); ?> <script type="text/javascript"> var url = "<?php echo $url; ?>"; var temp = getElementsByClassName('daniweb'); document.write(temp); </script> <p style="margin-bottom: 50px;"></p> …

Member Avatar for AleMonteiro
0
333
Member Avatar for jamespope44

afternoon all! I am having some issue writing a log in script for a website! this is my first ever attempt so i am hoping it is something very straight forward!!!! I am getting the following error message - Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource …

Member Avatar for deceptikon
0
270
Member Avatar for saadi06

Hi, I am habving problem with tcpdf library.I am using Version: 5.9.162.I have a table format structure and the user writes in the table format and add the data and creates the pdf but my pdf file is not creating as i wish to create them some of the data …

Member Avatar for diafol
0
1K
Member Avatar for mathieu89

Hi, This has been troubling me for the last hour and I cant think of a way around it. My SQL table looks like this: **Name, Cost** Matt, $5.00 Carl, $4.50 Tom, $6.00 Tom, $7.50 I need to make a query so that it puts anything with the same **Name** …

Member Avatar for mathieu89
0
183
Member Avatar for skn123

<?php header('Content-Type: text/html; charset=UTF-8'); if (file_exists('./admin/actions/precheck.php')) { $testing_from = ''; require_once './admin/actions/precheck.php'; } $response = ''; try { require_once 'admin/config/ProjectConfig.php'; ProjectConfig::setup(); $options = array(); $application = new Moto_Html_Application($options); $response = $application->dispatch(); } catch(Exception $e) { echo '<b>Exception</b>: '; echo $e->getMessage(); } echo $response; Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on …

Member Avatar for pritaeas
0
106
Member Avatar for aa_day90

I have this calculator class that performs business calculations distributed among small methods. I'm split between choosing to save the state, or just calculate everytime a method is called. Am I doing unnecessary micro-optimization or not? class Bill { private $value1; private $rate1; private $value2; private $rate2; // ...code here …

Member Avatar for aa_day90
0
84
Member Avatar for muralibobby2015

Hello, i am new to magento. please clarify me i want to do below task if cart amount greater than (grand total)500 then charge 10% deposit at first and before product delivery user has to pay remaining amount. if cart amount(grand total<=500) then user has to pay total amount. how …

Member Avatar for LastMitch
0
128
Member Avatar for waqar3

I want to open this flash code in popup box. But can't find solution any one can tell me ho can it is possible. I want to used this in joomla CMS. <p style="text-align: center;"> <object height="215" width="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,32,18" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="src" …

Member Avatar for LastMitch
0
146
Member Avatar for singh007

I'm using Drupal 6.2 and Ck editor. Now whenever i upload some image in ck-editor , the image gets uploaded and saved in file system successfully. My problem is when i try to show data on some page , the uploaded image is missing but text is shown but when …

Member Avatar for LastMitch
0
202
Member Avatar for jdm

I'm almost done with college and I want to work on a side project that I could use to show case my skills. I'm looking for something that I can combine a bunch of different aspect into one. I know this will be a big project and won't be able …

0
176
Member Avatar for GraficRegret

so here is the line calling the function: $login = login($username, $password); if($login == false) { $errors[] = 'That username/password combination is incorrect'; }else { $_SESSION[user_id] = $login; header('Location: anounceEdit.php'); exit(); and here is the functions code function login($username, $password) { $user_id = user_id_from_username($username); $username = sanitize($username); $password = SHA1($password); …

Member Avatar for bpinkston1
0
209
Member Avatar for Djmann1013

Hi, I have this code here: **index.php** <?php include 'core/init.php'; include 'includes/overall/overall_header.php'; ?> <h1>Welcome to AwsomeChat!</h1> <p>This is AwsomeChat - a free place just to hang out. This site is made for chatting or socializing with a friend. This site is free, no membership needed to use this site.</p> <?php …

Member Avatar for diafol
0
862
Member Avatar for Resentful

Hello, everyone. I've been attempting to make a proper proxy checker to check for HTTP proxies for a while, yet I've been unable to find one that correctly finds working proxies. The bulk of my code is below. $ch = curl_init(); //initizlize and set url curl_setopt ($ch, CURLOPT_URL, "http://google.com"); curl_setopt($ch, …

Member Avatar for Resentful
0
180
Member Avatar for chira.laura.9

Heloo everyone. I have this code for a form in PHP...but when I use $POST['collection'] or any other from th drop down lists I cannot access the vaalue of the variable passed: <form enctype="multipart/form-data" action="insert_validation.php" method="post"> <table border="0"> <tr><th>Choose category: <tr><td><select name="category"> <?php $sql=mysql_query('SELECT category from Category order by category'); …

Member Avatar for broj1
0
344
Member Avatar for mehnihma

in the string XX is always changed and string can be longer or shorter and it can be without searched word, where XX is a number example: 1 kom. nije naručeno, obično dolazi za 5 dana., slični: sony-6am6ptb1a (0 kom.), sony-s006pb1a (-9 kom.) So from that I need to output …

Member Avatar for diafol
0
146
Member Avatar for GraficRegret

ok so here is the code that is being called <?php require 'core/init.php'; if(empty($_POST) === false) { $username = $_POST['userName']; $password = $_POST['password']; if(empty($username) === true || empty($password) === true) { $errors[] = 'please enter a username and password'; }else if(user_exists($username) === false) { $errors[] = 'we can't find that …

Member Avatar for GraficRegret
0
362
Member Avatar for Clanstrom

I am a php newbie, and I have realised that there are many functions to learn in php, but can anyone point out which ones are the best for beginers? Can you mentions 10 most usefull functions or more?

Member Avatar for diafol
0
216
Member Avatar for Suzie999

I'm thinking of hosting a *name that tune* type game. I don't know anything about PHP or even if it's the languge to use, but I'm hoping someone might put me straight on that matter too. Here is an outline of my needs/scenario. I post a link to a song.mp3 …

Member Avatar for Suzie999
0
270
Member Avatar for amith_ami

hi all.. pls help me.. i want to sum the price of multiple products with its quantity and shipping charges. in my products table all the products have different shipping charges. for ex: product1 shipping charges. product2 shipping charges. shipping to US = $10.99 shipping to US = $14.99 shipping …

Member Avatar for amith_ami
0
130
Member Avatar for GraficRegret

ok so here is the code I am working with, <?php include 'database/conection.php'; $allowedExts = array("jpg", "jpeg", "gif", "png"); $extension = end(explode(".", $_FILES["file"]["name"])); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/png") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] < 20000000) && in_array($extension, $allowedExts)) { if ($_FILES["file"]["error"] > …

Member Avatar for GraficRegret
0
59
Member Avatar for GraficRegret

ok so I am trying to create a login page for my website, however after following a tutorial on creating all the functions and calls and everything I need to in order to get it up, I upload it to my server and when I try to test it the …

Member Avatar for GraficRegret
0
100
Member Avatar for din3sh

I'm trying to create a php script to print fibonaaci series. The idea is to add a new number to the series everytime the page is refreshed and print the series. <?php if (!isset($_COOKIE["fno"])) {setcookie("fno",0,time()+3600);} if (!isset($_COOKIE["sno"])) {setcookie("sno",1,time()+3600);} if (!isset($_COOKIE["series"])) { $text="0 1 "; setcookie("series",$text,time()+3600); } $fno=$_COOKIE["fno"]; $sno=$_COOKIE["sno"]; $fibostring=$_COOKIE["series"]; //echo …

Member Avatar for broj1
0
251
Member Avatar for filch

Hello, been a while since I have been here but I am working on something that has me stumped and I have not been able to solve it nor find an answer that does what I need to do. I have a form that is usually sent to an external …

Member Avatar for diafol
0
231
Member Avatar for sri.

hai everybody i have a social media connection in my pagewhenever click the share button the first screen you see is an **'Allow Access?**' screen with a button for **'Allow'** or **cancel** (link). How do I get such a screen to display for my page? thanks in advance.

Member Avatar for LastMitch
0
121
Member Avatar for ganesh641

I am using curl function to login my web site using the Gmail username and password. Its working fine in my local environment but once i moving that file into my client server it returns the response **"HTTP/1.1 401 Unauthorized"**. provied some solution here is my curl function code for …

Member Avatar for veedeoo
0
5K
Member Avatar for giovannitao

Hello, Somenone that know osclass script, can hel me to customization search bar. I try to edit inc.search.php but I don't know how can I obtain this result: [Click Here](http://i50.tinypic.com/3537gwi.png) In this search bar tou can see 3 menus: What, Where (with city) and Category. Thanks to all

Member Avatar for gon1387
0
554
Member Avatar for showman13

For some reason, every time I try to submit a question I get the error message that the code snippet in my post is formatted incorrectly.. I don't even have a code snippet. is it just me or is it something that happens to others?

Member Avatar for showman13
0
188

The End.