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.





@ Sign In Front Of An Command


Anybody can tell me what the @ sign means in this context?

$host = @gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]);




View Complete Forum Thread with Replies

Related Forum Messages:
Preg_replace :: &-sign Are Not Converted To + Sign
I want to turn the following:

<ref>Name & Name2, 1999</ref>

<a href="index.php?ref=Name + Name2, 1999">Name & Name2, 1999</a>

I now have to following code:

$text = preg_replace("/<ref>([^<]+)</ref>/m","<a
href="index.php?ref=1">1</a>",$text);

The problem is that &-sign are not converted to + sign. That is really needed because & marks the end of the variable $ref.

View Replies !
Tracert :: Passing Command To Command Prompt Via Exec
I want to execute a "tracert" command in the command prompt via php (using windows)

I've managed to use passthru() to open the command prompt (but it doesn't allow me to use it) and when I close it, it outputs the command prompt output in the browser.

I don't mind whether the result is passed back to the browser to stays in the command prompt window (but that would use exec() I would think).

So how can I tell the command prompt that launches to execute the line

tracert 192.190.201.273

So far my experimental code is:

<?php
passthru("c:windowssystem32cmd.exe");
?>

EDIT: my backslashes have been stripped from the path, but you know what I mean!

View Replies !
Front End For Php
which software can help me to build system using php... i means user friendly. it can help me to design the system easily.

View Replies !
Front End
I need an assist with a coding problem. I don't have any. I am pretty close to code illiterate, so I need to find someone who can crunch up something for me if possible. Myself and another fellow have a website that we use for entertainment purposes, Virtual Airline, no membership fees and everything is free. On this site, we have a MySql database that users transmit data to through a client side app. However, once it is in there, the user can't view the details. What I would like to find some php coding that would. Have an entry that would be hardcoded for that user

Would search by his/her id
Return date of entries (last one first)
Return Departure of each entry
Return Destination of each entry
Return Time taken of each entry
and a link to the dat file sent for each entry.

Is this possible to do with php? Can anyone assist?

View Replies !
@ In Front Of Variable
What is the @ for when put in front of a variable? I am looking at
some older code and have never used it myself.

View Replies !
Front For Mysql
Are there any good PHP scripts or pre written programs that deal with a
complex database?
Let me explain:
I'm in truck dispatch, and we've moved all tables to mysql and access them
on a network via ms access.
We will open another office in another city, and will want a "web" database.
Now here's what I'm after: Currently one form has various dropdown boxes to
pick customer, shipper, consignee, and carrier information. YES, I even
have the combos ask (ENTER SEARCH STRING), so all 17000 records do not show
up in the dropdown combo boxes. You might enter da for example to get all
occurrences of carries that start with da, i.e., Davis Transportation Inc.
Currently only about 5 da's. Of course the information in combos are pulled
from the customer database via a query. This all being done in ms access
with the mysql tables linked.

This is a very complex system, and all works perfect on a five computer
network.
By the way, choosing a shipper in a combobox fills in "ALL" necessary fields
for pickup, i.e., Address, contact person, phone number for directions, etc.
Can a web database even do something like this?

When I migrate to a "Web" database, I am looking for a good PHP script /
code / example that can handle this situation of dealing with multiple
lookups on one form, and filling in all required information without having
to type it in each time.

Ok PHP folks can this be done and where are the examples to learn off of?

To put it in a nutshell, I know how to populate a table, search, and edit
records in php. What I need are example of: Say you are entering a new
record, I need a "LOOKUP POPUP TABLE" with a search (enter search string)
like above, and a way to select a row, then the "LOOKUP POPUP TABLE" closes
and the original record I was entering has certain fields filled in. Liken
this to the "Northwind" example that comes with MS Access. In an order
example, they have some customer info auto filled in.

If all I needed was table / forn / search / edit, I could use DADABIK.

And one final question, Do I need a web database, or is it possible to
still use MS Access as a front end from another city / state in a client
server setup? I know how to network all this but not client / server from a
long distance.

View Replies !
Building A Front End
I am building a front end in PHP for a client of mine to dynamically change the "current stock" page help this person be a little more organized, and be able to electronically track their merchandise. Now there is not a lot of merchandise moving through this company, maybe 300-400 items per year at most. So the MYSQL database will not be very large. The kicker is building the forms to query the database.

I am coming up with a ton of different ways to filter results. By item category, creator, date created, size, sub category ... this list goes on and is getting longer. Do customers actually use filtering to that extent? I mean at any given time there could be anywhere from 300 - 600 unique items for sale on this site, so to filter them is a good thing, but when does it reach the point where it is too much?

View Replies !
Front End For My E-commerce
I need to create the front end for my e-commerce store. I would appreciate your thoughts on how this could be accomplished using PHP and HTML. At this time, I do not want to use a database. This store will sell license plates, license plate frames, key chains, etc. There are many combinations of vehicle manufacturer, vehicle make, license plate type, etc. What I want to do is have the customer scroll down the page where each line looks something like this:

Toyota 4Runner Dual Emblem Plate Chrome Emblem- chrome plate D.4RU.CC
$29.95 Add Item To Cart

The field names in order are:

Manufacturer/Make
Plate Type
Plate Description
Stock Number
Price

If the user wanted that item, they would click on an "Add Item To Cart" URL at the end of the line which would then need to create an HTML Hidden Form Post to the shopping cart sotware (Mal's e-commerce shopping cart) passing specific data like Plate Description, Stock Number, Quantity Purchased, Price, etc. Using HTML tables would work out great for me but I need to find a way for the hidden form post to know the information to pass. Is PHP somehow able to get the data from the table? Could it access the data in the cells in a row in a table and place the values in variables?

View Replies !
PHP And Front Page
if I can use PHP to connect with a webpage made in Publisher?

View Replies !
Front End Estimation
I need to do some front end estimation. So, if I had the number 2.2, it would estimate to 3. If I had 3.9, it would estimate to 4.

View Replies !
Store Front
I know how to create a store front using php and mysql. What would be the best way to set it up so that members that sign up on my site can create their own store and sell items. I am thinking that I have to create seperate store id's then somehow attach the member's id to the store. I also thought of possibly creating a seperate subdirectory for each member and copy the source code for the store that they will need to install but not sure how to do it plus seems like a lot more work. I would think that utilizing mysql would work the best but need some direction in this area.

View Replies !
GNUPG Email Front End
I've been trying to figure out if there is a real GNUPG front end for popular Windows email programs and so far I haven't found any. Yes, they say it's built in Becky but what if I'm using Netscape Mail or Outlook Express. Ok, I downloaded free PGP and it installes a whole bunch of utilities that I don't really need apart from the plain plug-ins. Yes, it does have a plug-in for Outlook Express and Eudora but not for Netscape Mail. I had to modify the gnupg options so pgp could decrypt it too. Well, my major concern is Netscape Mail actually but in general, I would like a plug-in for plain, "clean" gpg.

How do you solve the problem with the front end decryption?

View Replies !
Using AJAX With A PHP Front Controller
I have a framework that uses the front controller design pattern for a
single point of entry to the application and the autoload function for
includes. I am trying to incorporate AJAX into the framework, but the
javascript calls to php ignore my front controller code when
instantiating classes.

View Replies !
MySQL FRONT Is Evil
I was trying to work out a text field that was not able to input data into the database. After trying every possible thing and posting problem on the forum as well, today I thought of doing something different. At that time my database was created using MYSQL FRONT, So today I created one in phpMyAdmin and guess what?

It worked just fine with the exactly same code. Mysql Front is evil!! took so much of my time. If anyone of you is having issues that does not make sense and are using Mysql Front, then it might be worth trying phpMyAdmin.

View Replies !
HTML, PHP, Front Page
I use Front Page 2000 to devolp my web content (don't hate me I just happen to like WYSIWYG better than physically writing out the code for HTML (a pain in the butt language :-) ) Anyways does anyone know if I can have it save files as .php instead of .html and use them in the web setup. Also another question how do I get a server to load index.php instead of index.htm?

View Replies !
FRONT PAGE + PHP (simple)?
I'm working on litle host site. It will give free hosts to users and accept
donations (if any).

I have problem with combining site who is build with front page (just html)
with who is script. I can not insert code of php in my page without errors.

View Replies !
HTML In Front Of XML While Using SOAP. Please Help.
I am writing some dotNET code to "consume" a web service written in
PHP. So far I have been getting some error messages and PHP seems to
place HTML text in front of the XML message. dotNET doesn't expect the
XML and then it chokes. This is what I get.

The <br> tag from namespace is not expected. Line 1, position 2.

I was able to capture the data going through the network and I've got
the outgoing and incoming messages. I put those at the end of the post
because they are too long.

Looking at them you can perfectly see the HTML I mentioned. In this
case the HTML part says I am missing arguments. That should be an error
message coded in SOAP. But there is more. There is an actual SOAP error
message, it looks like even when the call was bad it executed the code;
it must have put something on the missing parameters.

My biggest issue is that the HTML prevents me from doing proper error
handling on my side of the app. Is this fixable?

View Replies !
Space In Front Of Array
I searched the net for 2days looking for this answer. For what seems like a fairly easy solution i have been unable to come up with one.

I have a form that allows a user to enter an username or multiple user names separated by a comma. Out of that, i construct email addresses based on the users input. Code:

View Replies !
On Front End And Java On Backend
Is it possible to use PHP on the front end and Java on the backend? Either using EJB or not? I know it's not common but I'm curious if anyone has done it.

View Replies !
Replace 0 In Front Of Other Number
I am trying to take away the 0 before the dates. Is there a way to put a sign in for any number? not to have 9 diferents str_replaces

$arrival_display = str_replace("01-", "1-", $arrival_display);
$arrival_display = str_replace("02-", "2-", $arrival_display);
and so on until 9

View Replies !
Update Front Page
Can be written in PHP or PERL. Basically, I'd like to have a server side include on my home page that would include whatever file would display the feed. Then, on the flip side, I'd like some backdoor part where I can go type in a new entry and have it add it to the feed. I know these programs have to exist, but I'm having no luck or I'm finding ones that are 4 years old and are no longer supported.

View Replies !
Store Front Question
I know how to create a Store Front using php and mysql. I know how to create a members area for my members to login into. How would I go about having my members create their own store front on the fly. Then add items to the store front and sell them.

View Replies !
Ebay Listings Using Front Page
Anyone know the best way to get page created in front page 2002 in an
ebay listing. I've created a page but a lot of the format and graphics
are missing when viewed in ebay

View Replies !
Add A Little Peice Of Code In Front Of Every Link?
I have a site that I recently added in SEO urls. Everything works great, but none of my links go to the seo.

So I need a script that would add in a $variable before every link, automaticly.  Since I am not too skilled in php is would be really hard or me.If you are a PHP guru out there could you whip this up or me?

View Replies !
Add A Link From The Front Page Of Forum
Is there a way I can add a link from the front page of my forum out to my php photo gallery.  I would like to make it so instead of clicking on the forum name on the first page which then takes you to a sub forum which then takes you to a thread with the link, To just click on the forum name which takes you to my photo gallery. 

Next best would be on the front page in the description of the new photo gallery be able to add a link.  Which file would I edit to change or add these links?  I know I can add a link in the overall_header.tpl but I do not see a way to change the forum name link that takes you from the first forum page to the next. 

View Replies !
What Does The Ampersand (&) Do In Front Of A User-defined Function Name?
what does the ampersand (&) do in front of a user-defined function name? I know what it does in front of a parameter in the function, but not on the whole function name.

View Replies !
WordPress Front Page Display Problem......What Should I Do?
I use wordpress's latest version. 

I found one problem. I set up that from Reading section only 5 post should be visible on my site and also summary size. After click on update button and refresh my browser and see that, my all post are showing on my site's front page and every post also full form. I don't know what's the problem. I am not expert in php.So, I can' fix it.

View Replies !
PHP Script Putting Slashes In Front Of Apostrophes
I just put up a script where people can make their own quizzes, but when a user inputs a word with an apostrophe, it displays on the page with a slash in front of it. For example:

Eric/'s Quiz

Is there anyway to fix that?

The script is called phpQuest 0.15 from a site that's no longer around, and I couldn't find any help about this issue on the Archived version of the website.

View Replies !
Add Recently Added Posts Etc To Front Page
I am running a forum and now want to create another front / homepage where i can have other stuff related to the site as well as displaying recently added posts from the forum.

I have looked in the database for some sort of date or time that a certain post has been posted but doesnt make sense, it doesnt look like a sort of time and date that is humanly readable?

View Replies !
Putting Zero In Front Of Single Digits In Select
I have an html form where a person inputs a date via a drop down select. How do I make php put a zero in front of the numbers 1-9 ie. 01 02 03 when writing to the file?

I have tried making the value="01" etc. but this doesn't work. Below is a snippet of my form and the code I am using to write to the file. Code:

View Replies !
My Admin - Reinventing The Wheel - Mysql Front-end
Right now, I am redeveloping the wheel by creating my own type of PHP
MyAdmin tool for my clients so that they can manage some data. A good
exercise, but probably done before!

My question: is there something out there similar to what I describe below
or how do you go about it (I am sure that all of you have faced this problem
before)? How do you recommend I proceed?

PHP MyAdmin would not be suitable for my clients, because it contains too
much and it is too technical (e.g. i dont want them to change the structure
of the database). Code:

View Replies !
Simplexml And Attributes With A Namespace In Front. How Do You Getthe Attribute?
Here's a bit of xml code that works.

<?php

$string =
"<?xml version="1.0" standalone="yes"?>
<world>
<people xmlns:ss="http://crap">
<person id="5">John Doe</person>
<person id="2">Susie Q. Public</person>
</people>
</world>";

$xml = simplexml_load_string($string);
print "<pre>";
print_r($xml);
print "</pre>";

foreach($xml->people->person as $p)
foreach($p->attributes() as $a =$b)
{
print "$a =$b<br />";
}

// prints out
// id =5
// id =2
?>

Now what if I change the first person to this
<person ss:id="5">John Doe</person>

Anyone know how to get the id?

This is a question that is pertinent to an excel .xml file as
you'll get lines like this
<Cell ss:Index="3">stuff</Cell>

btw: there is a guide on ibm that tells you how to do this with php
and dom. I'm just wondering if there's a way to do it with simplexml.

View Replies !
** ONLINE DATA INSERT --> MYSQL Front & PHP Script **
Im using MySql front and PHP 5 for some web shop.
I didn't try it so far but i guess that the online data insertation ( accept
costs and time ) should be the same process like for local connection.

Problem:
I have to create online ( on remote server ) some 6 tables and some 20
fields with MySql front.
Ok. This shouldn't be great problem ( i hope :-)).
The bigger problem is that i need to insert cca. 450 products ( into
differnt tables (products, pro_groups ... ) ) and i dont know how to make
this online.

For now ( 20 products ) i made all this thru localhost but now i have to
insert much more data and all this online...
The data is sorted thru groups ( 8 major groups ) so every product is part
of some group.

How can i insert data, online and how to pass so much products from
localhost to remote server ( maybe by reading some .txt file ? ).....

View Replies !
Script Returns Backslash In Front Of Quotation Marks
I have a form where the user can input questions and answers for tests. When the user clicks the submit button on the form, the information in the form is POSTed to the following script:

PHP Code:.....

View Replies !
Sign ->
can anyone tell me wht is the use of this( -> ) sign in php?

View Replies !
@ Sign
$test = (@$_POST ['userEnabled'] == 'on') ;

where userEnabled is a checkbox. Can someone tell me what the value of $test will be depending on what the user clicks on the checkbox? i'm confused with this whole @ and how it's setting it == to 'on' Code:

View Replies !
+ Sign In URL
I am trying to send image URLs in email. Some images have white space
between their name like "blue color.jpg". While sending emails server
converts white space into + sign. In the email I receive image name
as "blue+color.jpg". I have also tried to use urldecode function but
the problem still exist. What should I do? I want to receive image
name as "blue color.jpg".

View Replies !
@ Sign Used For In Php
I see the @ sign being used in some sample scripts i'm downloading. What is the difference when a function has or does not have the @ sign in front of it.

View Replies !
Stipping Out '+' Sign
I'm passing a variable to my sctipt and the variable contains a plus sign e.g.?var=james+bond. However when I attempt to use the variable by coding $HTTP_GET_VARS[var] the plus sign is gone.

View Replies !
Verify DSA Sign
How can I verify DSA sign in php?
Please send some example (I have tree files: data, sign and
public DSA key in PEM format).

View Replies !
Percent Sign
In the following: if($var%2) Does the % stand for "divisible by"? I ask because I tried if($var%3) and got some wacky stuff.

View Replies !
Single Sign On
I have added an additional service for my clients that is on a third party web application. The application is password protected and currently they are required to login to its service using the developers sign in page (there logos not mine). Once in the application it is all my branding (just not the login page).

Is it possible to add a login section on a page on my website that once submitted runs a script that will autofill the applications login page bypassing its view?

View Replies !
Escape The % Sign
i tryed with addcslashes() and addslashes()

but it still just prints : "%" insted of "/%" .

View Replies !
+ Sign In Query
I have + sign in search querys and I was to make the - how can I do that, I heard it's not possible with mod_rewrite, I have attached the two scripts if someone could please take a look, what I want to do is make it go from search.php?

query=word1+word2+word3&www=true to search.php?query=word1-word2-word3&www=true I think it would involve str_replace, if someone would take a look at it for me and tell me what I should do .

View Replies !
Escape @ Sign
The subject may be confusing, but I am sure this is easy. My mind is blank on the solution. I have a script that returns a variable which will always include an email address. I want to process the variable to escape the "@" sign.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ex.

$email = "bob@bobsite.com";

I want to process the variable above so that it changes the value of $email to...

$email = "bob@bobsite.com";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I am guessing either preg_replace or preg_match is what I am looking for, but I have been unable to figure out how to change the variable by inserting the "" before the "@".

View Replies !
Login And Sign Out
Ive been looking on the forum for something to help with setting up a login page. Ive got the basics down. with the form connecting and comparing names. but how do i track how long they have been signed in and entering that time duration and date of login into MySQL and how to kill the session when they click the sign out link?

View Replies !
Get A Sign Up Class
is it better to get a sign up class or write my own ?

View Replies !
Pound Sign In Url
I searched this forum for similiar issues before posting. I pass a value from one for to another on submit, i.e. http://blahblahblah/mypage.php?store_name=Soup House #5

On the next page I can see: http://blahblahblah/mypage.php?storename=Soup%20House%20#5. The store name is stored properly in my database table as Soup House # 5. The field uses a collation of utf8_general_ci. When I use $GET['store_name'] and echo it, all I get is Soup House.

View Replies !
How To I Deal With The & Sign
I am having trouble passing the & sign in the word brookes & baker in my url.

Example:

name.php?name=brookes & baker

It is throwing up an sql error when it is passed to the next page where it queries the my database.

Do you know how we get around this problem with & sign?

View Replies !
Integer Without Sign
Quote:

function isNumeric($num){
return (bool)preg_match('/^[1-9]d{0,9}$/',$num);
}
var_dump(isNumeric("1234567891"));//true
var_dump(isNumeric("1234567891"));//true
var_dump(isNumeric("12345678910"));//false
var_dump(isNumeric("0"));//false
var_dump(isNumeric("-1111"));//false
var_dump(isNumeric("-1111"));//false
var_dump(isNumeric("+11"));//false
var_dump(isNumeric("faii"));//false

View Replies !
Display % Sign With Printf
I am facing difficulty in printing % sign with printf. How do I display % sign in printf commands.

View Replies !
Need To Find-out Improper Sign-out
Is there any way to run a function or a code-block whenever the client-
server communication breaks off. (ie power-off, browser-crash...)

Why I need this is, I want to update a login-table to trace user's
leave the portal without proper log-off or sign-out.

Every time a user at proper sign-in, a flag is set & account is locked
until he sign-out by updating in the login-table.At sign-out the flag
is released & his account is ready to log-in again.
Is my logic right?

View Replies !

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