Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





!= Code What Does It Stand For?


I googled around but couldnt find the meaning for the following code:

if ($pass != $pass1)

Im not sure if you'd need to see the rest of the code to explain this to me. If so just say so and I can post the entire script I found this on.




View Complete Forum Thread with Replies

Related Forum Messages:
Stand Alone PHP
I want to use PHP as a stand alone scripting language. By that I mean
without a web server present and without any HTML in the code. I have done
this in a few tests on a Win 2000 platform and, with just PHP.exe and a DLL
and the ADOdb stuff in a lone directory, I have successfully run some
scripts to talk to a database. All fine and good.

But the real goal is to make this into a tiny runtime environment that I can
deliver to any machine ... Linux or Windows ... and run some performance
tools on the local database engines ... all without any installations on
those host machines (i.e. just copy the files ... run the analysis scripts
and copy the results for post analysis . without changing the host system).

Is there a discussion anywhere about:

Keeping the runtime size to a minimum?

Cross platform got-ya's ? (I read a couple of messages about this, just
now in this group)

If this is a topic that has been covered to death .. then I apologize and
will continue my search of back news articles.

However, if anyone else is interested in this or would care to shed some
light on these issues for me, please contact me either here or directly.

View Replies !
What Does %something Stand For?
There is this line in a code I have to modify in order to be able to use:

%response = $lperl->curl_process($myorder);

And I can't find anywhere what does %response stand for nor what the % operator is used for in this line...

It is clear that I'm not an OOP PHP programmer so I can't even begin to understand this line... Anyways it gives me a syntax error and I can't use it like this...

I searched the PHP manual for % operator all I get is nothing since it is is somekind of wildcard sign and same situation on these forums...

All I know is that % is used as modulo operator but that's clearly not the case here..

View Replies !
Stand Alone Win98?
how would i get php running with mysql on a windows 98 machine with out a server so that i could test my scripts after i create them.?

View Replies !
Stand Alone PHP Parser
I'm wondering if someone could give some direction on a problem I have
or share their experiences.

I'm wanting to create a little PHP application that will run on a
local machine and use ODBC to connect to a Access database on that
machine. A series of forms will interact with the database but if I
understand correctly, I need some way to parse the PHP code. Is there
a stand alone parser that could be used in place of a HTTP server?

View Replies !
PHP GTK Vs Every Other Stand-alone Language
It seems to me PHP-GTK has all those nifty PHP-features packed inside.
I must say I am kindof a PHP-freak because te syntax and variant-types
I like so much I really want to keep programming in PHP and PHP-GTK
more and more. Does somebody have a different view on this? I am
progamming this on a windows-machine and haven't seen any other
language perform better after slamming programs together.

View Replies !
Stand Alone Script
Is it possible to have a script run on a client pc that does not have PHP or web server installed? The rationale here is that I am trying to script a page that will manipulate images for sizing and then ftp them to my host, and I want to keep the look and feel of the whole application. I have worked with PHP and Javascript so don’t have the skills to create this in any other languages. I have also searched to see if Javascipt would do this but no luck so far.

View Replies !
Compile Php Website To A Stand Alone .exe
Not that i'm one to ask silly questions - but can it be done .

View Replies !
Compiling PHP To Stand Alone Executable In 64bit?
I know that there are easy ways to compile PHP into a stand alone executable in 32bit.. but does anybody know of a program that works for doing this in XP 64bit with 64bit PHP so that it will generate a 64bit executable?

P.S. Yes I have searched but haven't been able to find any for 64bit it seems that most people who make software hate us 64bit users.

View Replies !
Command-line Php Displays Code Instead Of Executing Code
I am using CLI PHP to run a PHP script, c:wampphpphp.exe, but
instead of executing my script, it's actually displaying the raw code
instead.

How can I run my code using CLI PHP? I installed WAMP5 on WinXP.

View Replies !
Code To Read Code In Web Page's Source
Does anybody know how one can supply a URL to a PHP script and have it search for specific code in that web page?

View Replies !
Old Code Vs New Code - Language Syntax Change?
I've recently begun programming PHP again and have found my old code doesn't work anymore. It's been a few years since my code was written, and simple functions don't seem to be working. I've done a bit of research into the syntax again and found the following;

I used to use a function as such;

if ($REQUEST_METHOD=="POST") {
Now I've seen alot of the syntax is
if ($_SERVER($REQUEST_METHOD=="POST")) {
And referencing variables from the form is as such;
$_POST['variable']

Where previously I could reference them in the simple form; $variable

Has there been a language syntax change that would cause my old code to be obsolete? Is there a configuration line that could be changed to allow this old code to work?

View Replies !
Regular Expression :: Format Anything Within <code> And </code>
Any regular expression wizards out their tonight? This is driving me crazy...trying to take a string full of HTML and format anything within the <code></code> tags using highlight_string().

$string = "<strong>This</strong> is some HTML!!!<code>echo "Hello, World!";</code>No more code!!!";
$pattern = "(<code>)*(</code>)";
$replacement = "";

$string = eregi_replace($pattern, highlight_string($replacement, true), $string);

*Thought that would work, but I know regular expressions are NEVER that easy. An hour later...

View Replies !
BB Code - Escape A Bracket In BB Code?
Is there a way to escape a "bracket" in BB code? The beginning of a bbcode
post I made starts with something in brackets [like this]. This causes a
strange thing to happen to the remainder of my post. Removing the brackets
makes my post normal. That shows me that I need to escape the brackets.
However, a simple backslash does not seem to do the trick i.e. this [wont
work]

I am not the administrator of the bb forum, just a poster. So I need to know
what to do on my end (as opposed to an adiministrator's power to
reconfigure, etc.

View Replies !
Translate Perl Code To PHP Code.
Can some one transfer this Perl into PHP? It is from the Spreadsheet-WriteExcel. PHP Code:

View Replies !
Convert Code Into Javascript Code
i have this php code:

header("Location: merge_cart.php?oldsession=" .urlencode($cart["sessionId"]));

now i want to convert this code into javascript code in php echo statement

e,g echo (" windows.location(......php) ");

does anyone knows how to do that.

View Replies !
Zip Code, Post Code, Town
does anyone know where i could get a MySQL db with postcodes and then towns that those postcode correspond to? i think this goes in php because i will develop all of my search in php.

View Replies !
Code To Display My Code
I am taking a class in PHP and thought that it would be nice to display
the PHP code that generated my pages when the user clicked a link (or
submit button). I have seen page that will display the underlying HTML
on the page and it would be a nice touch...

View Replies !
Executing A Php Code Within A Code
i'm making a search option in our website but the thing that makes it hard is that
when the result of the search is only 1 it must automatically execute the a page it locates..unlike when the result yields multiple result all you have to do is link the results..

View Replies !
Using Preg_replace() For [code][/code]
I'd like to be able to something similar to what codingforums does with the script.
however, i can't get mine to work..

I'm somewhat new to php, and I'm starting to understand the patterns, but mine obviously isn't correct.

I have this so far:

[code]
<?php
$text = preg_replace( "/[code](.*?)[/code]/","<table><tr><td>1</table>",$text);
?>

View Replies !
Html Code Within Php Code
How can I insert HTML code from within a php statement?

eg

if validation
{
html code snippet to display message
}else{
HTML Code snippet to display error page
}
}

View Replies !
Adding Php Code Or To Include A Page With Php Code Into A .tpl Page
how would i do this, i am intergrating a phpbb forum system into my site!

View Replies !
BB Code
i am making my own forums and i've got everything working pretty good except the bb code. i can get the easy ones like bold and emails but ones like 'url=index.php'Test'/url' (' = [ and ]) confuse me. i could get it if it was just url= or just plain url but when it can be either one i can't get it to work right.

View Replies !
How To Add A Pop-up Code To Php
cecho"<script>"
. "function openpopup()"
{
. "var popurl="clip.html""
. "winpops=windows.open(popurl,"",width=640,height=480,toolbar,directories,scrollba rs,"
}
. "</script>"Hi,
ÿ. "</script>"Hi,
s.open(popurl,"",width=640,height=480,toolbar,directories,scrollba rs,"
in.php?op=modules">"._ADDAHOME."</a> ]</center>";

View Replies !
GPS, Zip Code DB
I am searching for a database that I can write a PHP
application against. I am not looking for bulky packages, or anything
fancy or maps, ... just some raw SQL data I can mix & match from
tables, ... stuff like Zip codes, Latitude and Longitude, and any
other basic address & coordinate info. I can cross reference and tie...

View Replies !
SSL Php Code
I am using linux, php and trying to do some ssl code. I want to send some identifier that connects my database to the client browser. I was looking into a secure cookie. I only want the page accessed over a SSL connection. Whats the best way to insure the clinet browser can only see my
page if they are ssl connected to it? In adding a 1 to the end of my send cookie code, it sends the cookie regardless of if they are ssl connected or not.

View Replies !
Zip Code
I have a database of zipcodes with latitude and longitude. I also have the
method of calculating the distance between two zipcodes. What I want to
know is if there is an efficient algorithm for obtaining the zip codes
within a specified distance of the first zipcode without having to retrieve
and calculate for every record in the database.

View Replies !
Zip Code From IP
I found this on the internet in a process of grabbing weather from weather.com and it uses the IP to trace back the closest zip code. It looks up the whois info in arin.net and once, worked correctly. I was wondering if anyone knew why it no longer grabs the correct zip code. I don't want the weather anymore but rather just the zipcode. Code:

View Replies !
Code?
This is straight out of a book I'm reading to learn PHP. I'm thinking
maybe I set either apache or PHP up incorrectly on my computer.
Simpler PHP's snippets work fine so I just don't know. Could someone
look this over and see if I have a problem?

<?php
function printColor($text,
$color="black", &$count=NULL)
{
//print the text with style
print("<span style="color: $color">" .
"$text</span>");

//if given a count, increment it
if(isset($count))
{
$count++;
}
}

//call with one argument
printColor("This is black text");
print("<br>
");

//override default color
printColor("This is blue text", "blue");
print("<br>
");

//pass in count reference
$c = 0;
printColor("This is red text", "red", $c);
print("<br>
");
printColor("This is green text", "green", $c);
print("<br>
");
print("Count: $c<br>");
?>

View Replies !
PHP Bug (or My Bad Code)?
Consider this code:

<?
$mask_n = (pow(2,32) - (pow(2,32-24)-1));
printf("%x
", $mask_n);
?>

On PHP 4.1.2 it prints:

ffffff00

On PHP 4.3.10 is prints:

ffffff01

Both versions of PHP are the standard Debian packaged versions (4.1.2
from Woody, 4.3.10 from Sarge)

tecra# php -v
PHP 4.3.10-9 (cli) (built: Mar 6 2005 17:45:14)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

admin# php -v
4.1.2

Results are (predictably) the same under both the CLI version and under
the Apache module.

Is this a bug in PHP, or is there something broken in my code?

View Replies !
Php Code In A .gif?
I have heard of it being done, But i cant quite figure out how its done. I would like to make a .gif that would maybe have a mail() or something in it.

View Replies !
Add Code To My Code
I have a good file exists code and want to add it to a different file, i tried several times but i get coninual errors. Could someone please help me and paste my code into my full file, i promise to learn from your work. i know it should be simple but im a bigginer to php. Code:

View Replies !
Add Code To Code
how i can add code 1 to code 2 witch is below?what im trying to do is have a banned email code so when some one signs up it will say the email has been banned i have a table in my database with the list of emails that i want banned its called banned_emails and iin the banned emails table its called banned_email that is where the emails are Code:

View Replies !
Run The Code More Than Once...
I am trying to get my code running more than once when a user submits their form.
For example, when a user vists the page called "search", then can enter a number between 1 and 100. Once they hit submit, I want the code to run completely, x amount of times, depending on what the user requests.

View Replies !
Code For This
Say I wanted to create a comprehensive product code based on what the product in the database is called. Therefore I'd like:

"Blue Widget in Cotton"

to become:

"BLUEWIDGETCOTTON"

I can get rid of the space and "in"'s using str_replace but is there any code that will turn it into all capitals?

View Replies !
Mdb Code
Could some body be so kind to convert the following code so that it works with mysql

<?php

$sql="SELECT * FROM Admin";
$rs=odbc_exec($conn,$sql);
if(!$rs)
{
exit("Could not retrieve script settings.");
}
odbc_fetch_row($rs, 0);

?>

I have tried but keep getting errors

View Replies !
Fax Code
I know you can send an email VIA php but can you send a fax in the same way?

What I would like to do is have a fax sent to a designated number everytime an order is completed on my shopping cart program.

Any ideas on where to find a tutorial or general information about faxing VIA the internet. I don't want to pay a subscription/mo, i want to develope the code to send it right from my server, no 3rd parties involved. If you have ever done business, you know that the more parties involved the more hassles there are.

View Replies !
How To Code In Php ?
Many times i need to open certain file ( for 100 times )from ftp and correct errors.
How can i do this localy ? How can i test it so that its operating like on remote server ?
Question, work off-line, all finished - upload to server. Code:

View Replies !
Using PHP Code
i am sending mail using php code "mail()". It is working for usal mail accounts. But when i send to gmail account, it make problems. Gmail does n't resolve my header formats. The html code also shown to the viewer. How can i resolve this issue.

View Replies !
My First PHP Code
My first code of PHP when I run from the browser gives me blank screen. The code is

<html>

<body>

<?php

$myvar = "Hello World";

echo $myvar;

?>

</body>

</html>

I am using apache server. Please tell what to do.

View Replies !
This Code
$antroj=0;
$dtctxsz1 = $_POST["dtctxsz1"];
if($dtctxsz1 == 0){
print $dtctxsz1;
$antroj = $antroj + 1;
}

It adds 1 to $antroj even when the value of $dtctxsz1 is not 0. I have spent 7 hours on this one problem. Its driving me nuts.

View Replies !
Get The Code
can any one provide me the code? or where can i get the code for massive online games websites.

View Replies !
Looking For A Php Code
Im looking to create a website that relies heavily on a peice of php script,unfortunatly I am unsure what the script is, and where i can find it, if i can find it, and if not what to say to my website designer so they can write the appropriate code. The code im looking for is present on ebay; when you try to sell something.

it asks you to identify what catagory it should go under, so you select an item in box 1, which loads subsequent items in box 2, then you choose what you want in box 2 which loads relavent inforamtion in box 3 until you have what you want, its a way of narrowing down.

View Replies !
Zip Code By Ip
I have a database that has every zip code in it along with the city name, state name, latitude and longitude. What i want to do is automatically display results from the users Zip Code by getting their ip. I've seen this done before, and I would be willing to purchase a database of this information if I had to. Does anyone know how i can do this or where i would get this information?

View Replies !
Best Way To Code
I'm making a forum and wanted to know whats the best way to code if a post/topic has been read? using a session?

View Replies !
Php Code
PHP Code:

<?php
if (isset($_GET['submit']))
{
header("Content-type: image/png");
$im = @imagecreate(100, 50)
or die();


$b_red = "$back[0]";
$b_green = "$back[1]";
$b_blue = "$back[2]";

$t_red = "$text[0]";
$t_green = "$text[1]";
......................

View Replies !
Ipn Code
Would anyone want to share ipn code for alertpay or worldpay..

View Replies !
Go To URL Code
How do I direct the bowser to a different location in PHP? It is needed after some calculations so header method won't work!

View Replies !
ASP Code
I have a function written in ASP, but I need the same function in PHP to return the same value. This is a function that encrypts a password: Code:

View Replies !
Var Code
can somebody give me a code that validate to see if the first letter of a variable string is an alphabet (case incensitive).

View Replies !
Hex Code?
I'm looking for some way to select certain colors depending upon others. Such as if a parent dragon had skin the color #FFFFFF, and the other parent had #018274, how could I find a medium between each color?

View Replies !
VB Code
Hi is there any way i can include VB code in my php page i want to make a simple form where you purchase something and it costs you points (which is held in a table) i dont any security on these fields or any thing like that. i know vb better than i do php so wondered if it was possible.

View Replies !
PHP Code
Code:

if ($totalrows > 0) {
for($i = $fr;$i < $to;$i++) {
$hoplink = $rss_channel["ITEMS"][$i]["LINK"] . "&u=" . $cbengine_user . "&cbid=" . $cbengine_cbid;
print ("<div class="item">");
print ("
<div class="itemtitle"><a href="" . $hoplink . "" target="_top">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></div>");
print ("<div class="itemdescription">" . $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</div>");
print ("</div>");
}
} else {
print ("<b>Your search did not return any products.</b>");
}

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved