Pacman can't find php

I want to install php, but pacman can't find the package.
pacman -Sy php [1:02 : ashren]
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
error: 'php': not found in sync db
Quite strange.

Try pacman -Syy, or try other mirrors.
If that doesn't work, which pacman version are you using? And you could try the --debug output.
And have a look in /var/lib/pacman/sync/extra/php* as well.

Similar Messages

  • Where is the sql file store in & Where can I find php.ini on Mac osx client

    In windows xp i can find the sql file in side the folder of MySQL and I can find php.ini in the C directory under the php's folder but in mac os Icannot find it could anyone tell me where it is and how can I find thanks.

    Hi--
    apples-Computer:/usr/local/mysql apple$ cd data
    -bash: cd: data: Permission denied
    apples-Computer:/usr/local/mysql apple$ sudo sh
    Password:
    apples-Computer:/usr/local/mysql apple$ cd data
    -bash: cd: data: Permission denied
    apples-Computer:/usr/local/mysql apple$ cd data
    -bash: cd: data: Permission denied
    apples-Computer:/usr/local/mysql apple$ chmod +rw
    data
    chmod: data: Operation not permitted
    It looks to me like you haven't gained root access in the examples above. If you follow Niel's example:
    <pre class="command">sudo sh</pre>you should get a different prompt when you actually are the root user:
    <pre class="command">sh-2.05b#</pre>because you'd be changing shells from bash to sh.
    I'd like to set the folder /mysql/data to except me
    for coppy database folder
    How can I get the permittion to access the
    /mysql/data folder
    You should be able to do anything to those files without changing permissions if you're the root user.
    But, just for your information, I never directly move the database files. If I want to move a database between computers, I always use the mysqldump command and redirect it to a file:
    <pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name > /path/to/output/file.sql</pre>That makes a single text file with all the SQL commands necessary to build your database tables and populate them with your data. If you want to restrict it to just one table from a database, you can add the table name after the db_name:
    <pre class="command">/usr/local/mysql/bin/mysqldump --add-drop-table -u username -p db_name table_name > /path/to/output/file.sql</pre>To import that file into another machine, you have to create the database first, which you could do with phpAdmin. Then, just import the tables and data like this:
    <pre class="command">/usr/local/mysql/bin/mysql -u root -p db_name < /path/to/output/file.sql</pre>That'll create all your tables and populate them with your data.
    If you copy your databases this way, you're much less likely to run into trouble with compatibility issues if you're moving between machines with different versions of MySQL.
    charlie

  • [Solved]Pacman can't find steam(and yes I read the other topics)

    To make it short, pacman really can't find steam.
    Options I tried:
    pacman -S steam
    pacman -Sy steam
    pacman -Syyu steam
    pacman -Ss steam
    And still got nothing.
    Here's my last attempt at it:
    $ sudo pacman -Syyu steam
    :: Synchronizing package databases...
    core                     112.7 KiB  49.9K/s 00:02 [######################] 100%
    extra                   1763.0 KiB  30.5K/s 00:58 [######################] 100%
    community                  2.3 MiB  74.2K/s 00:31 [######################] 100%
    error: target not found: steam
    Notes: I'm running arch on a VBox. Sorry if I sound cocky or anything but maybe it's my lack of sleep over this particular problem. Yes, I uncommented the multilib repo in pacman.conf.
    Anyone got any ideas?
    Last edited by Jackoz530 (2014-08-11 14:20:02)

    lucke wrote:Maybe you have failed to uncomment the multilib repo properly, as your output doesn't show its synchronizing.
    This worked for me. Found steam in the multilib repo when I properly uncommented the repo.
    Though it's weird that steam can't be found in the community repo, only in the multilib repo.
    $ pacman -Ss steam
    multilib/steam 1.0.0.48-1
    Digital distribution client bootstrap package
    Pacman.conf is as follows:
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    #GPGDir = /etc/pacman.d/gnupg/
    HoldPkg = pacman glibc
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #CleanMethod = KeepInstalled
    #UseDelta = 0.7
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options
    #UseSyslog
    #Color
    #TotalDownload
    CheckSpace
    #VerbosePkgLists
    # By default, pacman accepts packages signed by keys that its local keyring
    # trusts (see pacman-key and its man page), as well as unsigned packages.
    SigLevel = Required DatabaseOptional
    LocalFileSigLevel = Optional
    #RemoteFileSigLevel = Required
    # NOTE: You must run `pacman-key --init` before first using pacman; the local
    # keyring can then be populated with the keys of all official Arch Linux
    # packagers with `pacman-key --populate archlinux`.
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    Include = /etc/pacman.d/mirrorlist
    [extra]
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #Include = /etc/pacman.d/mirrorlist
    [community]
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #Include = /etc/pacman.d/mirrorlist
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #SigLevel = Optional TrustAll
    #Server = file:///home/custompkgs
    I'm currently grabbing the steam in the multilib repo and gonna test it once I finished grabbing it.

  • Pacman can't find xmonad-darcs

    So I'm trying to get xmonad up and running. I first tried to install just xmonad, but I couldn't get the config script to work(said it couldn't find the module XMonad). So after a little bit of searching in the forums, I found that I should  try the darcs version. However, when I try to pacman -S xmonad-darcs, it says it can't find the package. What am I missing?

    GHC was updated to 6.12 today and XMonad's dependencies were built under the new version, but xmonad itself hasn't been updated as of this moment. You can't compile your configuration file because it was registered under the old version and is looking for them in a place that no longer exists. So either uninstall xmonad and build the darcs version or use ABS to build the stable 0.9 version so that it gets registered properly under 6.12 on your system.

  • [SOLVED] vbam-gtk depends on sfml, but pacman can't find it, 404 error

    So I'm trying to install vbam-gtk, the package for visualboyadvance, which is available to pacman directly. It's not an AUR package, nor are any of it's dependencies according to it's package page. But when I run
    sudo pacman -S vbam-gtk
    , it spits out this:
    [kay@jadebot ~]$ sudo pacman -S vbam-gtk
    resolving dependencies...
    looking for conflicting packages...
    Packages (5) gtkglext-1.2.0-10 gtkglextmm-1.2.0-10 pangox-compat-0.0.2-2
    sfml-2.2-4 vbam-gtk-1.8.0.1292-1
    Total Download Size: 1.79 MiB
    Total Installed Size: 14.19 MiB
    :: Proceed with installation? [Y/n]
    :: Retrieving packages ...
    error: failed retrieving file 'sfml-2.2-4-x86_64.pkg.tar.xz' from archlinux.polymorf.fr : The requested URL returned error: 404
    error: failed retrieving file 'sfml-2.2-4-x86_64.pkg.tar.xz' from mirror.one.com : The requested URL returned error: 404
    error: failed retrieving file 'sfml-2.2-4-x86_64.pkg.tar.xz' from ftp.nluug.nl : The requested URL returned error: 404
    (snip)
    error: failed retrieving file 'sfml-2.2-4-x86_64.pkg.tar.xz' from mirrors.nix.org.ua : The requested URL returned error: 404
    error: failed retrieving file 'sfml-2.2-4-x86_64.pkg.tar.xz' from mirror.lagoon.nc : The requested URL returned error: 404
    error: failed retrieving file 'sfml-2.2-4-x86_64.pkg.tar.xz' from mirror.neolabs.kz : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed retrieving file 'vbam-gtk-1.8.0.1292-1-x86_64.pkg.tar.xz' from archlinux.polymorf.fr : The requested URL returned error: 404
    error: failed retrieving file 'vbam-gtk-1.8.0.1292-1-x86_64.pkg.tar.xz' from mirror.one.com : The requested URL returned error: 404
    error: failed retrieving file 'vbam-gtk-1.8.0.1292-1-x86_64.pkg.tar.xz' from ftp.nluug.nl : The requested URL returned error: 404
    (snip)
    error: failed retrieving file 'vbam-gtk-1.8.0.1292-1-x86_64.pkg.tar.xz' from mirrors.nix.org.ua : The requested URL returned error: 404
    error: failed retrieving file 'vbam-gtk-1.8.0.1292-1-x86_64.pkg.tar.xz' from mirror.lagoon.nc : The requested URL returned error: 404
    error: failed retrieving file 'vbam-gtk-1.8.0.1292-1-x86_64.pkg.tar.xz' from mirror.neolabs.kz : The requested URL returned error: 404
    warning: failed to retrieve some files
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.
    Now, if I search for it via the archlinux website, I can see that sfml exists in the repository, and so does vbam-gtk, as in the link above. Now, I could just download them both from there and be done with it, but then I wouldn't learn anything, so I'm here to ask, if these packages exist in the community repository, which I have enabled and have pulled from previously, why can't pacman find these packages? I know it isn't a network issue, or at least not an obvious one. I did
    sudo pacman -S xorg-xkill
    to test that theory but it processed faultlessly.
    Last edited by starling000 (2015-05-16 02:02:08)

    Ah, thank you! I hadn't noticed that pacman wasn't automatically updating itself each time I ran it. I'm just coming over from debian-based systems for the first time, you see. Problem solved.

  • Pacman can't find Fakeroot (x86_64)

    I'm trying to build a package from the AUR (ttf-ms-fonts), but "makefile" gives me an error about FAKEROOT not being installed. So, I'm trying to install fakeroot. However, whenever I type in "pacman -S fakeroot", none of the servers can find the file!
    the output:
    [user@computer ttf-ms-fonts]$ sudo pacman -S fakeroot
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): fakeroot-1.14.5-1
    Total Download Size: 0.05 MB
    Total Installed Size: 0.20 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from archlinux.supsec.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from cake.lib.fit.edu : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from ftp.archlinux.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from ftp.gtlib.gatech.edu : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from mirrors.hosef.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from locke.suu.edu : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from lug.mtu.edu : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from ftp.osuosl.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'fakeroot-1.14.5-1-x86_64.pkg.tar.xz' from mirror.rit.edu : File unavailable (e.g., file not found, no access)
    warning: failed to retrieve some files from core
    error: failed to commit transaction (File unavailable (e.g., file not found, no access))
    Errors occurred, no packages were upgraded.
    [user@computer ttf-ms-fonts]$
    I'll try installing it from the fakeroot package page, but does anyone know what's wrong here?
    PS. I was doing this as part of an installation of the whole base-devel group. Fakeroot was the only package that didn't install out of:
    1) autoconf  2) automake  3) bison  4) fakeroot  5) flex  6) gcc  7) libtool  8) m4  9) make  10) patch  11) pkg-config)

    I did that, and now it installs fine.
    Thanks, uhh I forgot that synchronizing databases is a good idea xD
    Last edited by NeuroFuzzy (2011-04-18 05:32:44)

  • Can't install any media player - pacman can't find all the files

    I'm quite new to Linux. At the moment I can't view any videos or listen to music.
    I tried installing mplayer using pacman - several files downloaded successfully, I watched the progress bars... but others couldn't be found. When I try again using a different mirror, from the output you can see that pacman requests 36 installation files for mplayer but it can't locate 14 of them.
    I've tried three mirrors in the UK and one in Belgium. I get a similar problem trying to install VLC. Pacman has never failed me before, although admittedly last time I used him was to download firefox in December 2009.
    This is what I get if I try again to install mplayer now:
    pacman -S mplayer
    resolving dependencies...
    looking for inter-conflicts...
    Targets (36): libmad-0.15.1b-4 cdparanoia-10.2-2 sdl-1.2.14-1 lame-3.98.2-2
    libogg-1.1.4-1 libtheora-1.1.1-1 xvidcore-1.2.2-1
    libmng-1.0.10-2 scrnsaverproto-1.2.0-1 libxss-1.2.0-1
    libsasl-2.1.23-2 libldap-2.4.21-1 tdb-1.2.0-1 talloc-2.0.1-1
    smbclient-3.4.4-1 aalib-1.4rc5-6 flac-1.2.1-2
    libvorbis-1.2.3-1 libsndfile-1.0.21-1
    jack-audio-connection-kit-0.116.2-2 libid3tag-0.15.1b-3
    imlib2-1.4.2-3 libcaca-0.99.beta16-1 x264-20100107-1
    libmp4v2-1.6-1 faac-1.28-1 libftdi-0.16-1 lirc-utils-0.8.6-3
    libxvmc-1.0.5-1 recode-3.6-3 enca-1.12-1 libvdpau-0.3-2
    opencore-amr-0.1.2-1 a52dec-0.7.4-4 libdca-0.0.5-2
    mplayer-30325-1
    Total Download Size: 34.58 MB
    Total Installed Size: 126.33 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    error: failed retrieving file 'lame-3.98.2-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libmng-1.0.10-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'tdb-1.2.0-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'smbclient-3.4.4-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'jack-audio-connection-kit-0.116.2-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libid3tag-0.15.1b-3-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'imlib2-1.4.2-3-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libcaca-0.99.beta16-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'x264-20100107-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libmp4v2-1.6-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'faac-1.28-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'enca-1.12-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libvdpau-0.3-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'mplayer-30325-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (Not Found)
    Errors occurred, no packages were upgraded.
    Confusingly, if I now try to clean up the mess and remove the mplayer files that I did download, I get:
    pacman -R mplayer
    mplayer not found, searching for group...
    error: 'mplayer': not found in local db
    Thanks for reading

    I am having the same or similar problem. I am unable to install vlc, ffmpeg, and several of their respective dependencies, with the same error
    [joshua@desktop ~]$ sudo pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    archlinuxfr is up to date
    :: Starting full system upgrade...
    there is nothing to do
    [joshua@desktop ~]$ sudo pacman -S ffmpeg
    resolving dependencies...
    looking for inter-conflicts...
    Targets (10): faad2-2.7-1 libmp4v2-1.9.1-1 faac-1.28-2 xvidcore-1.2.2-1 opencore-amr-0.1.2-1 libvdpau-0.4-1 orc-0.4.4-1
    schroedinger-1.0.9-1 libvpx-0.9.1-1 ffmpeg-23619-1
    Total Download Size: 3.35 MB
    Total Installed Size: 31.32 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from mirrors.easynews.com : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from ftp.archlinux.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from ftp.gtlib.gatech.edu : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from mirrors.hosef.org : Service not available, closing control connection
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from ibiblio.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from mirrors.xmission.com : File unavailable (e.g., file not found, no access)
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (File unavailable (e.g., file not found, no access))
    Errors occurred, no packages were upgraded.
    Checking on the mirrors manually, I see that the package versions are incorrect. For example, http://www.archlinux.org/packages/extra/x86_64/ffmpeg/ has ffmpeg at version 23792-1 but pacman is looking for 23619-1.
    Any ideas?
    EDIT: this is an install from this morning, from the 2010.05 core disk. Post install, I ran pacman -Syu and then installed some packages without issue.
    Last edited by joshdmiller (2010-06-28 00:05:21)

  • Pacman can't find core.db.tar.gz -- something about resolver failure

    Edit: never mind, ignore this post, I got it working.
    Last edited by Galumph (2010-07-13 09:38:25)

    Oh, I was thinking 'pack' as in package. The network works, at least it does on the machine, and both this and the future Arch are connected to the same router. The network configuration process runs fine too. Before I can try pinging or printing outputs I need a way to leave this tty7 console.
    Edit: Wait no, alt 1 did it. Printing outputs and whatnot. I'll be right back
    Ok, pacman -Q pacman prints 3.3.3-5, I'm guessing this is the version? Ping doesn't work, that would explain the errors, how do I set the network up so it works?
    Last edited by Galumph (2010-07-13 08:24:02)

  • Pacman can't find groups

    An example I added the compiz fusion git repo and there is a group called compiz-fusion-git:
    [root /home/jordz]# pacman -S compiz-fusion-git
    :: group compiz-fusion-git (including ignored packages):
        ccsm-git  compiz-bcop-git  compiz-fusion-plugins-extra-git 
        compiz-fusion-plugins-main-git  compiz-fusion-plugins-unsupported-git 
        compiz-git  compizconfig-backend-gconf-git  compizconfig-python-git 
        emerald-git  emerald-themes-git  fusion-icon-git  libcompizconfig-git 
    :: Install whole content? [Y/n]
    But when I -Ss / search for it it doesn't show it as a result.
    This happens with all groups. I'm just wonder is this on purpose or a bug?
    thanks

    The groups are not searched, it's neither a bug, nor strongly on purpose (at least not in my knowledge).
    But when you search for a package, the groups it belongs to are printed. For example :
    > pacman -Ss compiz
    community/ccsm 0.6.0-2 (compiz-fusion)
        Compizconfig Settings Manager in Python
    [lol, and while I am writing this, I just noticed something that is a bug in my opinion. Only the first group is printed.
    Most of the times, there is just one group. But in the above example, ccsm belongs to 3 groups.]
    And you can also list all groups with pacman -Sg
    Then you can list the contents of a group with pacman -Sg group
    Is that enough, or not?

  • Can't find the file ?php echo $editFormAction; ? in XAMPP

    I used the insert record function in CS4 on a page I'm working on.  I'm running XAMPP in win XP.
    Whenever I load the page into firefox, fill out the forms with random data, and click the submit button, I get the following error:
    can't find the file at /C:/xampp/htdocs/MySite.com/<?php echo $editFormAction; ?>
    I have been trying to research this a bit myself, and I think the problem may simply be that the editFormAction script is not in the root folder of my site.  But I am not sure where it is, and so, what to change the reference to.
    Or perhaps I'm completely wrong about this???
    Please Help Me!!

    Well, I have to chuckle a bit because the article on how to set up a php testing server that you wrote is the exact one I read to set up my testing server!  It is very well written and probably the most helpful and straight foreward article on setting up dreamweaver with XAMPP on the web.  I followed all of the instructions exactly, so I imagine the problem must be elsewhere?  It's pointing to the C drive because that's where XAMPP is installed.  This is how is it supposed to be setup, correct?  Apache and MySQL are running, or at least it says so on the XAMPP control panel.
    Also, I apologize for not posting this in the right forum.  That was my first post on the adobe boards and I didn't really consider inserting records to a database to be an "application."  So thanks for pointing me in the right direction.
    for those who want to see my code, here it is.  Except for the exact names of the fields, it's exactly what dreamweaver creates when youc click on the "insert record" button in the insert menu.  I don't see any option for pasting the code as "code" like in most code devolpoer forums.  I know some poeple get upset if you paste code without doing it right, so I hope I'm not making anybody mad.
    the following is inserted in the head:
    <?php require_once('Connections/GiftListConnection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE ff SET EmailAddress=%s, Relationship=%s WHERE FirstName=%s",
                           GetSQLValueString($_POST['EmailAddress'], "text"),
                           GetSQLValueString($_POST['Relationship'], "text"),
                           GetSQLValueString($_POST['FirstName'], "text"));
      mysql_select_db($database_GiftListConnection, $GiftListConnection);
      $Result1 = mysql_query($updateSQL, $GiftListConnection) or die(mysql_error());
      $updateGoTo = "ManageFF.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
      $insertSQL = sprintf("INSERT INTO ff (FirstName, EmailAddress, Relationship) VALUES (%s, %s, %s)",
                           GetSQLValueString($_POST['FirstName'], "text"),
                           GetSQLValueString($_POST['EmailAddress'], "text"),
                           GetSQLValueString($_POST['Relationship'], "text"));
      mysql_select_db($database_GiftListConnection, $GiftListConnection);
      $Result1 = mysql_query($insertSQL, $GiftListConnection) or die(mysql_error());
      $insertGoTo = "ManageFF.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_GiftListConnection, $GiftListConnection);
    $query_Recordset1 = "SELECT * FROM ff";
    $Recordset1 = mysql_query($query_Recordset1, $GiftListConnection) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    and then this is the actual form code in the body:
    <p class="Bold">&nbsp Add new family member or friend...</p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
      <table align="left">
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">FirstName:</td>
          <td><input type="text" name="FirstName" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">EmailAddress:</td>
          <td><input type="text" name="EmailAddress" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Relationship:</td>
          <td><input type="text" name="Relationship" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="add" /></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form2" />
    </form>
    Thanks for trying to help out this noob, everybody!
    BTW, this is Inkexit posting.  For some reason when I logged in this morning, I was made to pick a new screenname, as inkexit was already in use.  But I knew that though, as I was the one using it, lol.  Kinda bizzarre.  Perhaps the Mods should know about this?

  • When I click on my gmail to get a wall post from FB I get this message..SERVER NOT FOUND FIREFOX CAN'T FIND SERVER AT permalink.php . PLS help me fix this. Thanks Firefox can't find the server at permalink.php.

    ''''''When I click on my gmail to get a wall post I get this message ...Server not found Firefox can't find the server at permalink.php. PLEASE HELP ME FIX THIS! I just updated to firefox 6.0. THANK YOU

    Try resetting your proxy server. Go to Tools, Options, Advanced, Settings and select one. I must do this every time I restart Firefox -- but at least after that, I'm okay until the next restart.

  • Nvida driver - can't find nvidia module

    Finally went out and bought an nvidia geforce 6600Gt video card.
    But guess what now I can't install the dam thing.
    I followed the arch wiki but all I get is
    Installation starts now ...
    FATAL: Module nvidia not found.
    If you need more information about setting up nvidia drivers have a look at:
    "http://wiki.archlinux.org/index.php/How to install NVIDIA Driver"
    modprobe nvida gives the same results. I thoght pacman -S nvida is supposed to install the kernel modules so how com e it can't find them ?
    I even created a /usr/src/linux symlink to the current kernel - still not working. So what's going on I thought nvidia drivers were supposed to be really easy to install ????

    The error message when I run pacman -S nvidia is shown in my first post.
    I do not have a custom kernel I have pacman -S kernel26 (kernel-2.6.11.3-ARCH)
    Do I need to install kernel full kernel sources with ABS for nvidia to work ?
    I did try this but he kernel failed to build (can't remember why now)
    Here's the last part of nvidia-installer.log incase that helps
    usb-storage: device scan complete
       Disabled Privacy Extensions on device c05d68a0(lo)
       lp0: using parport0 (interrupt-driven).
       nvidia: no version for "struct_module" found: kernel tainted.
       nvidia: version magic '2.6.11.3-ARCH SMP preempt K7 gcc-3.4' should be
       '2.6.11.3-ARCH SMP preempt 686 gcc-3.4'
       nvidia: version magic '2.6.11.3-ARCH SMP preempt K7 gcc-3.4' should be
       '2.6.11.3-ARCH SMP preempt 686 gcc-3.4'
       nvidia: version magic '2.6.11.3-ARCH SMP preempt K7 gcc-3.4' should be
       '2.6.11.3-ARCH SMP preempt 686 gcc-3.4'
       nvidia: version magic '2.6.11.3-ARCH SMP preempt K7 gcc-3.4' should be
       '2.6.11.3-ARCH SMP preempt 686 gcc-3.4'
    ERROR: Installation has failed.  Please see the file
           '/var/log/nvidia-installer.log' for details.  You may find suggestions
           on fixing installation problems in the README available on the Linux
           driver download page at www.nvidia.com.

  • Second boot hangs because grub can't find disks

    So I install arch onto a Xen HVM machine and then boot it and set up pacman, update the machine, and then reboot it and then grub can't find the disks. Could someone help me find out why or point my in the right direction? I have tried both grub and grub2 without any luck. The /boot is ext2 and home and / are ext4 if that matters. This only happens when i am fully updated. The system seems to work with the 2010.05 snapshot.
    Last edited by Dizzy1 (2011-05-08 06:46:14)

    /etc/fstab of the installed system and blkid to show the uuids
    http://dl.dropbox.com/u/4580377/screenshot3.png
    fdisk -l /dev/sda
    http://dl.dropbox.com/u/4580377/screenshot4.png
    sda1 is /boot
    sda2 is swap
    sda3 is /
    sda4 is /home
    grub config, menu.lst
    # Config file for GRUB - The GNU GRand Unified Bootloader
    # /boot/grub/menu.lst
    # DEVICE NAME CONVERSIONS
    # Linux Grub
    # /dev/fd0 (fd0)
    # /dev/sda (hd0)
    # /dev/sdb2 (hd1,1)
    # /dev/sda3 (hd0,2)
    # FRAMEBUFFER RESOLUTION SETTINGS
    # +-------------------------------------------------+
    # | 640x480 800x600 1024x768 1280x1024
    # ----+--------------------------------------------
    # 256 | 0x301=769 0x303=771 0x305=773 0x307=775
    # 32K | 0x310=784 0x313=787 0x316=790 0x319=793
    # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
    # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
    # +-------------------------------------------------+
    # for more details and different resolutions see
    # http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution
    # general configuration:
    timeout 5
    default 0
    color light-blue/black light-cyan/blue
    # boot sections follow
    # each is implicitly numbered from 0 in the order of appearance below
    # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
    # (0) Arch Linux
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/1347f942-3f04-4d1b-a032-8ce0ae5737d8 ro
    initrd /kernel26.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/1347f942-3f04-4d1b-a032-8ce0ae5737d8 ro
    initrd /kernel26-fallback.img
    # (2) Windows
    #title Windows
    #rootnoverify (hd0,0)
    #makeactive
    #chainloader +1
    I used the aif installer to install grub.
    and the error message:
    http://dl.dropbox.com/u/4580377/screenshot6.png
    If I missed anything, please tell me.
    Last edited by Dizzy1 (2011-05-08 15:03:24)

  • Warnings in FileReference - can not find the cause

    I'm trying to make a loader of a few photos (use FileReference). I get the warnings, but I do not know the reason for their appearance.
    warning: unable to bind to property 'fr' on class 'Object' (class is not an IEventDispatcher)
    warning: unable to bind to property 'name' on class 'flash.net::FileReference'
    warning: unable to bind to property 'data' on class 'flash.net::FileReference'
    warning: unable to bind to property 'fr' on class 'Object' (class is not an IEventDispatcher)
    warning: unable to bind to property 'name' on class 'flash.net::FileReference'
    warning: unable to bind to property 'data' on class 'flash.net::FileReference'
    CODE:
    import mx.events.CollectionEvent;
    import flash.net.FileReferenceList;
    import mx.collections.ArrayCollection;
    [Bindable]
    private var photos:ArrayCollection = new ArrayCollection;
    private var frList:FileReferenceList = new FileReferenceList;
    private function init():void
    photos.addEventListener(CollectionEvent.COLLECTION_CHANGE,function():void
    startUploadButton.enabled = (photos.length>0);
    clearPhotosButton.enabled = (photos.length>0);
    frList.addEventListener(Event.SELECT,addPhotos);
    private function selectPhotos():void
    var fileFilter:FileFilter = new FileFilter("Images jpeg","*.jpg;*.jpeg");
    frList.browse([fileFilter]);
    private function addPhotos(e:Event):void
    for (var i:uint = 0; i < frList.fileList.length; i++)
    var elem:Object = new Object;
    elem.fr = FileReference(frList.fileList[i]);
    elem.fr.load();
    elem.fr.addEventListener(Event.COMPLETE,refreshThumb);
    photos.addItem(elem);
    private function refreshThumb(e:Event):void
    photosList.invalidateList();
    public function clearPhoto(data:Object):void
    photos.removeItemAt(photos.getItemIndex(data));
    photosList.invalidateList();
    private function startUpload():void
    photosProgressContainer.visible = true;
    var request:URLRequest = new URLRequest();
    request.url = "http://localhost/tempLoader-debug/upload.php";
    var fr:FileReference = photos.getItemAt(0).fr;
    fr.cancel();
    fr.addEventListener(ProgressEvent.PROGRESS,uploadProgress);
    fr.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA,uploadComplete);
    fr.upload(request);
    private function uploadProgress(e:ProgressEvent):void
    photosProgress.setProgress(e.bytesLoaded,e.bytesTotal);
    private function uploadComplete(e:DataEvent):void
    photos.removeItemAt(0);
    photosList.invalidateList();
    if (photos.length > 0)
    startUpload();
    else
    photosProgressContainer.visible = false;

    In my opinion this is the line that is causing you the warning:
    <mx:Image source="{data.fr.data}" maxWidth="100" maxHeight="75"
    horizontalAlign="center" verticalAlign="middle" />
    That means that data should be a custom binable object and fr should be another
    custom bindable object.
    like
    public class BindableData
        public var fr:BindableData2;
    public class BindableData2
        public var data:String;
    I am not sure though what you are trying to do though, but I assume you try top
    load an image from your disk. This link will help you:
    view source enabled...
    http://www.everythingflex.com/flex3/flexcampItaly/
    the blog post ...
    http://blog.everythingflex.com/2009/09/08/flexcamp-presentation-filereference-load-part-1- of-3/
    C
    From: Astraport2012 <[email protected]>
    To: Ursica Claudiu <[email protected]>
    Sent: Sun, October 3, 2010 3:07:57 PM
    Subject: Re: Warnings in FileReference - can not find the cause
    I found the solution to the first part of the warning. Only need to modify the
    object as ObjectProxy
    public var elem:ObjectProxy = new ObjectProxy;
    But with the second part is still a problem (warning: unable to bind to property
    'name' on class 'flash.net::FileReference'
    warning: unable to bind to property 'data' on class 'flash.net::FileReference').
    I do not fully describe the problem in the first message. The main application
    calls the component and passes it parameters. They cause errors.
    It is this component photoThumb.mxml:
    <?xml version="1.0" encoding="utf-8"?>
       width="120" height="110"
       backgroundColor="#FFFFFF" backgroundAlpha="0"
       rollOver="{controls.visible=true;}" rollOut="{controls.visible=false;}">
    <mx:Image source="@Embed('t1.png')" width="100%" height="100%" alpha="0"
    horizontalAlign="center" verticalAlign="middle"/>
    <mx:VBox width="100%" height="90" y="5" horizontalAlign="center" >
    <mx:Image source="{data.fr.data}" maxWidth="100" maxHeight="75"
    horizontalAlign="center" verticalAlign="middle" />
    </mx:VBox>
    <mx:Label text="{data.fr.name}" width="118" truncateToFit="false" bottom="0"
    textAlign="center" />
    <mx:VBox id="controls" visible="false" y="65" right="10" horizontalAlign="right"
    >
    <mx:Button label="X" click="parentDocument.clearPhoto(data)" fontSize="6"
    width="30" height="15" />
    </mx:VBox>
    </mx:Canvas

  • Can't access songs in iTunes. There are exclamation marks on about half of my library. When I try to play them I get: "Can't find the file" notice and iTunes asks me to locate each song. Why is this happening and how can I fix it?

    I had not opened my iTunes in weeks. When I opened it today, most of the songs in my library had exclamation marks beside them and when I clicked on them got the message: "the song could not be used because the original file cannot be found", then asks me if I want to locate it. When I press "locate" tab I am led to iTunes folders and have to hunt around for the song. Some songs I can't find in the folders. Any ideas as to why this is happening and what I can do to fix it?
    Help would be much appreciated.
    Thanks.
    PE

    The problem of tracks becoming de-linked between iTunes and the music files in your iTunes music folder happens for different reasons - this seems to come up fairly commonly in this forum.
    The solution can be to locate each song in the iTunes library, as you mentioned - or, but wait, before I get to that...
    trouble finding the original track in your iTunes music folder? maybe look for it under compilations, or if not using the 'group compilations preference' then look in the folder under the songs artist name, but what song artist name iTunes uses depends on what you have in the metedata tag spot for album artist or song artist. Any varyation in artist name spelling, in the menu item 'get info' metadata for any selected individual track will cause iTunes to create that as a separate artist folder in the library, even names like 'various' or any difference at all (even the word 'the' can change where in your iTunes music folder a track gets placed by iTunes). You can try to use the finder function of find file (finder munu item outside of iTunes) to locate hard to find items.
    Back to how to re-link any de-linked tracks .
    There may be scripts that can help re-link de-linked music files - or, at least provide you a list of such files, Scripts are easy to install and use...
    at Dougs Scripts, there is one called iTunes Track CPR that might work
    http://dougscripts.com/itunes/scripts/ss.php?sp=itunestrackcpr
    or, if you just want a list of de-linked tracks, go to
    http://dougscripts.com/itunes/
    and find the script called List MIA's, this will create a text file listing all de-linked tracks
    if you review the thread at
    https://discussions.apple.com/thread/3633708
    also the thread at
    https://discussions.apple.com/message/17513078#17513078
    you may find more insight into dealing with this kind of issue there, although some of that thread may not apply to your case, aspects of it might help.
    Good luck.

Maybe you are looking for